I want to trade by a percentage of my account balance but the OrderSend command seems to expect Lot Size. What do I need to do to trade with a percentage of my Account Balance?
Thanks, Jim Stow
You need to calculate the unit count (volume) from your balance, then convert the unit count to proper lot size.
For example, if the volume is 1250 units, the lot size is (double)1250 / 100000 = 0.01 lot.
To add comments, please log in or register