Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Script | Screenshot in the original chart size

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.

MetaTrader Experts, Indicators, Scripts and Libraries

11090

Best MetaTrader Indicators + Profitable Expert Advisors