The position ID is set by the broker where you place the order.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am using ctrade for my programming right now but as I want to expand my capabilites / possibilities, I am wondering if it is possible to set the position_id of an order? In the MqlTradeRequest struct there is the MqlTradeRequest.position member - is this there, so that my EA could set the position_id itself? Or is the position_id always set by the server? If the position_id can be set by the EA, are there any limitations?
Thank you!!