Gamestudio Links
Zorro Links
Newest Posts
V2.20 no FXCM Listed
by peterhw. 02/18/20 17:18
Increasing Number Animation
by Ayumi. 02/18/20 15:31
Is Text Box data check possible?
by Emre. 02/18/20 07:20
Behaviour of user-defined bars
by Petra. 02/15/20 13:34
Optimization parameters results
by Petra. 02/15/20 13:22
Bollinger Band - Multi Timeframe
by migo. 02/15/20 06:50
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
14 registered members (Dalla, 3run, AndrewAMD, peterhw, painkiller, Ayumi, alibaba, LabRatNo9, gamers, 2 invisible), 797 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
DebraSteed, Ricard, Apollo1, ziphnor, thomasprv
18377 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: advise calls in TRAINMODE/TESTMODE slow [Re: laz] #478110
09/09/19 09:21
09/09/19 09:21
Joined: Jul 2000
Posts: 27,107
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,107
Frankfurt
wait(0) triggers the Windows message system and is of course very slow. Can take several hundred microseconds on slow systems. Don't call it on any iteration in a fast loop.

Re: advise calls in TRAINMODE/TESTMODE slow [Re: laz] #478439
10/22/19 08:48
10/22/19 08:48
Joined: Jan 2019
Posts: 73
berlin
L
laz Offline OP
Junior Member
laz  Offline OP
Junior Member
L

Joined: Jan 2019
Posts: 73
berlin
"Zorro 2.19.6 new features (beta version)"

"The advise training speed has been improved for large training sets."

IT REALLY HAS grin!

advise-slow-test-0.c with 400 inputs (TRAINMODE)
Quote
AUDUSD AL0 | Bars 72751 | Bar 9000 | 400.41 ms
AUDUSD AL0 | Bars 72751 | Bar 10000 | 406.71 ms
AUDUSD AL0 | Bars 72751 | Bar 11000 | 356.71 ms
AUDUSD AL0 | Bars 72751 | Bar 12000 | 384.86 ms
AUDUSD AL0 | Bars 72751 | Bar 13000 | 404.33 ms
AUDUSD AL0 | Bars 72751 | Bar 14000 | 373.60 ms
AUDUSD AL0 | Bars 72751 | Bar 15000 | 412.75 ms

The delay in TESTMODE (caused by the wait()) should be fixed by the change from

Quote
if(!wait(0)) return 0;
to
Quote
if(!wait(-200)) return 0;
in the new r.h file.

Quote
EURUSD AL1 | Bars 72751 | Bar 15000 | 734.00 ms
EURUSD AL1 | Bars 72751 | Bar 16000 | 569.11 ms
EURUSD AL1 | Bars 72751 | Bar 17000 | 714.08 ms
EURUSD AL1 | Bars 72751 | Bar 18000 | 517.06 ms

At this point I have to say a big compliment to the support! Both issues have been fixed, as you can see now - there are no delays (increasing run-times) anymore.

Thank you, keep it up!

Last edited by laz; 10/22/19 08:58.
Page 2 of 2 1 2

Powered by UBB.threads™ PHP Forum Software 7.7.1