Would love some help learning how to program the strategy to:
- before placing the order,
- retrieve the current broker account balance,
- reference the percentage of funds allocated for each position,
- calculate the number of units/shares/lots of this instrument that can be purchased with this percentage,
- use this number in the entry order
so the goal can be achieved.
Anyone know where a sample of this is posted or help in any other way?
Much appreciated.
Comment