Loading…

Weekly Review Pack Generator

The Sunday-night routine of listing the week's trades, tallying the result and pulling up a chart at each entry for the review notes is normally done by hand, trade by trade. This script does the same walk automatically: it scans the account's closed history for trades on the chart's symbol opened within the review week, writes them to a summary text file with basic statistics (win rate, gross profit/loss, net result, total lots), and scrolls the actual chart back to each trade's entry bar in turn to save a screenshot alongside it. A trade belongs to the week it was OPENED in, not closed in - a position opened Friday and closed the following Monday is still part of the decision that week, which is what a review is actually judging. The chart is always returned to the most recent bars when the run finishes, so a batch job never leaves the terminal parked on a year-old view. Notes and limitations Only trades on the chart's own symbol are included - run the script again on another chart to review a different symbol. A trade whose entry time falls outside the D1/chart-timeframe history currently loaded is still listed in summary.txt but has no screenshot; the log says which tickets this happened to. This assumes single fills per position (no partial closes stitched together) - it reads MT4's own closed-order records directly, one row per ticket.

Script · MT5 · v1.0 · Free

About Weekly Review Pack Generator

Weekly Review Pack Generator is a script for MetaTrader 5. It can alert you with a pop-up, sound, email or push message. It has 4 settings, such as Week ending date, Context bars and Width. MQL source code included.

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

Settings

SettingDefaultWhat it does
Week ending date0Last day of the review week (1970.01.01 = current week)
Context bars30Bars of context kept to the right of each trade's entry bar
Width1024Screenshot width, pixels (320-4096)
Height600Screenshot height, pixels (320-4096)

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 → Scripts.
  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 script onto a chart to run it once.

Download the PDF guide

Tags: Alerts · MT5 Script · MQL5 Source Code

MQL4 & MQL5 scripts · PolyMaria