What is supposed to happen is if the price exceeds the high of the previous bar (when short) plus the ATR, the position closes.
It works as expected on backtesting but as it is calculating live and not on the close of the bar should "High[1]" still be [1] ? Or should it be High [0]?
Thanks
Mark
&& Avalue == 2)
{
ExitShort();
PrintWithTimeStamp("Exit Short ATR");
}

Comment