When I open a chart and insert the buysellpressure indicator with the historical data, it can show correctly.
However, when I create my own indicator, under OnBarUpdate(), I coded "Value[0]=BuySellVolume().Buys[0];", but it shows 0 only.
I don't understand, why i use the indicator directly, it can show correctly. But when I use in my code, it just show 0. Can you give some ideas to me?
I have already enable the tick replay option.
Thanks.
Comment