Loading…

Stop Health Monitor

A stop loss is not just a price - its real meaning is a distance, measured against how much the market actually moves. A stop placed 2x the ATR away on the day a trade opened can quietly become a 0.4x-ATR stop a week later purely from volatility expanding, with the trader never having touched the stop price at all. At that distance the stop sits inside ordinary single-bar noise and is likely to be taken out by a normal swing rather than a real move against the position - a failure mode that is easy to miss because nothing about the order itself changed. This panel grades every open position's stop on two figures at once: its distance from the current price measured in ATR units right now, and the same distance measured against the ATR that existed at the moment the trade was opened. Comparing the two shows whether a stop's safety margin has eroded from volatility expansion even though the trader has not moved it, which a single "distance in pips" or "distance in ATR right now" figure alone cannot show. Every position is graded SAFE, TIGHT, or NOISE based on its current ATR-relative distance against two configurable thresholds, colour-coded for a fast scan across a book with several open positions on different symbols. Nothing here is hardcoded to one instrument: stop distance is measured in price units and divided by ATR (also price units), a ratio that works identically on a 3-digit JPY pair, a 5-digit majors pair, gold, or an index CFD. Notes and limitations - Market orders only (OP_BUY/OP_SELL). Pending orders have no live stop distance to grade until they fill. - An order with no stop loss set is shown plainly as NO STOP rather than silently omitted - a missing stop is itself the most serious case this panel can flag. - The entry-time ATR is recovered by locating the historical bar nearest the order's own open time and reading ATR there, so the panel needs no persistent state file and recovers correctly after a terminal restart. On a symbol with very short local history this lookup can fall back to the oldest available bar rather than the true entry bar. - Volatility is measured per order's own symbol on InpAtrTimeframe, independent of whatever timeframe the chart the indicator is attached to is showing. - This is a read-only monitor. It never modifies a stop loss itself - moving a flagged stop is left entirely to the trader.

Indicator · MT4 · v1.0 · Free

About Stop Health Monitor

Stop Health Monitor is an indicator for MetaTrader 4 based on ATR. It has 14 settings, such as Atr timeframe, Atr period and Noise band atr. MQL source code included.

Files in the download: StopHealthMonitor.mq4, StopHealthMonitor.txt.

Settings

SettingDefaultWhat it does
Atr timeframePERIOD_H1Timeframe used to measure volatility
Atr period14ATR period
Noise band atr0.5Stop distance below this many ATRs is graded NOISE
Tight atr1.5Stop distance below this many ATRs (and above the noise band) is graded TIGHT
Magic filter-1Only show orders with this magic number, -1 = show all
Refresh secs2Panel refresh interval, in seconds
CornerCORNER_LEFT_UPPERPanel corner
X offset10Horizontal offset from the corner, in pixels
Y offset20Vertical offset from the corner, in pixels
Font size9Panel font size
Safe colorclrLimeGreenRow colour for a healthy stop
Tight colorclrOrangeRow colour for a tight stop
Noise colorclrTomatoRow colour for a stop inside the noise band
No stop colorclrSilverRow colour for an order with no stop loss set

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the indicator from the Navigator onto a chart and adjust the settings.

Download the PDF guide

Tags: ATR · MT4 Indicator · MQL4 Source Code

MetaTrader 4 & 5 indicators · PolyMaria