How open order in mql5 ?
- www.mql5.com
all !
- www.mql5.com
My program work :
//buy MqlTradeRequest request={0}; request.action=TRADE_ACTION_DEAL; request.magic=1234; request.symbol=_Symbol; request.volume=0.1; request.sl=0; request.tp=0; request.type=ORDER_TYPE_BUY; //request.price=GetRandomPrice(request.type); // open price MqlTradeResult result={0}; OrderSend(request,result);
Just structure price (open price) i d'ont understand, it's not important ?
- www.mql5.com
It depends on the symbol execution type ( ENUM_SYMBOL_TRADE_EXECUTION ) if it's Market or Exchange execution the you don't send the open price, if it's Request or Instant execution then you need to send the open price.
There is a little more info in this thread: https://www.mql5.com/en/forum/11303
what is the change with the price ?
i don't understand ENUM_SYMBOL_TRADE_EXECUTION !?
Not this choice in mql4 !...