Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, Quad, VoroneTZ, 1 invisible), 623 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Train algorithms separatery #476014
01/17/19 23:21
01/17/19 23:21
Joined: Apr 2017
Posts: 106
3
3dgamelight Offline OP
Member
3dgamelight  Offline OP
Member
3

Joined: Apr 2017
Posts: 106
How to train algorithms separately and generate factors to all together? For example, train different algorithms on different train cycles:

Code:
if(TrainCycle == 1)
   algorithms = loop("Algo1", "Algo2");
else if(TrainCycle == 2)
   algorithms = loop("Algo3", "Algo4");
else
   algorithms = loop("Algo1", "Algo2", "Algo3", "Algo4");



The code above seems to not work.

Re: Train algorithms separatery [Re: 3dgamelight] #476017
01/18/19 07:20
01/18/19 07:20
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
This indeed doesn't look right, but if you want a different trading behavior per train cycle for some reason, simply code it inside the algo. If you only want to train 4 algos separately, use a loop over all 4.

Re: Train algorithms separatery [Re: jcl] #476020
01/18/19 09:37
01/18/19 09:37
Joined: Apr 2017
Posts: 106
3
3dgamelight Offline OP
Member
3dgamelight  Offline OP
Member
3

Joined: Apr 2017
Posts: 106
It is for speed up when the algorithms use different bar periods.

NumTotalCycles do not works. What should work is replacing it by a define.

Last edited by 3dgamelight; 01/18/19 10:16.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1