I need help finding out what causes difference between indicator values displayed in data box and the way a strategy calculates it. When simplifying my strategy in order to find out why it doesn't behave the way I expected, it eventually came down to a single statement: buy when indicator value is rising. Surprisingly the strategy enters long even though the indicator value remains the same as it was bar ago. The strategy plots the indicator on the chart, the line is clearly flat and the data box shows the indicator value has not changed on those two adjacent bars yet the strategy enters long anyway. I tried using the "rising" function as well as comparing the values on current and previous bar but the same result. Does a strategy calculates the indicator value differently than the indicator function or with more decimal places than the data box displays so that the difference can be on third or fourth decimal place and therefore not displayed in the data box? The bar type is Renko but I don't think this would be the problem since the market order is based on a change of an indicator value. Any help is appreciated. Thanks in advance.

Comment