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

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.

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
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •