Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

ATR Ranked Support and Resistance Zones - indicator for MetaTrader 5

Talal N Z Aljarusha
Talal N Z Aljarusha
3 (2)
MT5 tools developer focused on Smart Money Concepts, market structure, liquidity mapping, and professional chart visualization.
Views:
89
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
This indicator is an example of building support and resistance as price areas rather than exact horizontal lines.

It starts with confirmed pivot highs and lows. Nearby pivots are then merged using a distance based on ATR, so the same logic can adjust to different symbols and timeframes.

Each area receives a score from three parts:

- how many reactions were grouped inside it
- how far price moved after those reactions
- how recently the area was tested

Only the highest-ranked areas are drawn. Zones below the current price are shown as support and zones above it as resistance.

The code is mainly intended as a starting point for developers who want to experiment with level clustering without using a fixed number of clusters.

One limitation is worth noting: support and resistance are classified from their position relative to the current price. A more advanced version could wait for a confirmed break and retest before changing the role of a zone.


This code is shared for educational purposes. It is intended to demonstrate confirmed pivot detection, ATR-based zone merging and simple level scoring in MQL5. The displayed strength value is an internal ranking score, not a probability of a successful trade or a trading signal.

Spread Calculator Spread Calculator

Spread calculator is created to display the current spread on any currency pair on the chart.

OnChart Candle Countdown Clock OnChart Candle Countdown Clock

On-Chart Candle Countdown Clock is a simple indicator created to display the countdown timing of the last candle on any time frame.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.