OPEN-SOURCE SCRIPT

Rainbow Adaptive RSI [LuxAlgo]

已更新
The following oscillator uses an adaptive moving average as an input for another RSI oscillator and aims to provide a way to minimize the impact of retracements over the oscillator output without introducing significant lag.

An additional trigger line is present in order to provide entry points from the crosses between the oscillator and the trigger line. More details are given below.

Settings

  • Length : period of the oscillator
  • Power : controls the sensitivity of the oscillator to retracements, with higher values minimizing the sensitivity to retracements.
  • Src : source input of the indicator


The indicator also includes the following graphical settings:

  • Gradient : Determines the color mode to use for the gradient, options include "Red To Green", "Red To Blue" and "None", with "None" displaying no gradient.
  • Color fill : Determines whether to fill the area between the oscillator and the trigger line or not, by default "On".
  • Circles : Determines whether to show circles highlighting the crosses between the oscillator and the trigger line.


Usage

The indicator can be used like any normalized oscillator, but unlike a classical RSI, it does not converge toward 50 with higher length values. This is caused by the RSI using a smooth input.

The power setting will minimize the impact of certain variations on the oscillator:

快照

Here the oscillator at the bottom uses a power value of 1.5.

The trigger line is a smoothed RSI using an EMA as input, and it won't remain as near to 100 and 0 as the main oscillator. Using a moving average of the main oscillator as a trigger line would create faster crosses, but this approach allows us to have no crosses when a retracement is present.

快照

Details

As previously discussed the main oscillator uses an adaptive moving average as input; this adaptive moving average is computed using a smoothing factor derived from an RSI oscillator, a similar adaptive moving average known as ARSI, but unlike ARSI which uses a classical RSI of the closing price for the calculation of the smoothing factor, our smoothing factor makes use of RSI on the adaptive moving average error, which provides a higher level of adaptiveness.
版本注释
License Update
版本注释
Minor Changes.
版本注释
Update to script title.
Adaptive Moving Average (AMA)arsiLUXluxalgoMoving AveragesOscillatorsRelative Strength Index (RSI)rsi_divergencersi_overbought

开源脚本

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

想在图表上使用此脚本?


Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
更多:

免责声明