-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About backtesting and real-life situations #24
Comments
这个是抄底策略,持续缓慢下跌的时候会连续止损,最好加个protection |
如果是抄底策略, 那更不合适了, 因为它的每次盈利点都很低, 盈利低, 抄底风险高, 显然不合适啊 |
超参数调一下profit factor,把盈亏比调高一些 |
这个策略入场的位置很好,不好的地方就是止盈和止损,止盈太快了,大概10~20分钟就止盈了,即使后面还会上涨,因为这个策略用的fastk止盈,fastk感觉只能吃到一波上涨。止损不太行,之前的版本用custom_stoploss移动止损还好一些,现在用了硬止损-25%,现在这个用hold自定义退出的逻辑我感觉还是不行。 |
可以使用这个项目来对策略进行全局优化 https://github.com/imsatoshi/GeneTrader.git |
You have to do a backtest with --enable-protections so that it respects the cooldown period ! This means that the profits in the backtests are close to the real ones Mfg |
yeah, that is right |
哎,这玩意不好弄,我自己都改乱了. |
So the last changes to the strategy are all unnecessary. buy_new drags down the performance of the strategy. And on top of that, the custom_stoploss only triggers when the profit is over 5%, but that is the point at which trailing_stop ends the trade. So that makes no sense. |
Cool.I can see that you have been studying and paying attention to my strategy, thank you very much, my every revision is just my simple idea, I have been groping and studying. Maybe you can do better than me. And thank you for your advice. |
Hello, have you tested it in the real market? I have tested it in the real market. I have been losing money, but the backtest is profitable. I have analyzed the reasons. One is because of trailing_stop and the other is because of the slippage of the market price order, which is not slippage. How much loss did the points cause? It was the slippage that caused trailing_stop. I originally quit during the backtest, but now I won’t quit. |
Man, I found a freqtrade strategy that has a win rate of 100% from 01/01/2024 to today and with 230 pairs on Binance... It's actually too good to be true, but when I look at the dataframe plot of the individual pairs, the trades all seem to look good. That's why I've just switched from this strategy to the new one and am now testing it in live mode... If you have some experience, let me know... Best regards |
argrelextrema |
You could use a sliding window, limit it to future data, and then backtest it. |
a sliding window? Im confused what do you mean exactly? |
argrelextrema 这个方法有个order参数貌似就是防止前瞻的 |
没有用的, 我试过 |
滑动窗口可以 |
Sorry My Englisch is not the best ... I have the same problem, can you help me out, i'm not understanding the problem really |
这个问题在于, 它使用的是市价单, 并且它的退出是基于盈利, 没有固定的退出位置 这会导致极大的不确定性, 就是回测中可能很好, 盈利退出了, 但是实盘中, 因为滑点, 导致盈利的时候并没有退出, 进而导致亏损 |
你使用限价单回测, 会得到两种不同的结果, try 一下呢 |
Okay, I understand the problem... |
没有解决办法, 如果我有解决办法, 我还会亏钱吗? |
另外这个策略, 建议不要上来实盘, 先dry一段时间, 你会看到跟回测的差距 |
这些我之前都测试过的, 你使用滑动窗口, 优化一些参数, 进行回测, 策略整体可能会盈利, 但是绝对跟现在的回测是两码事 |
Do you mean this strategy here or the one I posted? |
This doesn't necessarily belong here, but I found another strategy that has about the same profit as this one. P.S. this strategy and the E0V1E can also be easily combined together. Only the E0V1E strategy pulls the stats down heavily |
If a strategy's profitability is so strong that it seems unrealistic, it is likely to have made a lookahead error, meaning it used future data to predict current trends, resulting in a win rate of 100%. Wenn die Rentabilität einer Strategie so stark ist, dass sie unrealistisch erscheint, hat sie wahrscheinlich einen Lookahead-Fehler gemacht, d.h. sie hat zukünftige Daten verwendet, um aktuelle Trends vorherzusagen, was zu einer Gewinnrate von 100 % führt. |
@riven-blade |
Here are a few days results in direct comparison: Test 5 secondes : |
Your analysis is nice! |
The exit of this strategy relies too much on trailing_stop, and uses market orders. During the price drop, the slippage is more obvious, and the difference between backtesting and real trading is huge.
The text was updated successfully, but these errors were encountered: