Mio / Publications
Forum
OrderType() return a wrong value
I placed a BUYSTOP and a SELLSTOP; but after selecting the order, OrderType() return 0 or 1 instead of 4 or 6 (no other order type placed) result= OrderSend (symbol,OP_BUYSTOP,lot, NormalizeDouble (Ask+ 2 *boxSize, Digits ),slippage, 0 , 0 , "" ,MAGICMA, 0 ,CLR_NONE); for ( int TradeNumber=(