Take a look here https://www.mql5.com/en/forum/128554
Alternatively get the EA to take a screen grab just after a trade is placed . . .
APeng:
So, I need a function that pauses the backtest, when a trede is done!
So, I need a function that pauses the backtest, when a trede is done!
// https://forum.mql4.com/35112 */ #include <WinUser32.mqh> #import "user32.dll" int GetAncestor(int, int); #import void PauseTest(){ datetime now = TimeCurrent(); static datetime oncePerTick; if (IsTesting() && IsVisualMode() && IsDllsAllowed() && oncePerTick != now){ oncePerTick = now; for(int i=0; i<200000; i++){ // Delay required for speed=32 (max) int main = GetAncestor(WindowHandle(Symbol(), Period()), 2/*GA_ROOT*/); if (i==0) PostMessageA(main, WM_COMMAND, 0x57a, 0); // 1402. Pause } } }
cool, thank you very much!

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
Hi everybody :)
Is there a way to reduce the speed of visuell backtesting? I want to see what my EA is doing during the backtest for a better analyzing. Sometimes it tackes a long time, till a trade is done, so I increase the speed. But then oftenly the trade is closed and over before I can reduce the speed again. So, I need a function that pauses the backtest, when a trede is done!
Anyone nows if that´s possible?
Thanks in advance!