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