Question on WindowScreenShot()

 

Hello All

Anyone knows whether the WindowScreenShot () function is supported under the backtest mode? I cannot locate where the GIF file is saved and I doubt whether the backtester is executing this function, and the funtion doesn't return any error code as well

Thanks

Thomas

 

many functions are disabled under backtest inside an EA.

Try making a screenshot indicator, adding that to the tested chart in visual mode.

 

See article Testing Features and Limits in MetaTrader 4. There is nothing said about the function WindowScreenShot().

 

Just read description of the WindowScreenShot function

Saves current chart screen shot as a GIF file. Returns FALSE if it fails. To get the error code, one has to use the GetLastError() function.
The screen shot is saved in the terminal_dir\experts\files (terminal_dir\tester\files in case of testing) directory or its subdirectories.

Reason: