RSI Price Ladder [Quantum Algo]

1 132
RSI Price Ladder [Quantum Algo]

═══════════════════════════════════════════════

🔶 OVERVIEW

RSI Price Ladder is the Relative Strength Index solved for price. Instead of reading the RSI indicator in a separate pane and guessing how far price has to travel, this tool inverts the RSI formula on every bar and draws the answer directly on the candles: the exact price at which RSI reaches 70, 50 or 30.

Two drawings carry that information. The corridor runs through history — the overbought price, the oversold price and the RSI 50 price as lines on the chart, with a gradient glow toward each edge. The ladder stands beside the current bar — a color-graded, price-mapped RSI scale whose rungs are the closing prices needed for each RSI level, with a pointer at the live reading. A readout strip adds the distance to each level and a behaviour record: what this symbol has actually done after entering the overbought and oversold zones.

═══════════════════════════════════════════════

🔶 WHAT IS THE RELATIVE STRENGTH INDEX?

The Relative Strength Index, created by J. Welles Wilder Jr., is a momentum oscillator that compares the average size of recent up-closes with the average size of recent down-closes and expresses the result on a scale from 0 to 100. Readings above 70 are conventionally called overbought and readings below 30 oversold; the 50 line separates net upward from net downward momentum.

═══════════════════════════════════════════════

🔶 WHAT DOES "RSI SOLVED FOR PRICE" MEAN?

RSI is a formula with one unknown on each new bar: the closing price. Everything else — the smoothed average gain and loss carried from the previous bar — is already fixed. That means the formula can be turned around: choose an RSI value, and solve for the close that would produce it. This inversion was published by Giorgos E. Siligardos, and plotting the results as bands on the price chart was described by Francois Bertrand. The levels are exact, not estimates: when a bar closes on the overbought line, RSI reads the overbought level.

═══════════════════════════════════════════════

🔶 WHY IS THIS ORIGINAL?

1. The ladder. A vertical, color-graded scale beside the current bar, mapped to price: each rung is the close required for an RSI level (20, 30, 40, 50, 60, 70, 80 by default), labeled with the price and the percentage distance. Because the scale is drawn in price coordinates, the live RSI pointer sits at the current price in exactly the right place on the scale.

2. The gradient corridor. The overbought, oversold and RSI 50 prices are drawn through history with a glow that intensifies toward each edge, so you can see at a glance where price sat inside its own RSI range on any past bar.

3. Distance readouts. The strip states the close needed for the overbought and oversold levels and how far each is from the current price, in percent and in Average True Range units — a direct answer to "how much room is left?"

4. The zone behaviour record. Every time RSI enters the overbought or oversold zone, the tool checks where price is a set number of bars later and keeps the tally. The strip summarizes it in plain words — after overbought this symbol Fades, Runs or is Mixed; after oversold it Bounces, Slides or is Mixed — with the smoothed share and the sample count. It measures whether the textbook reading of overbought and oversold applies to the chart in front of you.

═══════════════════════════════════════════════

🔶 HOW IT WORKS

— RSI is computed from its components: Wilder-smoothed average gain and average loss of the chosen source.

— For a target level, the required relative strength is level / (100 − level). Using the previous bar's averages, the script solves for the price change that produces that relative strength on the current bar — an up-move if the target is above the reading the bar would have with no change, a down-move otherwise — and adds it to the previous close.

— The corridor plots the solved prices for the overbought level, the oversold level and 50 on every bar. These values depend only on the previous bar's data, so they are fixed when a bar opens and do not move while it forms.

— The ladder repeats the calculation for the rung levels on the latest bar and draws the scale, rungs, labels and pointer.

— A zone entry is recorded when RSI closes at or beyond a level after being inside it. After the look-ahead, the script records whether price is lower (for overbought entries) or higher (for oversold entries). The displayed share is (count + 2) / (entries + 4), which keeps small samples from producing extreme percentages.

All events are evaluated on confirmed bars and do not repaint. No higher-timeframe data is requested.

═══════════════════════════════════════════════

🔶 HOW TO USE IT

— Plan around levels instead of reacting to them. The ladder tells you before the bar closes which price puts RSI at 70 or 30, so an alert or an order can be placed at a price rather than waiting for the oscillator.

— Read the room. A small distance to the overbought price means RSI is close to the zone; a large distance in Average True Range units means it is unlikely to be reached on this bar.

— Use the RSI 50 price as a momentum divider drawn on the chart: closes above it are closes with RSI above 50.

— Check the behaviour record before applying a rule. If the strip says overbought Runs on this symbol and timeframe, fading every overbought reading has not been the historical tendency here; if it says Fades, it has. Mixed means there is no clear tendency to lean on.

— Works on any market and timeframe on standard candlestick charts. The record needs zone entries in the loaded history before it says anything.

═══════════════════════════════════════════════

🔶 SETTINGS

— RSI: length, source, overbought level, oversold level.
— Ladder: visibility, optional 40 and 60 rungs, offset from the last bar, width.
— Corridor: visibility of the corridor and of the RSI 50 line.
— Zone Behaviour Record: look-ahead in bars, samples kept per zone, entry markers.
— Visuals: oversold-side, overbought-side and neutral colors.
— Readout Strip: visibility, position, text size.

═══════════════════════════════════════════════

🔶 ALERTS

— RSI Entered Overbought — RSI closed at or above the overbought level.
— RSI Entered Oversold — RSI closed at or below the oversold level.
— RSI Crossed Above 50 / RSI Crossed Below 50 — RSI closed across the midline.

═══════════════════════════════════════════════

🔶 FAQ

Q: Does it repaint?
A: No. The corridor levels for a bar are computed from the previous bar's data and are fixed when the bar opens. Zone entries, markers and the record use confirmed closes. The ladder is redrawn on the latest bar only and its rungs do not move while that bar forms; only the pointer follows the live price.

Q: Are the levels exact?
A: Yes, for the same RSI length and source. They are the algebraic solution of the RSI formula for the closing price, so a close on a rung gives that RSI reading.

Q: Why are the 70 and 30 prices sometimes far from the candles?
A: Because RSI is smoothed. When the reading is near 50, a single bar needs a large move to push it to 70 or 30. The distance readout in Average True Range units shows how large.

Q: What does "Fades 61% of 44" mean?
A: RSI entered the overbought zone 44 times in the loaded history, and the smoothed share of those where price was lower after the look-ahead is 61 percent. It describes this chart's past only. It is not a forecast and it does not account for trading costs.

Q: Do I still need a normal RSI pane?
A: Not for levels. If you want to see the oscillator's shape, divergences or failure swings, a standard RSI pane remains useful alongside this tool.

═══════════════════════════════════════════════

🔶 CREDITS

The Relative Strength Index and the Average True Range are by J. Welles Wilder Jr. (New Concepts in Technical Trading Systems, 1978). Inverting the RSI formula for price was published by Giorgos E. Siligardos ("Reverse Engineering RSI", Technical Analysis of Stocks & Commodities, 2003), and drawing RSI levels as price bands by Francois Bertrand ("Visualizing RSI", Technical Analysis of Stocks & Commodities, 2008). Additive (Laplace) smoothing is classical statistics. The ladder scale, gradient corridor, distance readouts, zone behaviour record and all code in this script are original work. No third-party or open-source script code was reused.

═══════════════════════════════════════════════

🔶 LIMITATIONS

— The levels apply to the current bar's close. They change on the next bar as the averages update.
— The behaviour record depends on the loaded history, the look-ahead and the levels chosen; small samples are unreliable even after smoothing, and a past tendency can change.
— The record measures price direction after a zone entry only. It is not a trading system and includes no stops, targets or costs.
— Intended for standard charts. On Heikin Ashi, Renko and other synthetic chart types the solved prices refer to synthetic closes.

═══════════════════════════════════════════════

🔶 DISCLAIMER

This indicator is a research and charting tool provided for educational purposes. It is not financial advice, and nothing it displays is a recommendation to buy or sell any asset. Past behaviour does not guarantee future results. Trading involves substantial risk of loss. Always do your own analysis and manage risk responsibly.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.