OPEN-SOURCE SCRIPT

Trend Follower Index

Description

The purpose of this index is to give an idea about the possible direction of the trend. The index is overbought between 70 and 100, and oversold between 30 and 0. Unlike a typical RSI calculation, the 6-bar simple moving average of the price is calculated first. Then, the 21-bar RSI value of this moving average is calculated.



Why

The 6-bar average is often one of the best averages to show the direction of prices. Closes below this average give strong indications of a trend reversal. To display this average on the horizontal plane, I used the RSI function and took 21 bar as the reference length. Because in my research, I realized that 21 bar length is the most ideal upper and lower points. That's why I coded an indicator that shows where a trend is going and how far that trend needs to go.



Use

It becomes oversold when the Moving Average falls below 30. Here we encounter 3 types of colors;

  • Light Blue: Indicates that the average is between 30 and 20. It indicates the stage when small purchases begin and the decline rate of the trend begins to decrease.
  • Blue: Indicates that the average is between 20 and 10. It indicates the stage when purchases begin to become more frequent and the rate of trend decline begins to decrease slightly.
  • Green: Indicates that the average has fallen below 10. It is the ideal level for purchasing. This indicates the stage when buying pressure has increased significantly and the trend is ready to reverse upward.


As the level decreases, purchases should increase.


Again, when the average value exceeds 70, it becomes overbought. Here we encounter three types of colors;

  • Yellow: Indicates that the average is between 70 and 80. It indicates the stage when small sales begin and the rate of increase in the trend begins to decrease.
  • Orange: Indicates that the average is between 80 and 90. It indicates the stage when sales begin to become more frequent and the upward trend begins to decrease somewhat.
  • Red: Indicates the average is above 90. It is an ideal level for sales. It now marks the stage where selling pressure has increased significantly and the trend is ready to turn downwards.


As the level increases, sales should increase.



Originality

First of all, this moving average is not an RSI. RSI is only used to establish the average on a flat basis. The RSI is merely a helpful tool in determining how much the moving average will rise or fall.

The 6-bar average of the value obtained by calculating Bar (Opening + Closing + High + Low) / 4 gives information about the main trend. In my research and usage, I have observed that as long as the price remains above this average, the price continues to move upwards, and when it remains below it, it is willing to move downwards.



Disclaimer

This indicator is for informational purposes only and should be used for educational purposes only. You may lose money if you rely on this to trade without additional information. Use at your own risk.



Version

v1.0
Relative Strength Index (RSI)Simple Moving Average (SMA)smaTFI

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?


Ngoài ra, trên:

Thông báo miễn trừ trách nhiệm