Hi,
Does anyone have a code sample for controlling position size based on equity amount. (Trading Forex)
I want to buy $100k lot size using $10k Equity with $1000 margin (1%).
At $15k to $20k Equity, I will buy $150ooo lot. At $20k to $25k Equity, I will buy $200ooo lot, etc.
If no-one has a similar code sample, that's ok. I was just looking for a shortcut. Any similar code is appreciated.
Thanks.