OPEN-SOURCE SCRIPT
WN 5-20-50 SMA Setup (Discrete Lines = SL TP) Multiple Entries

Pretty Simple Script as I got this idea from a YouTuber that showed us how to use AI to make TradingView Indicators.
When the 5 day Simple Moving Average Goes Above the 20 day Simple Moving Average it issues a BUY Signal when the Trend itself is over the 50 day Simple Moving Average.
When the 5 day Simple Moving Average Goes Below the 20 day Simple Moving Average it issues a SELL Signal when the Trend itself is under the 50 day Simple Moving Average.
The Green Cloud Represents price over the 50 day Simple Moving Average. BUY signals will only show up in the green cloud.
The Red Cloud Represents price under the 50 day Simple Moving Average. SELL signals will only show up in the green cloud.
The lines represent Stop Loss and two Take Profit Levels. Take Profit 1 is 1.5x the stop loss and Take Profit 2 is 3x the Stop Loss.
This version of the Script has multiple Trend signals for entries so you can scale into a trade when the Trend is being aggressive.
When the 5 day Simple Moving Average Goes Above the 20 day Simple Moving Average it issues a BUY Signal when the Trend itself is over the 50 day Simple Moving Average.
When the 5 day Simple Moving Average Goes Below the 20 day Simple Moving Average it issues a SELL Signal when the Trend itself is under the 50 day Simple Moving Average.
The Green Cloud Represents price over the 50 day Simple Moving Average. BUY signals will only show up in the green cloud.
The Red Cloud Represents price under the 50 day Simple Moving Average. SELL signals will only show up in the green cloud.
The lines represent Stop Loss and two Take Profit Levels. Take Profit 1 is 1.5x the stop loss and Take Profit 2 is 3x the Stop Loss.
This version of the Script has multiple Trend signals for entries so you can scale into a trade when the Trend is being aggressive.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.