OrderStopLoss()

 

hello traders.

I have a problem to place a stop loss on ordermodify().......i first opened order with ordersend().........

OrderSend(Symbol(),OP_SELL,Lots,Bid,10,0,0,NULL,1,0,Red);..........without stop loss

now i have to find this order by its stop loss value .........if ( OrderStopLoss()<=??????)

what value will return OrderStopLoss() if there is no stop loss placed in first place ???

 

If there is no stop loss OrderStopLoss() returns zero.

 

Thank you !!

 

hello....i made an expert with =switch=...... with =default= at the end !

error 'unexpected token'

what is that ?

Reason: