I found a solution for the problem in TESTMODE :

The if(!wait(0)) return(0.0); in neural() creates the delay, at least on my machine.

Removing it works, i can press buttons, everything works, but much faster!!!

with if(!wait(0)) return(0.0); // >>> this creates a huge delay !!!

advise-slow-test-0 compiling..............
EURUSD AL1 | Bars 72751 | Bar 15000 | 527.22 ms
EURUSD AL1 | Bars 72751 | Bar 16000 | 21165.36 ms
EURUSD AL1 | Bars 72751 | Bar 17000 | 24793.54 ms
EURUSD AL1 | Bars 72751 | Bar 18000 | 25280.05 ms
EURUSD AL1 | Bars 72751 | Bar 19000 | 24935.06 ms

without if(!wait(0)) return(0.0);

advise-slow-test-1 compiling..............
EURUSD AL1 | Bars 72751 | Bar 15000 | 574.12 ms
EURUSD AL1 | Bars 72751 | Bar 16000 | 167.46 ms
EURUSD AL1 | Bars 72751 | Bar 17000 | 368.84 ms
EURUSD AL1 | Bars 72751 | Bar 18000 | 371.19 ms
EURUSD AL1 | Bars 72751 | Bar 19000 | 358.33 ms
EURUSD AL1 | Bars 72751 | Bar 20000 | 359.30 ms
EURUSD AL1 | Bars 72751 | Bar 21000 | 360.95 ms
EURUSD AL1 | Bars 72751 | Bar 22000 | 351.55 ms

I'll send a copy to the support...

But everyone can test it in its own project, just overwrite the neural() function and test it without the wait()...

Download both, edit assetList and hit TEST...

Attached Files
advise-slow-test-0.c (37 downloads)
advise-slow-test-1.c (30 downloads)
Last edited by laz; 09/05/19 22:49.