I'd like to vary the number of contracts per trade in my backtester? Is it possible to do it in this way?
for (i=1; i<BarCount; i++)
{
if (Buy[i] == 1)
{
NumContracts[i] = xxxxxx;
}
}
My reason for doing this is that:
1. I use 5% of my equity for each trade
2. NumContracts = (5% of equity) / distance from entry to initial
stop loss
If not via NumContracts, is it possible with PositionSize?
Thanks,
Alex
