Watch how to download trading robots for free
Find us on Telegram!
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

Giano ATR Regime - indicator for MetaTrader 5

Alessandro Lupi
Alessandro Lupi
AI Specialist and multi-stack developer (Python, Rust, MQL5). I build GIANO, a research platform that learns from today's markets, focused on XAUUSD session strategies for MetaTrader 5. Free tools: Giano Session Range Breakout (indicator) and its open-source EA.
Views:
97
Published:
download.png (17.65 KB)
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

What the indicator shows


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.

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.

TrailGuard - break-even and trailing stop manager for open trades TrailGuard - break-even and trailing stop manager for open trades

Moves the stop loss to break-even and then trails it on trades that are already open. It never opens or closes a trade.

VolumeProfile_POC_Zones VolumeProfile_POC_Zones

Dynamic Volume Profile indicator for MetaTrader 5 displaying horizontal volume distribution, Point of Control (POC), and Value Area (VAH/VAL) zones. Includes a layout switcher to anchor the histogram on either the right or left side of the lookback range.

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.