You should call FrameAdd in the OnTester. You can find all details in the algotrading book. Especially you should clarify for yourself, which event handlers are fired on which part of the distributed system "MT5 <-> tester agents".

MQL5 Book: Trading automation / Testing and optimization of Expert Advisors / Getting data frames in terminal
- www.mql5.com
Frames sent from testing agents by the FrameAdd function are delivered into the terminal and written in the order of receipt to an mqd file having...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
I coded a multi symbol EA that works properly. By default, the strategy tester optimization results show unified metrics for all symbols combined per pass.
I'm trying to modify it, so that, per pass, it generates the result metrics for each individual symbol per pass. I've been trying it for so long but stuck at the point where the results csv gets created with its metrics header but doesn't get populated with data, and I couldn't figure out what's wrong.
Any help would be much appreciated, and thanks in advance.