SNOW_CITY

QuantRsi - Quantized Relative Strength Index - SNOW_CITY

SNOW_CITY Updated   
QuantRsi is a Relative Strength Indicator designed to improve on RSI's divergence confirmation. QuantRsi also functions as an entirely new type of range-bound oscillator, enabling "Hybrid TA" - the study and use of drawing tools on candles painted by the indicator.

QuantRsi paints full OHLC candles by default - displaying the full range of each candle's movement.

This tool sets out to accomplish:

  • Confirmation of divergence with a 3-anchor trading system

  • Show key price levels as whole numbers "quantized" from a scale of -10 to + 10; as well as commonly revisited levels within a trend

  • Anticipate divergence & turning points by charting on the indicator candles - trendlines can be drawn on indicator print - "Hybrid TA"

The result is an indicator able to process nonlinear price movements and draw range-bound candles with peaks and troughs that form repeating collisions with common tangents. QRsi illustrates trends and trend violations in a market with the advantage of behaving like a leading indicator. QRsi possesses a supreme ability to show divergence and confirm reversals/ turning points.

The dynamics of the vertical scale allows the formation of linear trends on the oscillator which classical charting can be applied. The support and resistance values for an asset will follow consistent incidents upon a tangent while the market is trending.

When a trend is violated, the break-up or break-down of price will revisit prior incidents both on frequented horizontal levels ("-1.4" or "+5.0") as well as tangent lines drawn from prior reversal points. Prior, violated trend-lines can be used as anchor points for a new linear trend - establishing a hypothetical market range before price moves into these hidden divergence zones.

  • Much like RSI, the extremes of a QRsi range (whether that be +/- 7,10 or the trend-established reversal value) are not always indicated turning points. Divergence does not occur at every turning point, but it does occur at most significant turning points.
  • Unlike RSI, QRsi adds the ability to visualize turning points outside divergence by drawing a trendline from prior turning points to the next anticipated turning point.
  • QRsi enables an asset to express it's price range within a flexible scale for that trend. The scaling has a higher dynamic range than classic RSI, at the expense of not filling the entire range of the oscillator at all times. An asset's highest and lowest trending values should be established by observation of prior visited values, not by the borders of the oscillator's range.


In the main chart example, trend-lines are drawn on the QuantRsi indicator for ETH/USD - Bitfinex 4H
Here is the same chart with notation:

  • The dashed trend-lines represent trends that have not been established yet. They turn solid when they have a second anchor(in primary chart).
  • Trendline violations create anchor points for new trendlines
  • Turning points with and without divergence depend entirely on asset's prior QRsi values, relative on relative.

In the above chart, Qrsi Value "2" is a common reversal value. In the chart period that is shown, selloff ensues shortly after QRsi reaches 2.

QRsi Values range from -10 to + 10. The boundaries represent the extremes of anticipated market range for that timeframe. Unlike traditional RSI, it is rare that an asset will range from the lowest to the highest boundaries. Instead, common values for that asset are observed by studying historical price data. A lower and upper range is established based on historical trends. When these values are hit, it represents an anchor for divergence. You will find that reversals can occur on the +/- 3, 5, 7 and 10 values frequently, although, this is indication without confirmation.

Depending on the timeframe and asset, the common turning point for an asset may be -2 & +5, with outliers to -5 & +7; or it may be -1.4 & +6.5 for an uptrending asset. The horizontal +/- QRsi values which turning points are likely to occur need to be established by studying the asset and verified by divergence or trend incident.

Confirmation is gained by observing the 3-anchor trading system:
  • 1: Divergence - Locally
  • 2: Trend incident or violation - charted patterns, linear ascending or descending trendlines.
  • 3: Horizontal value incident

In the chart below, common horizontal turning points, divergence, and trendline violation are used as indicators for trading.
Observe how the same horizontal levels are visited as support and resistance depending on the direction of the trend prior to visiting that level.
Note how there are 2 coincidences of Trend / Horizontal / Divergence for most of the indicated trades:


This is the same chart, but with trades shown on the price chart as well as the QRsi chart:


And a simplified view of the same chart with Heffae Clouds enabled:


Notice how once a horizontal level is violated, it is often revisited which confirms it's role-change from S to R or R to S.


Weekly chart showing horizontal support level on lows, and divs for 4 prior All-Time-High's


Example of drawing a trend-line on QRsi and setting up a trade based off of a trend incident:
In the above example, the first two incidents are used as anchor points to reference where the third incident might occur.
In this case, you would have all 3 anchors, and a very successful trade with conformation of a proper entry prior to taking the trade.


Example of using a trend-line to set up trade continuation after divergence prints:


Example of how horizontal levels or ranges can be revisited after much time has passed. This also displays how divergences are used with horizontal levels to establish confidence in a trade:


Example of how QRsi values establish future support / resistance value ranges. Candle-wick sets future lower range:


Example of horizontal levels and divergence:


And, a drawing-free chart of QRsi with Heffae Clouds on BTCUSD Dec 2017 - Nov 2018 - Imagine your own TA on the QRsi.



SETTINGS:

TimeFrame settings:
  • "ChartTF" follows your chart's selected resolution / TimeFrame
  • "Non-Chart TimeFrame" is an integer for your custom TimeFrame, the setting below:
  • "Non-Chart TimeFrame" selects "Minutes, Hours, Days" that corresponds to the above setting for a custom TimeFrame.

Visual Settings:
  • "Show QuantRSI As Candles" - Toggle this to change from candlesticks to a simplified line. The line's value is determined by "Input for Stochastic" below
  • "Show Stoch QRSI" - Toggle this to switch to a Stochastic Rsi based off of the QRsi.
  • "Show Price Per 1.0" - Toggle this to see the range value, in chart denomination (USD,GBP,BTC,JPY) for each 1.0 step in the QRsi range for that timeframe. See this example:
The Quantization range values can be displayed by checking the box in settings "Show value per 1.0"
This will paint a colorless line and display the price value in the indicator's data window. You can calculate the rough price difference to any local value in QRsi by multiplying "value per 1.0" by the expected change in QRsi value.

Configuration Settings:
  • "Trend Bias" - Experimental setting for different asset classes and market conditions. Changes QRsi bias. Experiment with this on shorter timeframes. Leave on "low" unless you have established that different settings work better for a particular asset.
  • "Quant Preset" - This is similar to "Path Fitting Preset" on Heffae Clouds. Adjust this to print higher validity patterns on different assets.
    The conformation that this setting is adjusted properly for your asset will be evident by backtesting the QRsi. BTC = 0 ETH / FOREX = 1 & 2
    Experiment with this, as it adjusts the path-finding algo in order to paint valid patterns. The maths are too complex to integrate a single numerical adjustment, hence the preset.
  • "Upper/Lower Bounds" - This adjusts scaling and thresholds. Experimental only at this time. Use in conjunction with "Range Multiplier"
  • "Boundaries" - This adjusts the beginning of the shaded area on the top and bottom of the oscillator. Adjust this to a particular value instead of drawing a trendline on the value of interest. I added this because the shaded areas are easier to see on mobile than a trendline .
  • "Stochastic Short" - Adjust the length of Stochastic RSI SMA's
  • "Stochastic Long" - Adjust the length of Stochastic RSI SMA's
  • "Input for Stochastic" - Select the price source for Stoic & QRsi simplified line.
  • "Range Multiplier" - This amplifies the QRsi input to occupy a larger or smaller range within the oscillator boundaries. Experimental only at this time. Use in conjunction with "Upper/Lower Bounds". Very fun to play with.

That's all for now! I will do my best to keep this updated with new features / capabilities, as well as continuing to provide use examples and education for my indicators.

If there is a feature you would like, question answered, or a bug, please post in the SNOW_CITY Indicators Chat:
www.tradingview.com/chat/

Educational content will be posted here:
https://aedictiveanalytics.wordpress.com/

Please see this pastebin link for access information and links:
https://pastebin.com/v8sp6Y3R








Release Notes:
This update fixes existing features and adds code in preparation for additional tools.

  • "Show value per 1.0" now shows the percentage per 1.0 rather than the asset / ticker price value per 1.0

  • New settings in the configuration menu for volume tools that will be built-in to future QuantRsi versions.
Release Notes:
This update adds the ability to calculate the % change in price to two Qrsi targets
  • "Q Target High (green)" and "Q Target Low (red)" allow you to input a Qrsi value, such as 5.34 or any other number
    - The percentage change in price to reach your target is calculated and displayed on the chart next to the indicator data, and in the data window on the right.

  • Removed some unused inputs related to volume, these features will go on a seperate indicator.

  • Volatility per Qrsi 1.0 (in %) now shows by default

Release Notes:
  • Added option to show "Q Target" as % or $ denomination. Use this as PnL calculator or target for limit order placements on QRsi support.
    - Set "Auto-Scale" to OFF. Check the option that shows delta% to Q Target. Choose % or $ as the denominator.
    - Set the Q Target values to a QuantRsi support level on your chart.
    - Now, the Q Target High and Q Target low will show red and green in the data window to the corresponding % change OR the price value for the QRsi value you have in settings.
    - This value is estimated, and is updated real-time while the bar is still open. This is because it uses realtime price volatility to determine the dynamic range.
  • The ability to set alerts on QRsi crossing a trendline is now easier.

  • To set an alert when QRsi crosses your trendline:
    - right click on your trendline, select "add alert on trendline"
    - Condition: QuantRsi v1 > Alert Trigger > Crossing (or others)
    - This will give you a repainting warning, but this is not relevant for alerts.
    - The "Open" value of a QuantRsi candle will change based on the real-time dynamic range until this candle closes. THis does technically make the indicator "repainting", but the "Open" value is not used for alerts, however having it scale with volatility adds structure to charting future trends.
Release Notes:
  • update formatting
Release Notes:
v2.15 release brings a variety of enhancements along with new features and UI improvements


- Updated to Pine v5


- Added heavily requested BBands coupled indicator feature:
- Show BBands on QRSI" displays Bollinger Bands of QRSI values with configurable BBand standard deviations and moving average length.

- Coupled indicator provides additional insight to price action, elegant tool for mean reversion strategies.

- Useful for "at-a-glance" analysis in absence of traditional QRSI workflow methodology.



- "BBands Line Plot Source" allows selecting any of the standard OHLC source values to your preference.

- "QRSI Configurable Input Source" allows the ticker OHLC value selected to plot a simplified line, for a clean look when "Show QuantRSI Candles" is turned off. In a future update this option will allow aggregating external source values through the QRSI processing chain.



- UI and visual cleanup / streamlining:

- Fixed QRSI candle border visibility when zoomed out

- Non-visual data no longer interferes when auto-scaling the indicator window

- Removed status line displays for non-critical inputs, retaining data-window display for export compatibility

- Removed price scale displays for non-critical plot values, retaining data-window display for all and status-line display for essential values.

- Various renaming of inputs and reordering options menu

- Default precision set to "2" to address an issue where displayed value precision (status and data window) would change depending on the ticker. Adjust this to your preference; Options: style>outputs>precision



- Experimental options retained however adjustment of these values is not recommended.

SNOW_CITY public chat room - Indicator Q&A
www.tradingview.com/chat/

Indicator access information
pastebin.com/v8sp6Y3R
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact SNOW_CITY for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Author's instructions

This is a paid, limited access script. No more than 500 traders are granted access simultaneously An edge is maintained by exclusive and lesser-known analysis methods For subscription inquiry or to arrange a 30-day evaluation period, please pm SNOW_CITY

Want to use this script on a chart?

Warning: please read before requesting access.