Join our fan page
- Views:
- 116
- Rating:
- Published:
- Updated:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
ATR Monitor compares the current daily, weekly and monthly price ranges with Average True Range (ATR). It shows how large each period's range is relative to its ATR and whether the current price is above or below the period's opening price.
The panel displays three rows: Day, Week and Month. All three timeframes are available on the current chart, regardless of its timeframe.
Reading the table
| Column | Meaning |
|---|---|
| Period | Daily, weekly or monthly candle. |
| ATR | Built-in ATR for that timeframe, expressed in pips. |
| Range | Current period's high minus low, expressed in pips. |
| ATR % | Current range divided by ATR, multiplied by 100. |
| From open | Current price minus the period's opening price, expressed in pips. |
For example, a daily range of 66 pips against a daily ATR of 60 pips gives an ATR % reading of 110%. A weekly range of 144 pips against an ATR of 240 pips gives 60%, and a monthly range of 160 pips against an ATR of 400 pips gives 40%.
ATR % uses the full high–low range. From open is a separate direction measurement: positive values are green and negative values are red. A value rounded to zero is neutral.
Readings at or above MaxATRPercent are highlighted in amber. The default threshold is 100%. Changing this setting affects highlighting only; the displayed percentage is never capped.
Inputs
| Input | Default | Purpose |
|---|---|---|
| ATRPeriod | 14 | ATR lookback applied independently to daily, weekly and monthly data. |
| MaxATRPercent | 100.0 | Percentage at which amber highlighting starts. |
| PanelX | 7 | Horizontal position from the chart's upper-left corner, in pixels. |
| PanelY | 30 | Vertical position from the chart's upper-left corner, in pixels. |
| PanelXSize | 400 | Expanded panel width before scaling. |
| PanelYSize | 146 | Expanded panel height before scaling. |
| PanelScale | 1.0 | Panel and font scale, from 0.5 to 3.0. Position offsets are unchanged. |
| Colors | Dark theme | Background, border, text, direction and threshold colors. |
Click minus to minimize the panel and plus to restore it. Hover the title or column headings for explanations of the values and their units.
Calculation and updates
Prices and ATR use the current forming candle, shift 0, on each timeframe. The indicator attempts to load values when attached and refreshes on incoming ticks. ATR therefore changes as the current candle develops; it is not a fixed reference from the previous completed candle.
Period boundaries follow the broker's candles. Range measures high minus low, while ATR uses true range and includes gaps relative to the previous close. A range above 100% ATR does not by itself imply that price will reverse.
Pip conversion uses ten points per pip for three- and five-digit quotes and one point otherwise. Values display one decimal place. Other instruments may use different pip conventions.
Unavailable data is shown as -- and retried on later ticks. A zero ATR shows N/A for ATR %. Without incoming ticks, there is no automatic retry after history finishes loading. Restoring the panel also refreshes available values. Values are not refreshed while the panel is minimized.
Installation
Place AtrMonitor.mq5 in the terminal data folder under MQL5/Indicators, compile it in MetaEditor, refresh Navigator, and attach the indicator to a chart. No external libraries or DLLs are required.

Monday Dip EA- Index Mean Reversion D1
Monday Dip EA is a quantitative, time-based long-only trading strategy designed primarily for major stock index CFDs (such as US500, UK100) with complete daily history. It operates purely as a time-restricted buy-on-dip system rather than a trend-following indicator.
Marginal Drawdown Contribution Analyzer
A script for accounts that run several Expert Advisors or configurations. It aggregates the net result of each configuration (magic number, or magic number and symbol) per calendar day and measures how much each one contributes to the portfolio drawdown: drawdown added by leave-one-out, share of the worst drawdown, and Euler variance share. It prints verdicts, recommendations, and a heuristic A+ to F score. It runs out of the box on a built-in demonstration portfolio and is written in pure MQL5.
Accelerator Oscillator (AC)
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.
MACD Signals
Indicator edition for new platform.