Jest tak jak powinno byćLowcaG pisze:no to poprawione (Dalej improwizacja pseudokod), troche malo optymalnie ale mam 3 minutki:
Kod:
int status = 0;
int start(){
int ticket;
double cci = iCustom.....
int total = OrdersTotal();
if(status > 0){
if (cci<=0) status=0;
}else if(status < 0){
if (cci>=0) status=0;
}
if ( (total == 0) && (status==0) && (cci > level_buy) ){
ticket=OrderSend(BUY)..
if(ticket>0) status = 1;
}
if ( (total == 0) && (status==0) && (cci < level_sell) ){
ticket=OrderSend(SELL)..
if(ticket>0) status = -1;
}
}
Mam nadzieje, ze o to chodzilo

I ty to zrobiłeś w 3 minuty ?

Jestem pełen podziwu.