This Expert Advisor demonstrates how to create and save graphic charts to a .bmp file from the MT5 Strategy Tester. The Graphic.mqh package (Include/Graphics/) is used. In MT4 this operation can be done very easily as the ResourceSave() function can create the .bmp file directly from the Strategy Tester. In MT5, this method does not work. As a workaround, raw x, y chart data is saved to the Terminal/Common/Files folder. After the Strategy Tester is run, the EA is removed from th chart forcing the Deint function to run in the Terminal mode. The x, y data file is then read, plots are created and a .bmp file is saved using the ResourceSave() function.
#36486LibrariesMetaTrader 5👁 5644 views
Making and Saving Graphic Charts from the MT5 Strategy Tester
R
Author
Richard PosterPublished date
Sep 19, 2021
📚Related Articles
← View other articles →#77531Libraries
CSetupLedger: a per-setup win rate ledger for Expert Advisors
Why I wrote it My scalper trades two setups. A bullish order block and the bearish mirror of it. The Strategy Tester gave me one profit factor for both of them. I spent two weeks t...
Ali AkbarView detail →
#77488Libraries
Position sizing from risk, using the broker's own tick value and volume step
Every lot size calculator that assumes one pip is worth ten dollars is wrong on gold, wrong on indices, wrong on JPY crosses and wrong on any account not denominated in USD which i...
Ralph Ivan SimeonView detail →
#77156Libraries
PropFirm Defense
A prop firm account runs under a second rulebook MetaTrader 5 knows nothing about: a maximum loss measured from a fixed starting balance, a daily limit that resets at an hour the b...
Bruno Nunes Myrrha RibeiroView detail →