Proper usage of CTrade OrderOpen method
For all orders you need only one price m_request.price except for (https://www.mql5.com/en/docs/constants/tradingconstants/orderproperties#enum_order_type):
| ORDER_TYPE_BUY_STOP_LIMIT | Upon reaching the order price, a pending Buy Limit order is placed at the StopLimit price |
| Upon reaching the order price, a pending Sell Limit order is placed at the StopLimit price |
and in bool CTrade::OrderOpen(..) you can find:
m_request.stoplimit =limit_price;
- www.mql5.com
For all orders you need only one price m_request.price except for (https://www.mql5.com/en/docs/constants/tradingconstants/orderproperties#enum_order_type):
| ORDER_TYPE_BUY_STOP_LIMIT | Upon reaching the order price, a pending Buy Limit order is placed at the StopLimit price |
| Upon reaching the order price, a pending Sell Limit order is placed at the StopLimit price |
and in bool CTrade::OrderOpen(..) you can find:
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Im confused by the parameters of the CTrade OrderOpen method. I'm not sure how to to skip the "limit_price" parameter and send a simple pending order (not the buy_stop_limit kind for example)
this is the way I'm sending a buy stop order and Im not sure If I'm doing it the right way. please do not offer alternative approaches since I know them. and yes I've already RTFM
as you can see I used NULL for the limit_price. could someone please clarify me on it's purpose and how to omit the input?