Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2014.01.14 06:54

Screenshot in the original chart size - script for MetaTrader 4

| English Español Português 日本語 Deutsch

votes: 9
Screenshot.mq4 (10.13 KB)view

If you would like to take a screenshot of a script/EA/indicator you have to specify the chart size, because the MT4 can't detect it.

This script:

  • calls the user32.dll to determine the chart's size
  • places labels in the top left and bottom left corners, that show the instrument's name and the timeframe
  • calls the kernel32.dll that's why the script is able to save the image to a user defined folder outside the MQL4 folder with a file name which containings: the user defined prefix, instrument's name, timeframe, and a timestamp when the screenshot was taken (e.g. Screen_USDCHF_M15_17-13-20.gif)

Some settings can be changed with external variables.

If you uncomment the "//#property show_inputs" line, you can change settings every time you run the script.

Sample Screenshot

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.