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 אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יוכלו להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אבל השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

רוצה להשתמש בסקריפ זה בגרף?


גם על:

כתב ויתור