So,
i find solution in the manual:
int newCycle(){
int i;
var myGrid=10*PIP;
var PriceUP=price()+myGrid*2;
var PriceDN=price()-myGrid*2;
for(i = 0; i < 10; i ++)
{
PriceUP+=myGrid;
PriceDN-=myGrid;
if (i<2){
enterShort(1,-PriceUP); // here must is change from PriceUP to -PriceUp
enterLong(1,-PriceDN); // dtto
continue;
}
enterLong(1,PriceUP);
enterShort(1,PriceDN);
}
}
Last edited by Grat; 08/07/16 23:11.