I have a look forward bias during backtesting because of the following problem:
At the signal bar I submit an entrylonglimit order, the limit being a value
below the close of the signal bar and above the high of the following bar.
If I chose Default as fill type, the entry is taking place rigth within the gap at
the limit price. When I chose liberal as fill type, entry is taking place at the High of the bar. Both is not happening in real life and the latter causes a negative bias in system performance. In my view it's more realistic to do a fill at the open of the bar, when the
price of the Open is alreaedy below the limit. How to script that in a correct way?
entrystoplimit seems to behave "correct" at gaps.

Comment