Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 5 Indicator | Giano ATR Regime | Trading Tool Update

RobotFX curates the best open-source MetaTrader code to inspire your trading automation.

What the indicator shows

Image for Giano ATR Regime

Giano ATR Regime shows how recent price ranges compare with their own history. A ratio of 1.00 means that the latest closed bar's ATR equals its baseline. A ratio of 1.62 means that it is 62% above the baseline. The label shows the regime and ratio of the latest closed bar.

Classic MACD strategy made fully automatic – the MACD Expert Advisor for MT4 handles it all. Check it out.

Calculation and interpretation

For each closed bar, the indicator calculates ATR as the simple average of true range over 14 bars. It divides that ATR by the mean of the latest 100 ATR values, including the bar being classified. The indicator uses the chart's symbol and timeframe.

  • FEAR (orange) — Ratio above 1.50. Recent ranges are elevated relative to their baseline.
  • NEUTRAL (gray) — Ratio from 0.70 through 1.50, including both thresholds.
  • COMPLACENCY (blue) — Ratio below 0.70. Recent ranges are subdued relative to their baseline.

The regimes describe the size of price ranges. The indicator provides no directional, entry or exit signals.

Inputs

  • Alert when the closed-bar regime changes ( InpAlertOnChange , off by default) — Alerts when a newly closed bar changes from one measured regime to another.
  • Show the latest closed-bar reading ( InpShowLabel , on by default) — Shows the latest closed bar's regime and ratio in the indicator window.

iCustom buffers

  • Buffer 0 — ATR ratio.
  • Buffer 1 — Color index: 0 orange, 1 gray, 2 blue.
  • Buffer 2 — Regime code: +1 FEAR, 0 NEUTRAL, −1 COMPLACENCY.

The forming bar and readings without a full window of positive ATR values return EMPTY_VALUE in all three buffers. The first reading requires at least 113 closed bars. The period, baseline window and thresholds are fixed.

Complement community code with advanced automation from RobotFX.

80026

Best MetaTrader Indicators + Profitable Expert Advisors