DINEXSPACEXAUUSD SpecialistEAs available to rentCustom EA: Strategy → Code → BacktestView rentable EA bots
// HIGH_LOW.MQ5

What are highs and lows in forex?

High / LowPrice action

Tracks the highest high and lowest low of the previous 20 candles to spot breakouts.

What is 20-candle High and Low?

Tracks the highest high and lowest low of the previous 20 candles to spot breakouts.

High / Low — High / Low · 20 candles — SIMULATEDDINEXSPACE / Price actionHigh / Low · 20 candlesXAUUSD · 1H / SIMULATEDRESSUP2,330.12,358.82,444.62,422.9▲ BUYCandle 79: BUY▼ SELLCandle 97: SELL▲ BUYCandle 109: BUYVOL*CANDLE 1CANDLE 29CANDLE 57CANDLE 85CANDLE 112MA · EMA 14 ━━━━ / VOL* · ILLUSTRATIVE CANDLE RANGEEMA 14Illustrative data — not real market data, not a trading signalHigh / Low — High / Low · 20 candles — SIMULATEDHIGH / LOWXAUUSD · 1H / SIMULATEDRESSUP2,330.12,358.82,422.9▲ BUYCandle 109: BUYVOL*High / Low — High / Low · 20 candles — SIMULATEDHIGH / LOWXAUUSD · 1H / SIMULATEDRESSUP2,330.12,358.82,422.9▲ BUYCandle 109: BUYVOL*High / Low — High / Low · 20 candles — SIMULATEDHIGH / LOWXAUUSD · 1H / SIMULATEDRESSUP2,330.12,358.82,422.9▲ BUYCandle 109: BUYVOL*EMA 14Illustrative data — not real market data, not a trading signal

Illustrative signals of the rule on simulated data — not a trading recommendation.

Rule: Price closes beyond the high/low of the previous 20 candles: buy/sell. Entry = close of the signal candle; SL = entry ∓ 1.5 × ATR(14); TP1/TP2/TP3 = 1R/2R/3R.

Use this indicator to create a Custom EA brief →
// READING_SIGNALS

How to read 20-candle High and Low signals

How High / Low produces its number, and what each shape on the chart means.

Formula and how it works

At each candle, take the highest and lowest level of the 20 closed candles before it. A close beyond the high or the low is a signal in the direction of the breakout.

How to use it in an EA

Use the high/low zone as an objective reference, combined with a trend filter and risk management.

// PARAMETERS

Recommended MT5 parameters for 20-candle High and Low

Values used in the illustration; confirm them before deploying an EA.

ParameterDescription
BarsNumber of candles checked: 20 in the example; can be changed in the brief.
// FAQ

Frequently asked questions about 20-candle High and Low

Does 20-candle High and Low on this page use real or simulated data?

The chart on this page uses a deterministic simulated candle series; it is not market prices or trading results.

Can 20-candle High and Low be used in an EA?

You can describe the rule and parameters in a Custom EA brief. It needs independent testing with real data and server time.

How are the SL and TP levels on the 20-candle High and Low chart calculated?

Entry is the close of the signal candle. SL is 1.5 times ATR(14) away from entry; TP1, TP2 and TP3 are 1R, 2R and 3R away from entry.

// SAME_GROUP

Other price action indicators

Indicators in the same price action group, often used instead of or alongside 20-candle High and Low.

Turn 20-candle High and Low into an automated EA

An indicator draws signals, but when to enter, where to stop out and how much to risk are still your set of rules. Send those rules and DinexSpace builds them into an EA.

Use this indicator to create a Custom EA brief