I want to close a position entirely. It does not matter what its lot size, slippage or whether it is long or short. What parameters should I put in? Would 0 work?
I was hoping the default settings of 0 could just ignore the parameter and close off completely.
Lot sizes are determined in relation to account size (which obviously changes) so I guess I will have to record the lot size at the time the order opened, and then write a separate OrderClose for longs and shorts.
I was hoping the default settings of 0 could just ignore the parameter and close off completely.
Lot sizes are determined in relation to account size (which obviously changes) so I guess I will have to record the lot size at the time the order opened, and then write a separate OrderClose for longs and shorts.
Erm . . . as I said,
Select the Order then you can use OrderLots(), OrderClosePrice() and OrderTicket()

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I want to close a position entirely. It does not matter what its lot size, slippage or whether it is long or short. What parameters should I put in? Would 0 work?