Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/08/26 18:50
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Quad, 1 invisible), 13,007 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Optimize var multiAsset #475585
12/26/18 23:24
12/26/18 23:24
Joined: Apr 2018
Posts: 37
S
sdelatorre Offline OP
Newbie
sdelatorre  Offline OP
Newbie
S

Joined: Apr 2018
Posts: 37

Hello,

I would want optimize var " SESSIONSTART6" for all assets not for Asset selected in scrollbox

Any idea? Can I do ?

When I push TRAIN the code only does a loop for all assets but shows the optimize var for the asset in the scrollbox.



int timezone6 = AEST;
int sessionStart6 = 8;
int sessionEnd6 = 14;


int profit(){
if(TradeIsOpen and (TradeProfit/TradeUnits/PIP < -50)){exitTrade();}
return 0;
}


function run() {
set(PLOTNOW+PARAMETERS);
BarPeriod = 60;

var Arranca=optimize(6,1,11,1);
sessionStart6=Arranca;


string Name;
while(Name = (loop(Assets))){

if(lhour(timezone6) == sessionStart6 ) { enterShort(profit); }
if(lhour(timezone6) == sessionEnd6) { exitShort();
}

}


Thanks in advance

Re: Optimize var multiAsset [Re: sdelatorre] #475588
12/27/18 09:37
12/27/18 09:37
Joined: Jul 2000
Posts: 28,082
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,082
Frankfurt
You must select an asset for trading it, and you must optimize parameters after selecting the asset, not before.

Re: Optimize var multiAsset [Re: jcl] #475605
12/27/18 22:16
12/27/18 22:16
Joined: Apr 2018
Posts: 37
S
sdelatorre Offline OP
Newbie
sdelatorre  Offline OP
Newbie
S

Joined: Apr 2018
Posts: 37

Thanks but I want optimize all assets. Can I do it ?

I have to select one to one ?



and another question ...and I don't know what is the asset that I will trade ? what can I do ? how I could optimize it ?

Re: Optimize var multiAsset [Re: sdelatorre] #475611
12/28/18 09:23
12/28/18 09:23
Joined: Jul 2000
Posts: 28,082
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,082
Frankfurt
Look in workshop 6, there you can see how it's done. The name of the currently selected asset is in the Asset string.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1