OPEN-SOURCE SCRIPT

[R]2 - Reversion

업데이트됨
The Idea:
I had the idea for this script when I read an article about how assets tend to revert to their long-term average or mean. The concept behind "R2" is based on the assumption that extreme deviations from the average tend to be corrected. For example, if an asset is trading well above its historical average, there is a possibility that the price will return towards the average. Conversely, if an asset is trading well below its average, there is a tendency for it to move back towards the average.

This concept serves as the foundation for this script. I have tried to keep the representation as simple as possible, and please remember that "Reversion" (as it's called in financial terms) is not a guaranteed rule but a statistical phenomenon.

The Indicator:
This indicator calculates the average and the distance of closing prices from this average every X periods. The calculated value fluctuates between 0. If the calculated value moves from above towards the zero line, it may indicate further declining prices. If the value moves from below towards the zero line, it may indicate rising prices. If the value is below the zero line, the area between the zero line and the calculated value is displayed in red. If the value is above the zero line, the area is displayed in green.

You can adjust the number of periods. The 'Multiplier' allows you to set how sensitive the indicator reacts, and the 'Threshold' variable sets the threshold for calculating a new average. It's best to adjust the settings to find the most suitable configuration for your needs.
릴리즈 노트
I have revised the indicator so that the turning point can be detected, and this is made visible by changing the color scheme. I use the indicator to alert me to potential trend changes.

In the daily or weekly chart, I closely observe the changes in the indicator. When a potential turning point appears, and the indicator signals a change in direction, I become alert. However, I am cautious and do not immediately enter the market. Instead, I use this information as an initial hint of a possible trend reversal.

Subsequently, I closely monitor the further developments in the candlestick chart to look for additional confirmations of the suspected trend change. I also take into consideration other technical indicators and fundamental information to support my decision.

Only when I receive multiple confirmation signals and the indications of a trend reversal are strong, do I identify a suitable entry opportunity. This could be a pullback, consolidation, or a new signal from the indicator that confirms my initial assumption.

Through this approach, I aim to become aware of potential trend changes early on while minimizing risks. It is essential to emphasize that no indicator or analysis tool is 100% error-free; therefore, I remain disciplined and adhere to my predefined trading rules and risk management strategies.
릴리즈 노트
Added alarm
릴리즈 노트
In the original version, the indicator turned red when the value fell below 0 and green when the value was above 0. I changed that, and the color change occurred when the indicator changed direction.
However, I found that it is better to wait until the indicator crosses the zero line. Therefore, I added the possibility to switch between them.
Of course, you can still wait until the zero line is crossed, but I often caught myself reacting too early. :)

I use the indicator to detect medium with long-term trends.

I wish everyone successful trades and health to have fun spending money ;)
CyclesstatisticsTrend Analysis

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항