Executing order with volume based on balance
Created at 04 Sep 2015, 02:32
Executing order with volume based on balance
04 Sep 2015, 02:32
Hello again,
is there way to make cBot execute an order with let's say 1% of balance as volume?
Thanks in advance.
Spotware
04 Sep 2015, 03:14
Dear Trader,
You just need to retrieve your account balance and then normalize the volume (divided to 100 for percentage) to be able to open a position with a valid volume. The following code snippet illustrates it:
Additionally we recommend you to take a look at our API reference.
@Spotware