OPEN-SOURCE SCRIPT

Classic Long Term Trend Following System

Di LordRobrecht
Aggiornato
This is a classic long term trend following system.

The breakout period is 50 days instead of 20 and the moving average crossover are 40 and 120.

The moving averages are also exponential instead of simple.

The stoploss is 4 ATRs away from the price.

Recommendations:
Donchian Channels settings > 50 days
Moving Averages > 40 and 120, 80 and 140

Important to note:
My first strategy, DC Breakout System | This is simplicity at its finest, is best used on the crypto market and this one for stocks, commodities, currencies, etc. Those markets tend to trend a lot longer than crypto do.
Note di rilascio
Replaced the multiplier in the position size formula with syminfo.pointvalue in order to get a more accurate position size.
Note di rilascio
Reverted the pyramiding setting from 4 back to 1 to keep the system simple and the max drawdown low.
Added a visual ATR trailing stop, so you know where to put your stoploss.
Note di rilascio
Adjusted the position size formula.
Improved the stoploss multiplier.
ATRbreakoutbreakouttradingcrossovercrossovertradingDonchian Channels (DC)Moving AveragesTrend Analysistrendfollowingtrendtrading
LordRobrecht

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità