Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 945 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Zorro S is not using more than 1 CPU core #476008
01/17/19 13:56
01/17/19 13:56
Joined: Oct 2017
Posts: 52
Brazil
J
jmlocatelli Offline OP
Junior Member
jmlocatelli  Offline OP
Junior Member
J

Joined: Oct 2017
Posts: 52
Brazil
Hi,
I cannot make Zorro S use more than 1 CPU core during TRAIN mode, with or without Walk Forward.
This command has no effect:
if(is(INITRUN)) NumCores = -1;
No matters the number I assign to NumCores, the total CPU usage is around 15%. And I can see just one CPU running with Resouce Monitor.

Are there code restrictions to enable multi-core processing?

I'm using Zorro S 1.96 in an Intel i7 PC.

Thanks in advance.
jm

Re: Zorro S is not using more than 1 CPU core [Re: jmlocatelli] #476009
01/17/19 15:57
01/17/19 15:57
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
Two things to check:

* When you start Zorro, make sure it says that you are running Zorro S.
* Once confirmed, observe your script. Maybe there is something wrong with it?

If you can't figure it out, post your script.

Re: Zorro S is not using more than 1 CPU core [Re: AndrewAMD] #476010
01/17/19 16:19
01/17/19 16:19
Joined: Oct 2017
Posts: 52
Brazil
J
jmlocatelli Offline OP
Junior Member
jmlocatelli  Offline OP
Junior Member
J

Joined: Oct 2017
Posts: 52
Brazil
During Zorro start:

Zorro S 1.96.4
(c) oP group Germany 2018
Zorro S Subscription

So this part seems ok.

I'll check the script.

Thanks for the help.
jm

Re: Zorro S is not using more than 1 CPU core [Re: jmlocatelli] #476011
01/17/19 16:45
01/17/19 16:45
Joined: Oct 2017
Posts: 52
Brazil
J
jmlocatelli Offline OP
Junior Member
jmlocatelli  Offline OP
Junior Member
J

Joined: Oct 2017
Posts: 52
Brazil
Checked the code. It seems ok.
Here it is:

function run()
{
set(PARAMETERS);
set(LOGFILE);
assetList("Assets_ALMA.csv");
if(is(INITRUN)) NumCores = -1;
BarPeriod = 10;
LookBack = 250;
StartDate = 20180701;
EndDate = 20181231;
// NumWFOCycles = -10;

while(loop(Assets))
{
asset(Loop1);
PIP = 0.01;
PIPCost = 0.01;
Spread = RollLong = RollShort = 0;
var PositionValue = 100000;
int pALMAPeriod = optimize(50,5,250);
var pALMASigma = optimize(6,1,20,1);
var pALMAOffset = optimize(0.85,0.01,1.00);
vars indALMA = series(ALMA(series(price()),pALMAPeriod,pALMASigma,pALMAOffset));
Lots = round(PositionValue/price()/100)*100;
if(valley(indALMA))
{
exitShort();
enterLong();
}
if(peak(indALMA))
{
exitLong();
enterShort();
}
}
}

Re: Zorro S is not using more than 1 CPU core [Re: jmlocatelli] #476013
01/17/19 17:30
01/17/19 17:30
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
Originally Posted By: jmlocatelli
//NumWFOCycles = -10;
You can't do multiprocess with anchored, since cycle 3 depends on cycle 2, which depends on cycle 1.

Re: Zorro S is not using more than 1 CPU core [Re: AndrewAMD] #476136
01/29/19 01:42
01/29/19 01:42
Joined: Oct 2017
Posts: 52
Brazil
J
jmlocatelli Offline OP
Junior Member
jmlocatelli  Offline OP
Junior Member
J

Joined: Oct 2017
Posts: 52
Brazil
I didn't find any restriction in Zorro documentation regarding anchored WF and NumCores.
But anyway, it does not use more than 1 core in both WF configuration, anchored or not anchored.

It's a very basic script. Can any one run WF with this script and tell me if it can or can not use multiple cores?

regards, jm

Re: Zorro S is not using more than 1 CPU core [Re: jmlocatelli] #476145
01/29/19 02:46
01/29/19 02:46
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
It cannot because you outcommented WFO.

If something particular does not work, first look into a script where it works - there are several scripts included that use multiple cores. Then check where yours is different. This way you can find the reason of such issues quickly without going at length through the manual.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1