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

What are support and resistance?

Support / ResistancePrice action

Support and resistance zones taken from the low and high of the previous 20 candles.

What is Support and Resistance?

Support and resistance zones taken from the low and high of the previous 20 candles.

Support / Resistance — Support / resistance · 20 candles — SIMULATEDDINEXSPACE / Price actionSupport / resistance · 20 candlesXAUUSD · 1H / SIMULATEDRESSUP2,330.32,360.12,449.32,426.3▼ SELLCandle 74: SELL▲ BUYCandle 96: BUY▼ SELLCandle 112: SELLVOL*CANDLE 1CANDLE 29CANDLE 57CANDLE 85CANDLE 112MA · EMA 14 ━━━━ / VOL* · ILLUSTRATIVE CANDLE RANGEEMA 14Illustrative data — not real market data, not a trading signalSupport / Resistance — Support / resistance · 20 candles — SIMULATEDSUPPORT / RESISTANCEXAUUSD · 1H / SIMULATEDRESSUP2,330.32,360.12,449.32,426.3▼ SELLCandle 112: SELLVOL*Support / Resistance — Support / resistance · 20 candles — SIMULATEDSUPPORT / RESISTANCEXAUUSD · 1H / SIMULATEDRESSUP2,330.32,360.12,449.32,426.3▼ SELLCandle 112: SELLVOL*Support / Resistance — Support / resistance · 20 candles — SIMULATEDSUPPORT / RESISTANCEXAUUSD · 1H / SIMULATEDRESSUP2,330.32,360.12,449.32,426.3▼ SELLCandle 112: SELLVOL*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 touches the support/resistance zone of the previous 20 candles, then closes back inside: 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 Support and Resistance signals

How Support / Resistance produces its number, and what each shape on the chart means.

Formula and how it works

The lowest low and highest high of the previous 20 candles form two reference zones. A candle that touches a zone and then closes back inside shows a price reaction.

How to use it in an EA

State how a zone is confirmed, its width and the rule when the zone breaks in the EA brief.

// PARAMETERS

Recommended MT5 parameters for Support and Resistance

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

ParameterDescription
BarsThe previous 20 candles, not counting the current one.
// FAQ

Frequently asked questions about Support and Resistance

Does Support and Resistance 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 Support and Resistance 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 Support and Resistance 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 Support and Resistance.

Turn Support and Resistance 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