Patrefans
Dutch Algotrading from patreon
Dutch Algotrading patreon

ANOTHER 4 SMA Offset strategy versions compared

🕑 Added 2024-11-15 15:33:23 +0000 UTC
ANOTHER 4 SMA Offset strategy versions compared

Comments

Dutch Algotrading

Hi Tom, First of all my compliments for being so noticeable and detailed. This can bring you very far :-) As for your concern, I believe I know what the problem is. I discovered a version(iteration) of this Offset strategy with a different filename, but the author kept the Original strategy name in the class. So I accidentally have created a confusion by adding/replacing another strategy with the same name to the League table. This was not my intention of course and I apologize for that. I checked both versions code and plots and they are very much different in performance. As an example: The original SMAOffsetProtectOptV1(IStrategy) contains : # Buy hyperspace params: buy_params = { "base_nb_candles_buy": 13, "ewo_high": 5.835, "ewo_low": -19.909, "low_offset": 0.978, "rsi_buy": 55, } # Sell hyperspace params: sell_params = { "base_nb_candles_sell": 18, "high_offset": 1.012, } # ROI table: minimal_roi = { "0": 100.0 } # Stoploss: stoploss = -0.15 The new 973 SMAOffsetProtectOptV1(IStrategy) contains : # Buy hyperspace params: buy_params = { "base_nb_candles_buy": 16, "ewo_high": 5.638, "ewo_low": -19.993, "low_offset": 0.978, "rsi_buy": 61, } # Sell hyperspace params: sell_params = { "base_nb_candles_sell": 49, "high_offset": 1.006, } # ROI table: minimal_roi = { "0": 0.02, "180": 0.01 } # Stoploss: stoploss = -0.5 And these settings can create a huge difference in performance. Not only on the same timeframe, but also can cause another timeframe to perform better and thus appear at the top. Again sorry for the confusion here. Hope this explains things for you.

Tom

Hi DCD, I'm having a difficult time understanding the timeframe setting and differences between SMAOffsetProtectOptV1.zip in this particular post and in the "TRUE Winning strategy" post you did on august 30. In august you presented results with this strategy being run on the 30-minute timeframe, however the .py file you provided has timeframe set to 5 minutes. The same goes for this post, although this was just a backtest, which would be more understandable. There are also slight differences in the buy_params, for example, between the file from august and this one. What's also confusing to me is that both analyses seem to share the same results and name on the All Strategy scores in League, the pictures you provide, even though they have clearly different parameters. ROI is different, stoploss etc. Is it the same strategy? Is the timeframe set somewhere else? If this one is meant to be different with the "973" at the end, why do they seem to have the same score in the Strategy League? Love your content btw, I find it amazingly useful!


More Creators