Scalping Reaction Zones + Valid Order Blocks

Spécifications

Platform: TradingView

Programming Language: Pine Script v6

Type: Custom Indicator

Project Name:
Scalping Reaction Zones + Valid Order Blocks


MAIN GOAL

I need a custom TradingView indicator for scalping.

The indicator must detect:

1. Reaction / Explosion Zones
2. Valid Order Blocks
3. Combined Reaction Zone + Order Block zones

The indicator should NOT generate:
Buy signals
Sell signals
TP
SL
Entry signals
Trading recommendations

The main purpose is to detect strong price zones where price moved aggressively from and where price may react again when it returns.


TIMEFRAME LOGIC

Each timeframe must work independently.

M1 chart = use M1 candles only
M5 chart = use M5 candles only
M15 chart = use M15 candles only
M30 chart = use M30 candles only
H1 chart = use H1 candles only
H4 chart = use H4 candles only

If I change the timeframe, the indicator must recalculate all zones using the current chart timeframe only.

Do not mix zones from different timeframes.

Default mode:
Current Chart Timeframe Only


REACTION / EXPLOSION ZONES

The indicator must detect a small BASE candle or opposite candle before a strong price expansion.

Bullish example:

Small bearish candle or small base candle
Then strong bullish displacement
The original candle becomes a DEMAND / REACTION ZONE

Bearish example:

Small bullish candle or small base candle
Then strong bearish displacement
The original candle becomes a SUPPLY / REACTION ZONE

Default zone boundaries:
Full candle High to Low

Optional:
Body + Extreme Wick


BASE CANDLE RULES

The BASE candle should preferably be:

Small relative to ATR
Small body relative to full candle range
Opposite candle before displacement
Or a small neutral base candle

Required settings:

ATR Length
Maximum Base Range x ATR
Maximum Base Body / Range
Accepted Base Candle Type

Accepted Base Candle Type options:

Opposite Candle Only
Opposite or Small Candle
Any Small Candle


DISPLACEMENT CONFIRMATION

Do not create a zone after a small move.

There must be a strong displacement.

Measure using:

Distance from base in ATR
Strongest impulse candle body
Directional candle ratio
Total departure distance

Required settings:

Bars After Base To Confirm
Minimum Departure x ATR
Minimum Impulse Body x ATR
Minimum Directional Candle Ratio


VALID ORDER BLOCK LOGIC

Do not mark every last opposite candle as an Order Block.

A valid Order Block must have:

Liquidity Event
Order Block Candle
Strong Displacement
Break of Structure
Fair Value Gap

Core model:

Liquidity Sweep -> OB Candle -> Displacement -> BOS -> FVG


BULLISH ORDER BLOCK

Bullish OB logic:

Price sweeps liquidity below a previous low or swing low
Then there is a bearish or base candle
Then strong bullish displacement
Then bullish BOS
Then bullish FVG

Only after these conditions should the candle become:

VALID BULLISH ORDER BLOCK


BEARISH ORDER BLOCK

Bearish OB logic:

Price sweeps liquidity above a previous high or swing high
Then there is a bullish or base candle
Then strong bearish displacement
Then bearish BOS
Then bearish FVG

Only after these conditions should the candle become:

VALID BEARISH ORDER BLOCK


LIQUIDITY SWEEP

Bullish setup:

Price sweeps below a previous Swing Low
Then reverses upward

Bearish setup:

Price sweeps above a previous Swing High
Then reverses downward

Required settings:

Liquidity Lookback
Liquidity Swing Length
Minimum Sweep Distance
Require Close Back Inside ON/OFF


BREAK OF STRUCTURE

Use meaningful market structure.

Do not count every small candle break.

Use Swing High and Swing Low.

Bullish BOS:

Close above previous valid Swing High

Bearish BOS:

Close below previous valid Swing Low

Required settings:

Structure Swing Length
BOS Confirmation

Options:

Close
Wick

Default:

Close


FAIR VALUE GAP

Use standard 3-candle FVG logic.

Bullish FVG:

Low of Candle 3 > High of Candle 1

Bearish FVG:

High of Candle 3 < Low of Candle 1

The FVG does not need to be inside the Order Block.

It must be created by the same displacement from the Order Block.

Required settings:

Minimum FVG Size
FVG Size Mode

Options:

ATR
Points


REACTION ZONE + ORDER BLOCK MERGING

This is very important.

If the same candle qualifies as both:

Reaction Zone
and
Valid Order Block

OR

If both zones overlap

OR

If both zones are very close

Then do NOT draw two zones.

Merge them into ONE zone.

Label:

OB + REACTION

Required setting:

Merge Distance x ATR

Suggested default:

0.10 to 0.20 ATR


COMBINED ZONE BOUNDARIES

Add setting:

Combined Zone Boundary Mode

Options:

Order Block Boundaries
Reaction Zone Boundaries
Union of Both

Recommended default:

Order Block Boundaries


ZONE INVALIDATION

The zone must NOT disappear after the first retest.

The zone should remain visible after multiple retests.

Default:

Keep Zone After Retests = TRUE

Demand zone invalidation:

Close below zone bottom minus buffer

Supply zone invalidation:

Close above zone top plus buffer

Required settings:

Zone Invalidation

Options:

Close
Wick

Default:

Close

Also:

Invalidation Buffer x ATR

Recommended:

0.05 to 0.10 ATR


RETESTS

Count retests but do not remove the zone because of a retest.

Possible display:

FRESH
R1
R2
R3

Retest display should be optional.


ZONE STRENGTH SCORE

Each zone should receive an internal score from 0 to 100.

This is NOT a guaranteed probability.

It is only a ranking score.

Score should consider:

Strength of displacement
Total departure in ATR
Strong impulse candle
Base candle quality
Base candle size
Liquidity Sweep
BOS quality
FVG presence
FVG size
Freshness
Number of retests
Distance price traveled away
Reaction only
Valid Order Block
OB + REACTION confluence

Suggested ranking:

OB + REACTION
higher than
Validated OB
higher than
Strong Reaction Zone


SCALPING MODE

The indicator is mainly for:

M1
M3
M5
M15

It must be sensitive enough to show useful scalping zones.

Do not make the conditions too strict.

Do not mark every minor candle either.

Optional presets:

Aggressive Scalping
Balanced Scalping
Strict


NUMBER OF ZONES

Do not limit the indicator to only one Demand zone and one Supply zone.

I want all valid important zones.

But do not fill the chart with low-quality zones.

Required settings:

Max Demand Zones
Max Supply Zones

Recommended default:

5 Demand
5 Supply

Allow up to:

10 to 15

If maximum zones are reached:

Remove the weakest zone
Do NOT simply remove the oldest zone


NEARBY ZONE FILTER

If two zones are very close:

Merge them
or
Keep only the stronger one

Do not draw duplicate or almost identical zones.

Required setting:

Merge Nearby Zones x ATR


DISPLAY

Demand Zone:

Green

Supply Zone:

Red

Valid Order Block:

Different shade or label OB

Combined Zone:

OB + REACTION

Possible label:

OB + REACTION 91 M5

Display options:

Show Labels
Show Score
Show Retest Count
Show Source Timeframe

Do NOT display:

Buy Signal
Sell Signal
TP
SL
Entry
Dashboard
Liquidity labels everywhere
BOS labels everywhere
FVG boxes everywhere

Liquidity, BOS and FVG can be used internally only for validation.


REQUIRED INPUTS

ATR Length
Bars After Base To Confirm
Minimum Departure x ATR
Minimum Impulse Body x ATR
Minimum Directional Candle Ratio
Maximum Base Range x ATR
Maximum Base Body / Range
Accepted Base Candle Type
Minimum Zone Strength
Liquidity Lookback
Liquidity Swing Length
Minimum Liquidity Sweep
Structure Swing Length
BOS Close/Wick
Require BOS
Require Liquidity Sweep
Require FVG
Minimum FVG Size
FVG Size Mode ATR/Points
Zone Boundaries
Merge Nearby Zones x ATR
OB + Reaction Merge Distance
Combined Zone Boundary Mode
Max Demand Zones
Max Supply Zones
Zone Invalidation Close/Wick
Invalidation Buffer x ATR
Keep Zone After Retests
Show Labels
Show Strength Score
Show Retest Count
Show Source Timeframe


FINAL LOGIC

Reaction Zone:

Small or Opposite BASE Candle
-> Strong Displacement
-> Reaction Zone

Bullish Valid Order Block:

Sell-Side Liquidity Sweep
-> Bearish/Base OB Candle
-> Bullish Displacement
-> Bullish BOS
-> Bullish FVG
-> Valid Bullish OB

Bearish Valid Order Block:

Buy-Side Liquidity Sweep
-> Bullish/Base OB Candle
-> Bearish Displacement
-> Bearish BOS
-> Bearish FVG
-> Valid Bearish OB

Highest Confluence:

Reaction Zone overlaps Valid Order Block
-> Merge into ONE zone
-> OB + REACTION


MOST IMPORTANT REQUIREMENT

Each timeframe must calculate zones independently.

M1 = M1 zones only
M5 = M5 zones only
M15 = M15 zones only
M30 = M30 zones only
H1 = H1 zones only
H4 = H4 zones only

Changing the chart timeframe must recalculate everything using the new current timeframe.

No zones from other timeframes should appear unless Multi-Timeframe mode is manually enabled in the future.

Répondu

1
Développeur 1
Évaluation
(618)
Projets
721
33%
Arbitrage
46
48% / 41%
En retard
14
2%
Chargé
2
Développeur 2
Évaluation
(9)
Projets
10
10%
Arbitrage
0
En retard
0
Gratuit
3
Développeur 3
Évaluation
(15)
Projets
22
45%
Arbitrage
6
33% / 33%
En retard
2
9%
Chargé
Publié : 7 articles, 35 codes
4
Développeur 4
Évaluation
(13)
Projets
22
41%
Arbitrage
8
0% / 50%
En retard
3
14%
Gratuit
5
Développeur 5
Évaluation
(3)
Projets
9
67%
Arbitrage
1
0% / 0%
En retard
0
Travail
6
Développeur 6
Évaluation
(52)
Projets
64
39%
Arbitrage
15
27% / 60%
En retard
1
2%
Travail
7
Développeur 7
Évaluation
(8)
Projets
10
30%
Arbitrage
1
0% / 0%
En retard
2
20%
Chargé
Publié : 1 code
8
Développeur 8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Développeur 9
Évaluation
(2)
Projets
2
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
10
Développeur 10
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
1
100%
Gratuit
11
Développeur 11
Évaluation
(3)
Projets
7
29%
Arbitrage
0
En retard
4
57%
Gratuit
12
Développeur 12
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
13
Développeur 13
Évaluation
(64)
Projets
144
46%
Arbitrage
20
40% / 20%
En retard
32
22%
Travail
14
Développeur 14
Évaluation
(6)
Projets
8
38%
Arbitrage
1
100% / 0%
En retard
2
25%
Gratuit
15
Développeur 15
Évaluation
(176)
Projets
188
46%
Arbitrage
3
33% / 33%
En retard
1
1%
Chargé
16
Développeur 16
Évaluation
(2675)
Projets
3414
68%
Arbitrage
77
48% / 14%
En retard
342
10%
Gratuit
Publié : 1 code
17
Développeur 17
Évaluation
(25)
Projets
31
13%
Arbitrage
13
0% / 77%
En retard
9
29%
Gratuit
18
Développeur 18
Évaluation
(6)
Projets
10
10%
Arbitrage
9
0% / 89%
En retard
1
10%
Gratuit
19
Développeur 19
Évaluation
(47)
Projets
61
54%
Arbitrage
7
86% / 0%
En retard
2
3%
Travail
20
Développeur 20
Évaluation
(7)
Projets
10
30%
Arbitrage
0
En retard
1
10%
Chargé
21
Développeur 21
Évaluation
(453)
Projets
566
26%
Arbitrage
24
42% / 38%
En retard
85
15%
Gratuit
Publié : 6 codes
22
Développeur 22
Évaluation
(209)
Projets
272
21%
Arbitrage
24
54% / 17%
En retard
0
Gratuit
23
Développeur 23
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
Mr quetta 100+ USD
Yes, that is exactly what I need. The bot should not be restricted to a fixed list of currency pairs. It should technically scan all available Quotex pairs in real time and automatically select the pair where the market conditions are strongest. The bot should analyze each pair using multiple confirmations, such as short-term price momentum, trend direction, market structure, support/resistance, candle formation
Hello, I trade on HFM MT5. Need SCALPING EA for scalping, budget $30. SYMBOLS: XAUUSD (GOLD), US30, NAS100, GER40, EURUSD TIMEFRAME: M1 and M5 PLATFORM: MT5, must work on HFM VPS STRATEGY: - EMA 9 crosses EMA 21 - RSI 14: BUY only if RSI >45, SELL only if RSI <55 - Bollinger Bands: Only trade when price returns inside BB after breakout - 1 trade at a time per symbol - SL: 150 points Gold / 100 points indices (must be
Project Description I am looking for an experienced MQL5/MT5 Expert Advisor developer to develop an automated trading EA for XAUUSD on the M3 timeframe , running on an Exness account . The EA will automate a manual strategy based on SNR/GAP zones , using two setup types: Price Rejection Price Correction The EA should identify valid BUY/SELL setups around predefined SNR/GAP areas, apply configurable RSI, SMA, EMA and
I need an MT5 Expert Advisor for XAUUSD (Gold) running on an Exness account. STRATEGY LOGIC The exact entry and exit rules will be provided in writing before development starts. Please quote for a single rule-based strategy with clearly separated logic, so the rules can be adjusted later without rewriting the whole EA. RISK MANAGEMENT (this is the priority of the project) - Risk per trade as a percentage of account
Modification of Trade_Panel_7 7.05 Objective . I have this utility “Trade_Panel_7 7.05” with which I open and close positions. Please refer to attached “Trade Panel Modification.jpg”. It shows an input parameter “Volume Step”. This parameter has the initial value of 0.02 as shown. This feature needs to be amended. Present Status . Value of lot size is increased by this “Volume Step”. I have built a whole series of
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
please share: Strategy description — entry/exit rules, indicators used, timeframe(s), and instrument(s) (a written explanation, screenshots, or an existing indicator/EA to reference all work) Risk management rules — position sizing method (fixed lot / % risk), stop loss / take profit logic, max drawdown or daily loss limits, and whether martingale/grid/hedging is involved Broker & account details — broker name
I need a unique grid trading system for XAUUSD that combines entry, controlled two-sided grid expansion, DCA (Dollar Cost Averaging) basket profit control, hedging. Unlike traditional grid EAs that only trade against price, this unique grid system should dynamically build positions in both directions based on market movement, allowing flexible adaptation to changing conditions ie the grid needs to dynamically move
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
Mashiri 50 - 10000 USD
I need a custom MetaTrader 5 indicator designed specifically for XAUUSD gold trading. The indicator should identify potential buy and sell opportunities, display clear entry and exit signals on the chart, provide alerts, and help identify market trends and possible reversals

Informations sur le projet

Budget
30 - 150 USD
Délais
de 3 à 7 jour(s)

Client

Commandes passées2
Nombre d'arbitrages0