OPEN-SOURCE SCRIPT

Relative Strength Index 2x ma

已更新
The relative strength index, represented as two moving averages with periods, one of which will be a multiple of the longer moving average by the amount you set.

The indicator can work both in automatic and manual mode. In automatic mode, the optimal periods are selected, in my opinion, depending on which timeframe is being analyzed at the current moment. In manual mode, you can set the required period yourself.

You can also set the method of smoothing the moving averages yourself and apply them to the opening or closing, the minimum of the bar, etc.

An important point: it is possible to enable/disable graphical functions that may not be required - just check the box next to the function that you want to see on your indicator.

  • Show ConDiv? - enabling / disabling the convergence/divergence function of the moving averages of the RSI indicator (not to be confused with the MACD for the asset price chart) 快照
  • Show ma? - enabling/disabling the graphical display of the moving averages of the RSI indicator
    快照
  • Show RSI? - enabling / disabling the standard RSI indicator (if you want to see only it, check the box opposite; in this case, you need to remove the other two checkboxes)
    快照

I wish you good luck in building your trading plans, and remember: such indicators do not predict the future price movement on the chart, they only determine the characteristics of the price movement at the current time, taking into account historical data.
版本注释
The more any parameters, the more confusion and less understanding of the situation as a whole. Therefore, I decided to abolish some functions and added a new function for smoothing moving averages.

In particular,
  • I abolished the mode of selecting moving averages and instead added a new moving average smoothing function, which outputs the average value of all the smoothing functions that I currently know. Thus, the new function carries some of the advantages of various moving averages and somewhat smooths out some of their disadvantages.

  • I also decided to remove the slow moving average from this indicator, because its reaction to changes in the chart data turned out to be too slow.

  • Now the indicator displays the intersection of the index itself and its fast moving average. At the same time, the convergence/divergence of these lines is now displayed in the indicator window much more correctly than it was before.

  • The "Divider" parameter directly affects the sensitivity of the moving average of the relative strength index - the higher its value, the more sensitive the moving average is.

  • In the updated indicator, you can see a checkbox with the name: "Use VWMA?". It is needed so that it is possible to remove volume smoothing from the calculation of moving averages. This may be necessary in order to be able to analyze instruments that do not have trading volumes. for example, the dollar index (DXY)


In general, now the indicator has become much more sensitive and at the same time much more accurate than before. Good luck in your trading!
Moving AveragesOscillatorsoverboughtoversoldTrend Analysisиндексотносительнойсилыиндикаторыперекупленность

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


更多:

免责声明