I have created a custom indicator which colors the bars of 1 min dataseries if a bigger DataSeries (For example 30 min) is bullish.
But, for some reason the indicator takes into account the last bar of the previous session.
Could you explain where is the error?
For backtesting purposes I look into the future and use the index [-1]. But this is not the problem.
I attach an image and the indi.
Thanks in advanced
Comment