MQL5 Documentation errors, defaults or inconsistencies. - page 5

 

@Rashid Umarov

ChartScreenshot() is not working in the Strategy Tester. It would be nice to add a word about it in the documentation : https://www.mql5.com/en/docs/chart_operations/chartscreenshot

And also to update the list of functions not working in the Tester : https://www.mql5.com/en/docs/runtime/testing#function_limitations

And finally to return an error : currently the function doesn't do anything silently.

ERR_FUNCTION_NOT_ALLOWED

4014

Function is not allowed for call

Documentation on MQL5: ChartScreenShot / Chart Operations
Documentation on MQL5: ChartScreenShot / Chart Operations
  • www.mql5.com
The function provides a screenshot of the chart in its current state in the GIF, PNG or BMP format depending on specified extension. Parameters...
 

Forum on trading, automated trading systems and testing trading strategies

MetaTrader 5 Platform Update Build 5660: Improvements and Fixes

Vladislav Boyko, 2026.03.29 14:40

In the documentation, the parameter is of type int:

In the editor, the parameter is of type unit:

And the parameter name doesn't match.