OPEN-SOURCE SCRIPT
已更新

MA Trend Score

323
A Trend Score Indicator inspired by an interview by Navy Ramavat, where I liked the idea presented and decided to publish a script for it.

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:
  1. 100% position size if Score greater than 4
  2. 75% position size if Score between 2-4
  3. 50% position size if Score between 0-2
  4. 25% position size if Score between 0 and -2
  5. 0% position size if Score is less than -2
發行說明
Added an option to display the trend scrore above each candle, so that users can study how the score has changed over time.

I typically use this trend score with the position sizing mentioned earlier, on broad indices to determine the current state of the market. Depending on the market, I make a decision on the direction of my trade (long/short) and how aggressive to trade.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。