Screenshot
This EA captures a screenshot of the current chart when the 's' key is pressed, saving it as a PNG file in the MQL5/Files directory. The screenshot filename includes a user-defined prefix and the current date. It also disables chart autoscroll and sets the chart to candlestick mode on initialization.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
Not backtested yet — this EA could not be converted automatically.
Strategy analysis
This EA is not a trading strategy but a utility tool that captures a screenshot of the current chart when the user presses the 's' key. The entry condition is a CHARTEVENT_KEYDOWN event where the key parameter matches the ASCII code 83 (the 's' key). Exit conditions are not applicable since the EA does not execute any trades. Position sizing and money management are not applicable as the EA does not handle any orders or positions. On initialization, the EA disables chart autoscroll, turns off the right-edge shift, and sets the chart to candlestick mode to ensure consistent screenshot output. The screenshot resolution is fixed at 1920x1080 pixels with center alignment, and the output file is saved in the terminal's MQL5/Files directory with a date-stamped filename.
Strengths
- Simple and clear functionality — pressing 's' quickly captures a chart screenshot with convenient operation
- Screenshot filenames automatically include date information for easy archiving and management
- Initialization standardizes chart display settings to ensure consistent screenshot output
- Clean and concise code at only 55 lines, easy to understand and modify
Weaknesses
- Screenshot resolution is hardcoded to 1920x1080 with no parameter to adjust it, lacking flexibility
- Only the 's' key triggers the screenshot with no way to customize the hotkey
- Lacks error handling — no user feedback when ChartScreenShot fails
- The date format in the filename may contain colons causing compatibility issues on some systems
Possible improvements
- Make screenshot width and height configurable input parameters for greater flexibility
- Add alignment option (ALIGN_LEFT/ALIGN_RIGHT/ALIGN_CENTER) as a configurable parameter
- Add error notification when ChartScreenShot fails to improve user experience
Risk assessment
Overall risk: Safe
- This EA does not perform any trading operations, posing no trading risk
- Screenshot files are saved locally, with no network or security risks
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
screenshot_name | Unnamed | Screenshot filename prefix |
Similar Utility EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.