I've made a simple strategy that goes long on a green bar with a limit sell to exit, but if a red bar shows up the limit sell is cancelled and the position reverses to short, then aims to limit buy exit for profit. If it's short and a green bar appears, it reverses to long again.
I've gotten great results in backtesting until I looked at the actual chart and have found that the backtester is reversing my results, like a trade that should have been a short entry that loses and reverses long, is being called by the backtester as a successful long entry with a profitable selling exit.
Does anyone have any experience or explanation for backtester completely inverting a losing trade into a winning one like this? It is really skewing my system's statistical results and I don't know what to believe as to its usability
I also understand that I might just be over-coding and missing something obvious so I'll continue to look at this, but I'd like to know if anyone knows of any issues with backtester mistaking the chronological order of regular managed trades, EnterLong, EnterShort, etc
thanks!

Comment