Trend-following Strategy E v2.6

Welcome to my first published Trend-following strategy for bitcoin, designed specifically for BITMEX:XBTUSD.
In order to set up Alerts for this strategy, I've created a second script called Trend-following Alert E v2.6 which you can find here:

Here you will find the "active_long" and "active_long" variables (red and blue lines) that show which positions are being taken by the strategy script.
You can set 'Once per bar close' alerts for this to get your alerts on TV.
For instance, I use 'crossing up @ 0.1' on "active_long" to set an 'Open Long" alert and a 'crossing down @ 0.9' to set a 'Close Long' alert.
The same holds for the 'Open Short' and the 'Close Short' alerts but then for the 'active_short' variable.
As you can see from the backtest I've done my best to create a decent ROI with limited DD, i.e., the current max. losing trade for this is -3.8% and max. DD is a mere -8.09%.
You can also run this backtest/strategy with '100% of equity' but I would advise against trading this as DD increases significantly.
With a constant order size, and due to the low inherent DD, this strategy should be quite safe to use.
Going from the results it's clear that this strategy excels during clear bull/bear trends but might suffer a little bit during market chop.
This is also where ROI tends to stagnate a little bit only then to take off again during a clear trend.
There are two inputs that can be modified on this strategy, however I think the current settings are optimal for this market on the 2H candle.
Please let me know if you have any questions.
Script su invito
Solo gli utenti autorizzati dall'autore hanno accesso a questo script e ciò richiede solitamente un pagamento. Puoi aggiungere lo script ai tuoi preferiti, ma potrai utilizzarlo solo dopo aver richiesto l'autorizzazione e averla ottenuta dal suo autore - per saperne di più leggi qui. Per maggiori dettagli, segui le istruzioni dell'autore qui sotto o contatta direttamente HTFlover.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.
Declinazione di responsabilità
Script su invito
Solo gli utenti autorizzati dall'autore hanno accesso a questo script e ciò richiede solitamente un pagamento. Puoi aggiungere lo script ai tuoi preferiti, ma potrai utilizzarlo solo dopo aver richiesto l'autorizzazione e averla ottenuta dal suo autore - per saperne di più leggi qui. Per maggiori dettagli, segui le istruzioni dell'autore qui sotto o contatta direttamente HTFlover.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.