What is the easiest way to avoid unnecesarily good results in a backtest, ex.
if next bar after enter xxx limit order will be filled and if target limit or stop limit is reached at same bar update, enter and exit is done during the same "bar".
This not necesarily right if real time data is used (trending to other direction), should bars be divided to smaller parts and stop loss or target to be set after entering the order or are there any other good ways to avoid that?

Comment