Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, howardR, EternallyCurious, 1 invisible), 770 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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