Setup Screenshot Cataloguer
Building a visual library of past setups - "show me every trade I took on this symbol" - normally means scrolling the chart back to each entry by hand and saving a screenshot one at a time. This script automates exactly that walk: for every closed trade on the chart's symbol within the requested date range, it moves the chart to that trade's entry bar with ChartNavigate, saves a screenshot with WindowScreenShot, and records the ticket, trade details and image filename in a CSV catalogue alongside the images. Positioning is done against the live chart on screen rather than through WindowScreenShot's own start_bar argument, so what the trader sees scroll past while the script runs matches what actually gets saved. The chart is always returned to the most recent bars when the run finishes or is interrupted, so a batch job never leaves the terminal parked on old bars. Notes and limitations Only trades on the chart's own symbol are catalogued - run again on another chart's symbol for a separate catalogue. A trade whose entry time falls outside the currently loaded chart history is skipped and logged rather than guessed at; scroll the chart back further to load more history first if trades are missing from the catalogue. Screenshot capture is confirmed by polling for the file on disk rather than trusting WindowScreenShot's return value alone, since that call only queues the capture.
Script · MT4 · v1.0 · Free
About Setup Screenshot Cataloguer
Setup Screenshot Cataloguer is a script for MetaTrader 4. It can alert you with a pop-up, sound, email or push message. It has 6 settings, such as From date, To date and Max trades. MQL source code included.
Files in the download: SetupScreenshotCataloguer.mq4, SetupScreenshotCataloguer.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| From date | 0 | From open time (1970.01.01 = no lower bound) |
| To date | 0 | To open time (1970.01.01 = up to now) |
| Max trades | 50 | Stop after this many trades (0 = no limit) |
| Context bars | 30 | Bars of context kept to the right of the entry bar |
| Width | 1024 | Screenshot width, pixels (320-4096) |
| Height | 600 | Screenshot height, pixels (320-4096) |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the script onto a chart to run it once.
Tags: Alerts · MT4 Script · MQL4 Source Code