INVITE-ONLY SCRIPT

QuantRsi - Quantized Relative Strength Index - SNOW_CITY

Telah dikemas kini
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.


syot kilat

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:
syot kilat

  • 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:
syot kilat


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


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


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.
syot kilat
syot kilat


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


Example of drawing a trend-line on QRsi and setting up a trade based off of a trend incident:
syot kilat
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:
syot kilat


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:
syot kilat


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


Example of horizontal levels and divergence:
syot kilat


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



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.
syot kilat

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:
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








Nota Keluaran
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.


Nota Keluaran
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

Nota Keluaran
  • 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.
Nota Keluaran
  • update formatting
Nota Keluaran
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.
heffaecloudsHidden RSI DivergenceOscillatorsqrsiquantrsiRelative Strength Index (RSI)rsibreakoutrsi_divergencesnow_citySupport and Resistance

Skrip jemputan sahaja

Akses ke skrip ini adalah terhad kepada pengguna yang diberikan akses oleh penulis dan kebiasaannya memerlukan pembayaran. Anda boleh menambahkannya kepada senarai kegemaran anda, tetapi anda hanya dapat menggunakannya setelah meminta izin dan mendapatkannya dari penulis. Sila hubungi SNOW_CITY untuk lebih maklumat atau rujuk arahan penulis seperti di bawah.

TradingView tidak mencadangkan anda membayar untuk skrip dan menggunakannya kecuali anda mempercayai penulisnya 100% dan memahami bagaimana skrip itu berfungsi. Juga, anda boleh mencari alternatif sumber terbuka yang bagus secara percuma dalam Skrip Komuniti kami.

Arahan penulis

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

Ingin menggunakan skrip ini pada carta?

Amaran: sila baca sebelum memohon akses.

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

Indicator access information
pastebin.com/v8sp6Y3R
Juga pada:

Penafian