I used a print statement to debug my current strategy (running in sim mode) and when the first trade opened the print statement showed the BarsSinceExit() value as 2077.
Where does this erroneous number come from and how can I get the -1 value for the condition of no previous exits?
Thanks,
Safetrading
Comment