Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, AndrewAMD), 924 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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