Webull has something like this which shows the inflow and outflow, how can I create one for TOS? Webull's one shows it on the day, whereas I would like to see many weeks/days of the net flow into a stock/etf to get a better understanding of the direction of the money.
Would it be like the ask_price * volume for inflow and bid_price * volume (volume sold at bid) as outflow?
Kindly appreciate the help x
Would it be like the ask_price * volume for inflow and bid_price * volume (volume sold at bid) as outflow?
Code:
declare lower;
def buyVol = volume * (close == high);
def sellVol = volume * (close == low);
def inflow = buyVol * close;
def outflow = sellVol * close;
def netFlow = inflow - outflow;
plot p = netFlow;
p.setpaintingStrategy(paintingStrategy.HISTOGRAM);
p.AssignValueColor(if p > 0 then Color.GREEN else if p < 0 then Color.RED else Color.GRAY);
Kindly appreciate the help x