Loading…

Single Print Detector

A single print is a classic market-profile signature: a thin price area a session's own auction barely paused at, surrounded by levels it spent far more time and volume building. These areas are often described as "poor" levels that price has a tendency to return to and fill in later sessions. For each of the last InpLookbackSessions daily instances of a chosen broker-time session window, this counts how many bars touched each price bucket - a touch count, not a volume figure, since a single print is about how few separate visits a level had, not how much volume happened to print while passing through it once. Buckets touched by at most InpMaxTouchesForSinglePrint bars are marked; adjacent single-print buckets are merged into one stretch so a multi-bucket-wide thin area draws as a single box rather than several overlapping ones. Each marked stretch is then checked against every bar since that session ended: if price has genuinely traded back through the stretch's price range, it recolours from InpOpenColor to InpFilledColor rather than staying marked as open forever, and an optional one-time alert can fire the moment a level fills. Notes and limitations - Every touch count is built from bar high/low overlap, not tick-level intrabar path - a bar that merely brushed a bucket at its extreme counts identically to one that spent the whole bar there. This is the same coarse-but-honest limitation every profile-style tool in this catalogue carries, since MT4 supplies OHLC bars, not price-by-price ticks. - Today's still-forming session is included and marked live; its single prints can still be touched again before the session even ends, which is expected and not a bug. - Revisit scanning re-walks bars from each session's end to now on every rebuild, so a very large InpLookbackSessions on a low timeframe increases rebuild cost; rebuilds happen once per new bar, not every tick. - No trade or stop-loss logic - visual analysis only.

Indicator · MT5 · v1.0 · Free

About Single Print Detector

Single Print Detector is an indicator for MetaTrader 5. It can alert you with a pop-up, sound, email or push message. It has 10 settings, such as Session start hour, Session end hour and Lookback sessions. MQL source code included.

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

Settings

SettingDefaultWhat it does
Session start hour13Session start hour (broker time, 0-23)
Session end hour21Session end hour (broker time, 0-23)
Lookback sessions10Past daily session instances scanned (one per calendar day)
Bucket pips3.0Bucket width, in pips, used to build each session's touch profile
Max buckets200Hard cap on bucket count per session (performance guard)
Max touches for single print1Bucket counts as a single print if touched by at most this many bars
Track revisitstrueRecolour a single print once price later trades back through it
Alert on fillfalsePopup alert the first time a tracked single print gets filled
Open colorclrRedColour for an unfilled (still open) single print
Filled colorclrGrayColour for a filled (revisited) single print

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: Volume · Trading Sessions · Alerts · MT5 Indicator · MQL5 Source Code

MetaTrader 4 & 5 indicators · PolyMaria