Hi All,
I’m starting to do some futures testing and looks for some help on position sizing. Is anyone able to point me to where I can find different position sizing methods for futures?
Specifically looking to be able to base the position size on risk parity i.e. calculate the number of contracts to buy = (0.001 x equity)/(ATR50 * PointValue).
The logic behind this is that multiplying the average true range by the point value of the specific futures contract results in how much profit/loss to expect from a normal days movements. Setting the risk factor to 0.001 meaning I’m willing to get an impact of 0.1% on my portfolio, and therefore need to multiply the risk factor with the portfolio equity to arrive at the daily impact in dollars. Then dividing this by the expected average impact of each contract fives the number of contracts to buy.
My understanding is that the calculation should look like this, however I’m having difficulty with the equity part of the equation.
Riskfactor = Param("Risk Factor",0.2,0.005,1,0.005);
Risk = (Riskfactor*Equity())/(Ref(ATR(50),-1) * PointValue);
PositionSize = Risk * MarginDeposit;
Any help is greatly appreciated.
Thanks,
James