Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,175 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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,022
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,022
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