Loading…

Signal Survivorship Panel

Backtesting a full strategy is a lot of work just to answer one narrow question: "when this kind of setup fires, does price typically have room to run before the trade would get stopped out?" This panel answers exactly that question and nothing more, using a deliberately simple built-in signal (close crosses above its own N-bar SMA) so the whole tool is self-contained and reproducible without wiring it to an external strategy. For each qualifying signal it defines 1R as the ATR reading at the signal bar, sets a fixed initial stop one R below entry (no trailing, no breakeven move - genuinely fixed), and walks forward bar by bar checking whether price reached +1R, +2R or +3R of favourable excursion before the low touched the stop. It then reports, across the most recent N signals, what fraction reached each level and what fraction were stopped out before ever reaching +1R. This is a "survivorship" read of how far the setup typically runs, not a profit-factor, win-rate or realistic P&L report - it makes no claim about what a real trade using this signal would have made, since no trader holds with a fixed unmoved stop and no take-profit. Notes and limitations - Long-only. There is no mirrored short-side signal in this version. - The stop is fixed at entry - 1R for the life of the walk-forward scan; it is never trailed or moved to breakeven, so the reported "stopped before 1R" figure is pessimistic compared with any real trade management. - On a bar that both touches a new favourable R level and the stop in the same bar, this tool counts the favourable level as reached first (an optimistic same-bar tie-break, since MetaTrader bar data cannot tell you the intrabar order of the two touches). - Recomputes only when a new bar forms (not on every tick), to keep the scan affordable; the panel will not update mid-bar. - Needs enough history for InpSignalMaPeriod + InpAtrPeriod + a few bars before it reports anything meaningful.

Indicator · MT5 · v1.0 · Free

About Signal Survivorship Panel

Signal Survivorship Panel is an indicator for MetaTrader 5 based on Moving Average and ATR. It has 6 settings, such as Signal ma period, Atr period and Max signals. MQL source code included.

Files in the download: SignalSurvivorshipPanel.ex5, SignalSurvivorshipPanel.mq5, SignalSurvivorshipPanel.txt.

Settings

SettingDefaultWhat it does
Signal ma period20SMA period defining the breakout signal
Atr period14ATR period defining 1R
Max signals30How many most-recent signals to analyse
Max hold bars100Cap on bars walked forward per signal
Font size9Panel font size
Text colorclrWhitePanel text colour

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Indicators.
  3. Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
  4. Open the .mq5 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: Breakout · Moving Average · Buy/Sell Arrows · ATR · MT5 Indicator · MQL5 Source Code

MetaTrader 4 & 5 indicators · PolyMaria