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 (howardR, 7th_zorro), 893 guests, and 2 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
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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

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