How do I specify the maximum number of contracts/shares to trade in backtesting?
The problem is I am backtesting over past 5 years of data in nifty and want to know how many points per month it makes in Nifty. So if I set initial equity of 6000 it trades in two contracts when Nifty value was below 3000.
Similarly using any constant in PositionSize does not works because Nifty has fluctuated wildly over 5 years and when it falls below certain value it started trading with two contracts.
Please help.
The problem is I am backtesting over past 5 years of data in nifty and want to know how many points per month it makes in Nifty. So if I set initial equity of 6000 it trades in two contracts when Nifty value was below 3000.
Similarly using any constant in PositionSize does not works because Nifty has fluctuated wildly over 5 years and when it falls below certain value it started trading with two contracts.
Please help.