Closed SeifallahSnoussi closed 2 years ago
I believe this is due to a change in how the bid/ask spread is included in backtests by the virtual broker. In v0.6.5
and below, the spread
argument in the backtest
method was treated as a spread value in pips, where 1 pip = 0.0001 price units. Of course, this is not true for all instruments, and so in v0.6.6
, I changed the definition of spread
to refer to the bid/ask spread in price units. So, if you previously had spread=0.5
, you should update this to spread=0.00005
for equivalent results.
Apologies for not having a clear warning on this change, but ultimately I think it is a better approach to including the spread cost in backtests.
Please let me know if this doesn't fix the issue you are seeing.
Thanks. that was it, I forgot to mention that I've configured spread cost in backtests.
I've changed the value as you asked me, and I got the same exact results as it was in the previous version (0.6.5)
Great, glad it was a simple fix!
Describe the bug I had different backtest results after I've upgraded Autotrader from 0.6.5 to 0.6.6.
In the backtest in version 0.6.6:
In the backtest in version 0.6.5:
Backtest results in version 0.6.5
Backtest results in version 0.6.6
My strategy params
Strategy signals
to initiate a Long position I set this code:
For Short position I set this code:
Take profit or Stop Loss when it reaches 6%