Patrefans
Dutch Algotrading from patreon
Dutch Algotrading patreon

NASOS v4 - Results I cannot explain...

🕑 Added 2024-09-20 14:00:01 +0000 UTC

Comments

Dutch Algotrading

I understand your response. Personally I mostly test out a strategy and if I cannot understand it or is very complex - and in this case cannot understand why it does what it does - I keep things in the back of my mind an will stop further investigation. There are so many other algorithms to discover and limited time. So i'd rather spend time testing out these new ones instead of breaking my head on something I probably would not use anyway. But that does not stop me from presenting my results to others so that they have the benefits of my discoveries.

Ruben Cancho

With two static pairs (BTC and ETH) NASOSv4 only makes 3 trades during 2023, too conservative. Also difference between custom trailing stop and freqtrade trailing stop has some differences in backtesting (slightly better freqtrade trailing stop): Backtesting with custom trailing stop: Backtested 2023-01-01 16:40:00 -> 2024-01-01 00:00:00 | Max open trades : 2 ┃ Strategy ┃ Trades ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃ Drawdown ┃ │ NASOSv4 │ 3 │ 0.47 │ 4.594 │ 0.46 │ 1:03:00 │ 1 0 2 33.3 │ 2.257 USDT 0.22% │ Backtesting with freqtrade trailing stop: Backtested 2023-01-01 16:40:00 -> 2024-01-01 00:00:00 | Max open trades : 2 ┃ Strategy ┃ Trades ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃ Drawdown ┃ │ NASOSv4 │ 3 │ 1.59 │ 15.820 │ 1.58 │ 1:03:00 │ 3 0 0 100 │ 0 USDT 0.00% │ I would go with same setup in backtest and real, I don't understand why should the code should be different. But I need to understand why in my setup trades are so low...

Mihai Dobrescu

I think JasonFlash has found the problem in your test, and I can confirm. You don't follow correctly the instructions for the 2 variants: a) TSL enabled & custom_SL disabled b) TSL disabled & custom_SL enabled You have both disabled in your NoTSL variant. So you wait for a roi of 1000% (that will never come in most cases) to close the trade. The correct version's a) or b) will close a trade after a small +1.6% profit.

Mihai Dobrescu

Yes, same experience, yesterday first 2 trades on SUI. Stoploss setup makes no difference in entry signal.

Mihai Dobrescu

So no +200 Days for a trade, this is nonsense

Mihai Dobrescu

P.S. ... I'm running live the version with TSL disabled since 2 weeks, and today I had first 2 trades: Trade ID: 1 Current Pair: SUI/USDC Direction: Long (1.0x) Amount: 138.5 (207.972 USDC) Enter Tag: ewo1 Exit Reason: trailing_stop_loss Open Rate: 1.5016 Close Rate: 1.52449006 Open Date: 2024-09-20 13:15:03 Close Date: 2024-09-20 14:28:51 Close Profit: 1.52% (3.17 USDC) Trade ID: 2 Current Pair: SUI/USDC Direction: Long (1.0x) Amount: 142.44 (211.139 USDC) Enter Tag: ewo1 Exit Reason: trailing_stop_loss Open Rate: 1.4823 Close Rate: 1.5123928 Open Date: 2024-09-20 14:40:02 Close Date: 2024-09-20 16:01:21 Close Profit: 2.03% (4.286 USDC)

Mihai Dobrescu

Idea is that both versions use trailing SL. One version via trailing_stop = True, and the other via custom_stoploss that have identical trailing effect. And very similar values.

Mihai Dobrescu

trailing_stop_positive = 0.001 trailing_stop_positive_offset = 0.016 This trailing_stop_positive value is way too small, it will be triggered instantly. So this is like having roi at +1.6%. This has no trailing effect with this value of 0.001. Did you see all your winning trades with +1.6% ? We don't have a big difference between the trailing logic and the custom_stoploss logic. Both start at +1.6% and have extrem tight trailing. Trailing-enabled version is at -0.1% and custom_stoploss is starting with -0.2% trailing but going also to -0.1%. For crypto this is almost every 1 min candle. A big problem is in my opinion, that you test with this ancient FQ versions, full of bug's. I have translated NASOSv4 for the actual version with migrated functions (from V2 to V3). If we test with the actual version and get this nonsense between the 2 variants (that are very similar, and results should be close) we can open an issue on github.

Paris Urquhart

I thought you had forward tested this strategy with positive results. Is this not the case?

JasonFlash

I have been running this strategy in dry run for the past weeks and it did not make a single trade... I have the use_custom_stoploss on and trailing stop off. Also I noticed the NoTSL file you uploaded has Use_custom_stoploss False.

David Woodlock

Timely as I was looking at this strategy myself! I don't know why there is such a difference but will look into it more. Note ChatGPT 4o and O1-preview advise that the custom stoploss here is more difficult to Backtest accurately. "Difficult to Backtest: The dynamic nature makes it harder to simulate accurately in backtesting environments."


More Creators