MA Trend Score

Disclaimer: I am not associated with Navy Ramavat in any manner.
The goal is to objectify the trend of an instrument and calculate a score which represents the trend strength and direction.
The score is calculated as follows:
- If price is > EMA 20 add 1 to the score
- If price is > EMA 50 add 1 to the score
- If price is > EMA 100 add 1 to the score
- If EMA 20 is > EMA 50 add 1 to the score
- If EMA 20 is > EMA 100 add 1 to the score
- If EMA 50 is > EMA 100 add 1 to the score
- If EMA 20 is < EMA 50 deduct 1 from the score
- If EMA 20 is < EMA 100 deduct 1 from the score
- If EMA 50 is < EMA 100 deduct 1 from the score
The highest score can be 6, and lowest score can be -6
The trend score can be used as per your discretion on the long and short side.
An example of using the trend score on the long side for position sizing is:
- 100% position size if Score greater than 4
- 75% position size if Score between 2-4
- 50% position size if Score between 0-2
- 25% position size if Score between 0 and -2
- 0% position size if Score is less than -2
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.