✨ Strategy Discussions

Discussion myshortingstrategiembe2 — discussion

🧑‍💻 Gojel OP 1
this strategy lookahead bias, i have testing in local
🐋 Ron Mod 0
Hi Gojel, which command did you run to check this, I'm curious since the std freqtrade analysis and the code checks seem to miss that, and I want to improve it. It would not suprice me since the performance is to good to be true.
🐋 Ron Mod 0
Also, which lines is it in, do you know? Then I can update and improve detection.
🐋 Ron Mod 0
Just checked on PC, yes it has this, which is bad:
# Heikin Ashi candles
heikinashi = qtpylib.heikinashi(dataframe)
dataframe['open'] = heikinashi['open']
dataframe['high'] = heikinashi['high']
dataframe['low'] = heikinashi['low']
Will add a check for it.
And it also has dead/old code ['sell'] and ['buy'] is old. (edited)
🧑‍💻 Gojel OP 0
Yes, you're right. code directly changes the default open, high, and low columns to Heikin Ashi prices, which will disrupt the calculations of other Freqtrade indicators and disrupt the execution of simulated prices during backtesting.
This makes the backtest results appear unrealistically profitable.

Log in or sign up to join the discussion.