Custom symbol orders

 

How are they set?

This only sets the last order type. I would like to assign all orders to my custom symbol.


CustomSymbolSetInteger("EURUSD",SYMBOL_ORDER_MODE,SYMBOL_ORDER_LIMIT);
            CustomSymbolSetInteger("EURUSD",SYMBOL_ORDER_MODE,SYMBOL_ORDER_MARKET);
            CustomSymbolSetInteger("EURUSD",SYMBOL_ORDER_MODE,SYMBOL_ORDER_STOP);
            CustomSymbolSetInteger("EURUSD",SYMBOL_ORDER_MODE,SYMBOL_ORDER_STOP_LIMIT);
            CustomSymbolSetInteger("EURUSD",SYMBOL_ORDER_MODE,SYMBOL_ORDER_SL);
            CustomSymbolSetInteger("EURUSD",SYMBOL_ORDER_MODE,SYMBOL_ORDER_TP);
            CustomSymbolSetInteger("EURUSD",SYMBOL_ORDER_MODE,SYMBOL_ORDER_CLOSEBY);
        
 
You bit-or the values you want to set.


CustomSymbolSetInteger("EURUSD",SYMBOL_ORDER_MODE, SYMBOL_ORDER_MARKET | SYMBOL_ORDER_STOP | ....);