Zaktualizowano

Price Reaction Levels [MQLSoftware]

Get this and other exclusive indicators in MQLSoftware Pro Analysis Suite

This indicator is part of MQLSoftware's Paid Space. Subscribe for $69.00/month to use it on your charts along with the author's other exclusive indicators. You pay right on TradingView and get access straight away.

Explore MQLSoftware Pro Analysis Suite
Price Reaction Levels is a trend-and-structure overlay that maps the horizontal levels price actually reacts to, reads trend from two independent engines that must agree before the state flips, and turns each confirmed signal into a drawn plan with an entry, a structural stop and staged targets. Levels are not static lines: they are born from confirmed pivots, merge when they crowd, count how often price reacts to them, flip role once when broken, and are marked as weakened when they have been tested too many times. A right-side panel carries trend state, market regime, higher-timeframe agreement, a graded strength for the current setup, and the live trade.

This is a visual analytical tool intended for chart reading and structure mapping. It does not execute trades and does not provide financial advice.

Key Features
  • Reaction levels with a life cycle: pivot-born, merged when they crowd, role-flipped once when broken, retired on a second break, and flagged as weakened (dashed, marked "weak") once they have been tested four or more times
  • Dual-confirmation trend: an efficiency-adaptive ribbon and an adaptive trail must agree before the trend state changes; while they disagree the previous state is held rather than flipped
  • Three signal families, each named on the chart: Level Reaction, Trend Flip and Ribbon Pullback
  • Every confirmed signal is graded 0-100 by a model built only from factors measured to rank outcomes; the grade is also the gate, and setups below your minimum never reach the chart
  • Each signal is drawn as a complete plan: entry, a stop placed behind the structural reason for the signal, and three staged targets as R multiples
  • Trade management on the chart: partial exits at each target, an optional break-even move, an optional trail-out runner on higher timeframes, and a time stop for setups that stall
  • Multi-timeframe rows selected automatically from the standard ladder, with a manual mode
  • Four trading-style presets (Scalping, Day, Swing, Position) selected automatically from the chart timeframe, or pinned manually


Core Concept

Most trend-and-level tools on TradingView take one of two approaches. They either draw support and resistance from recent pivots and leave every line looking equally valid forever, or they stack a moving-average ribbon and a trailing stop and call agreement between them a signal. The first leaves the reader to judge by hand which level still matters; the second inherits the whipsaw of its own components, because both are built from the same fixed-smoothing family.

This indicator starts from a different base: describe the market's efficiency first, let both the trend engines and the level model react to it, and grade the result only on evidence. It adds four specific algorithmic elements on top of that base.

1. Reaction Flow Average (RFA). The ribbon is not a moving average from the standard library. It is a recursive smoother whose coefficient is re-derived on every bar from the Efficiency Ratio of the current leg, so the same length behaves like a much faster average when price travels in a straight line and like a much slower one when it churns. A fixed-coefficient average can only approximate one of those two states; this one moves between them continuously. Each call site keeps its own recursive state.

2. Adaptive Reaction Trail (ART). The trail is a one-directional ratchet whose channel half-width scales inversely with efficiency: it widens in inefficient, choppy conditions and tightens as a move becomes clean. It only ever moves in the direction of the active trade and never loosens, so a stop-out requires a real structural break rather than noise.

3. Dual-Confirmation Trend State. The ribbon votes by hysteresis, the trail votes by its ratchet direction, and the trend only changes when both agree. Disagreement holds the previous state instead of flipping. This is the deliberate anti-whipsaw property of the design, and it is why the trend state survives pullbacks that flip single-engine tools.

4. Evidence-Driven Reaction Score. The grade is not a count of how many things agree. Each candidate factor was measured against historical outcomes and kept only if it ranked them; factors that looked reasonable but did not separate results were removed from the grade entirely, even though several of them still do useful work elsewhere in the engines. What survived: the signal family, higher-timeframe agreement, and how many times the level has already been tested. That last one is deliberately non-monotone and runs against the common assumption: a level tested once or twice grades highest, and a level tested four or more times grades lowest and is drawn as weakened. The indicator states that on the chart rather than presenting every level as equally strong.

Anatomy of the Display
The ribbon is the trend and its health. Its middle band is the pullback zone a healthy trend defends; the trail sits beneath or above it as the structural line.

Reaction levels are horizontal lines labelled with what they are and how often price has reacted there, for example "Support - 2x". A level that has been tested four or more times is drawn dashed and labelled "weak". A level that was broken and now acts in the opposite role is redrawn in amber and labelled, for example, "Flip to Support".

Signal markers name their family and carry the grade of the setup, with a star on the strongest band. The plan of the active trade is drawn as labelled lines: entry, stop, and target 1 to 3.

Outcome marks print where a signal resolved: target hit, stopped, break-even exit, or time stop. By default only the most recent mark stays on the chart to keep it clean; raise "Keep Closed Trades on Chart" to review more of them.

The panel lists trend state and strength, the market regime (a churn read that says when to stand aside), the multi-timeframe rows, the current setup and its grade, the live trade with its next target, position size for your risk input, and a running account of how the drawn plans resolved on the chart's history. Those figures are computed pessimistically: a bar that could have touched both the stop and a target is counted as the stop. They describe what the model did on past data and are shown for study only; they are not a forecast and nothing here promises future results.

Multi-Timeframe Panel
The higher-timeframe rows are selected automatically from the standard ladder based on the chart timeframe, and a manual mode lets you pin two timeframes of your choice instead. Higher-timeframe direction is read with a one-bar offset so the value comes from a closed higher-timeframe bar. Agreement between the rows is one of the factors that survived the grade measurement, so it feeds the score directly rather than only being displayed.

Notes on Repainting
  • Signals do not repaint. Every signal, level and trade event is gated by `barstate.isconfirmed`, so it can only be created on the close of its bar and cannot appear or vanish intrabar.
  • Levels are built from confirmed pivots (`ta.pivothigh` / `ta.pivotlow`), so once a level is committed it stays anchored.
  • Higher-timeframe values use the standard non-repainting pattern: the series is read with a one-bar offset so only closed higher-timeframe bars are used.
  • Trade outcomes are latched. Once a plan is resolved against its anchor, that resolution is recorded and does not revert if price later trades back through the level.
  • Pivot detection carries an inherent delay equal to the pivot-bars setting: a pivot becomes visible only after that many bars close past it. This is a property of all pivot-based tools, not specific to this script.
  • Alerts evaluate on confirmed bars and fire once per closed bar, never intrabar.
  • The panel and the forming leg of the ribbon update live within the bar. This is display only; no signal, level or trade event is created from an unconfirmed bar.


Typical Analysis Workflow
A common analytical workflow may include:
  1. Reading the panel first for trend state and regime, and standing aside when the regime row reports a churning market
  2. Waiting for a signal in the direction of the trend, treating a Level Reaction at a level with few prior tests and higher-timeframe agreement as the strongest configuration the model recognises
  3. Framing the trade with the drawn plan: the entry, the stop behind the structural reason for the signal, and the staged targets
  4. Raising the quality filter to leave only higher-graded setups, and reading the panel's running account to judge how that mix of setups behaves on your instrument and timeframe
  5. Treating a level marked "weak" as structure that has already been worn down, and a role-flipped level as the same structure now defended from the other side


Configuration
Trading Style - Auto by default; resolves from the chart timeframe to Scalping, Day, Swing or Position, and sets the engine lengths, the regime gate and the exit profile together. Pin one manually, or choose Custom to unlock the tuning group.
Signal Quality Filter (min score) - the main selectivity lever. Nothing graded below it reaches the chart.
Premium Signal Threshold - the grade at or above which a setup is marked with a star.
Trend Flip / Ribbon Pullback / Level Reaction Signals - enable or disable each signal family independently.
Flip Confirmation Window (bars) - how long after a trend flip a pullback still counts as belonging to that flip.
Hard HTF Filter - when on, signals against the higher-timeframe direction are blocked outright rather than only graded lower.
HTF Selection - Auto (next timeframes up the standard ladder) or Manual, with the two manual timeframes.
Show Reaction Levels / Level Sensitivity (pivot bars) / Max Active Levels - the level model: whether to draw it, how strict the pivots are (this also sets the confirmation delay), and how many levels stay active.
TP1 / TP2 / TP3 (R multiple) - the staged targets, expressed as multiples of the risk.
Stop Padding (x ATR) / Minimum Risk (x ATR) - how far the stop sits beyond its structural anchor, and the floor under the resulting risk.
Break-Even Mode - Auto by style, or pin it: move the stop to entry after the first target, to entry plus a fraction, or leave it.
Time Stop (bars) - close a setup that has made no progress after this many bars. Auto by style.
Cooldown After Stop (bars) - how long to wait before taking another signal in the same direction after a stop. Opposite signals are never delayed.
Show Trade Levels / Keep Closed Trades on Chart - whether the plan is drawn, and how many finished trades keep their lines and outcome marks.
Account Balance / Risk % / Volume display / Lot Size - the position-size read-out in the panel.
Custom Tuning - ribbon lengths, trail multiplier and trail length; active only when Trading Style is Custom.
Visuals - ribbon, middle line, trend strip, trail, bar coloring, signal marker style, and the panel's position, size and optional rows.

Markets and Timeframes
The indicator can be applied across multiple markets and timeframes:
  • Forex
  • Stocks and Indices
  • Commodities
  • Cryptocurrencies

Because the engines are driven by the Efficiency Ratio and scaled in ATR rather than in fixed price units, behaviour stays consistent across instruments and timeframes with no per-symbol magic numbers. The Trading Style preset handles the timeframe, and the quality filter is the lever to tune per chart.

The chart above is a 4-hour crypto chart. For contrast, the same defaults on a 3-hour gold chart, where a Level Reaction short is taken at a resistance level and the dual-confirmation trend holds the whole leg down without flipping on a pullback:
snapshot

Alerts
  • Buy signal - a confirmed long signal of any enabled family
  • Sell signal - a confirmed short signal of any enabled family
  • Premium signal - a confirmed signal at or above the premium grade
  • Trend flip - the dual-confirmation trend state changed
  • Target hit - a staged target was reached
  • Stop hit - the plan was stopped out
  • Time stop - a stalled setup was closed
  • Level broken - a reaction level was broken

Alert messages carry the symbol and the result of the event. All alerts evaluate on confirmed bars.

Source Code
The source of this script is closed. The engines described above and the measured model behind the grade are the work this product is built on, and publishing them would remove the reason it exists. Everything needed to read the chart and judge the tool is described above: what each engine does, what the levels mean, how the grade is built and what it rejects, how the plan is drawn, and exactly how repainting is handled.

This is an invite-only script. Use the Author's Instructions link below the chart to request access.
Informacje o Wersji
Added
  • Reaction Flow pane: a single-band multi-timeframe flow lane in its own pane. Ice = rising flow, rose = falling; solid = strong agreement across timeframes, muted = weak.
  • "Flow Confirmer" control (Fast / Balanced / Strict / Disabled) — sets how early vs how calm the lane turns.
  • Two alert conditions: "Reaction Flow Turned Rising" and "Reaction Flow Turned Falling" (confirmed bars only).
  • "Flow" row in the dashboard — the lane reading stays visible even with the pane collapsed.
  • Color themes: Royal Gold and Arctic Ice alongside the default Neo Slate, plus a Glow control (Off / Subtle / Balanced / Bright).
  • "Marker Shows Score" option — prints the Reaction Score directly on each signal marker.


Changed
  • Signal markers redesigned: a single pill whose pointer tip sits at the exact entry extreme of the signal candle; light fill with signal-colored text; premium ★ signals render larger.
  • Dashboard restyled: quieter header, setup/score status chips, uniform section typography; color is now reserved for state (trend, position, profit factor).
  • Signal Quality Filter default raised from 60 to 70 (calibrated baseline).
  • Day Trading profile: trend-flip reversal signals are now taken by the engine, mirroring its existing reverse-on-flip exit.
  • Swing and Position profiles: the counter-HTF chop gate (previously Day Trading only) now filters entries when the two higher timeframes disagree in a low-efficiency regime.
  • The indicator now hosts its flow lane in its own pane while all chart elements continue to render on the main chart. After updating, remove the indicator from your chart and add it again once — existing instances keep the old single-pane layout until re-added.


Fixed
  • Higher-timeframe trend votes (dashboard MTF arrows, the score's HTF confluence points, the regime gate) were evaluated with slower lengths than intended in the higher-timeframe context; they now use the correct per-style lengths. Signals can differ slightly from v1.0 after this correction.
  • Pane price scale no longer inherits the symbol's tick precision.


Historical behavior remains non-repainting: signals are produced only after full bar closure.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.