PROTECTED SOURCE SCRIPT

(JS) RSI Divergence Volume Weighted (v1.1)

Uppdaterad
Okay so I added all kinds of stuff - not sure you've ever been able to customize RSI like this before. The goal here was to allow the user to be able to play around and find the RSI formula that suits them the best.
There's still the obvious features from version 1.0 which are RSI Length and Relative Volume Length, but I really expanded upon the first one. Here's the list of new features:

- RSI Input: 0-6 are the options and they allow you to use - Close, Open, High, Low, HL2, HLC3, and OHLC4. Now you can plug any of these choices into the RSI formula.
- RV x Divergence?: This is how I calculated the original formula, but you can leave this unchecked to turn Relative Volume off, or apply elsewhere.
- RV x RS?: Another way to calculate the function. There's two sides, Divergence RS and Standard RS - these check marks allow you to select which part you prefer to be multiplied by Relative Volume. Check neither to turn off RV multiplication, check both to add it on both sides of the equation.

* Relative Volume Note - when looking at longer term charts, be aware that if a candle JUST began, it's obviously going to have really low RV and will throw off the current candle (which is why I added the option to turn off/on). Best usage is at candle close (or ignore the current candle).

-Divergence Weight: So as it stands, the Standard RS and Divergence RS are both equal weight ([1+1]/2). This allows you to change the weight at increments of 0.1 on a scale of 0-2. Making 2 purely Divergence, and 0 purely Standard RSI. With RV left off on both options, and a weight setting of 0, this becomes a regular RSI again.
-SMA Divergence?: This is the option to leave the Divergence equation unsmooth, or to smooth it over. SMA is an unsmoothed average, whereas leaving it unchecked runs it through an RMA smoothing the same way standard RSI is calculated.

-Fractal Divergence Lines: I added fractal lines to spot divergence in the indicator vs. the price. This was meant to help you spot divergence easier.
-Show Fractal Labels?: This adds "Bull" and "Bear" labels on said divergence.
-Show Fractal Channel?: This allows you to see the whole fractal channel.

-Added Horizontals: I added horizontal lines at 40 and 60, to make viewing the RSI values a bit easier.
-Added Trend BG: I also added a feature where the BG color will change with the ongoing trend. I removed the previous colors I had in the BG.

Enjoy!
Versionsinformation
Update: Source Input Fixed
Versionsinformation
Updated the Trend BG
Versionsinformation
Added a new color scheme
Versionsinformation
Added Color Scheme
Relative Strength Index (RSI)Trend AnalysisVolume

Skyddat skript

This script is published closed-source and you may privately use it freely.

Vill du använda det här skriptet i ett diagram?

Frånsägelse av ansvar