Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Making and Saving Graphical Charts from the MT5 Strategy Tester - MetaTrader 5 Library - MetaTrader 5 Resources

author EAcpu | 3 reads | 0 comments |

Making and Saving Graphic Charts from the MT5 Strategy Tester - library for MetaTrader 5

This Expert Advisor demonstrates how to create a graphical chart and save it to a .bmp file From the MT5 Strategy Tester.  Use the Graphic.mqh package (Include/Graphics/). In MT4 this can be easily done via ResourceSave() Functions can create .bmp files directly Strategy tester. In MT5, this method does not work. As a workaround, the raw x,y chart data will be saved to the Terminal/Common/Files folder. After the strategy tester is run, the EA forcibly removes the Deint function from the chart and runs it in terminal mode. Then read the x,y data files, create the plot and save the .bmp file using the ResourceSave() function.

Making and Saving Graphic Charts from the MT5 Strategy Tester - library for MetaTrader 5


Attachment download

📎 graphicdemo2.mq5 (9.35 KB)

📎 graphic.mqh (168.75 KB)

📎 curve.mqh (22.27 KB)

📎 colorgenerator.mqh (3.05 KB)

📎 axis.mqh (12.29 KB)

Source: MQL5 #36486

Verification code Refresh