I am trying to build an automated trading strategy using parabolic SAR. But there seems to be some problem in calculating the SAR value. I am attaching screenshots of the error where I witness a change in the SAR direction but trend change condition has not met. For example, from the image, you will see the upward trend signal should happen only when the high of the current bar exceeds the SAR value of the previous bar. However, what I see right now is that high has not exceeded the previous SAR value and trend has changed. This becomes a problem if I try to compare the current bar high with previous bar SAR value for exiting my trade.
Please, I would really appreciate if Ninja could look into this. Because, according to Esignal screenshot, the value of SAR of the previous bar is much lower than Ninja's value.
Note: In both screenshots, I have circled the candle in question. You could see that in Ninja image, SAR changes direction even though the high of the candle is not higher than the SAR value on the previous candle. According to Ninja, previous SAR value is 53.84 and current bar high is 53.78. In eSignal, the previous SAR value is 53.778 and current bar high is 53.78.
Thanks and Regards,
Vipin
Comment