If I am reading it correctly you always want to trade 1 unit of Nifty throughout the history of backtesting, so that you could collect the total points won/loss ?
(below is the solution, but just let me warn you, winning 50 points at Nifty = 3000 is lot different than at Nifty = 6000. (telling you by personal experience)
(whether Nifty was 2000 or 6000, you want to trade only 1 unit of nifty (and not 1 lot which is 50 units).
If so, then that is very simple
SetPositionSize( 1, spsShares );
//this will always trade 1 unit irrespective of other details (just make sure atleast the initial deposit is greater
to trade this
let me know if I have not understood your requirement, if it is not a big trouble after posting your query, if
you can buzz me by PM, then it will catch my attention so that you don't have to wait too long for the reply.
(below is the solution, but just let me warn you, winning 50 points at Nifty = 3000 is lot different than at Nifty = 6000. (telling you by personal experience)
(whether Nifty was 2000 or 6000, you want to trade only 1 unit of nifty (and not 1 lot which is 50 units).
If so, then that is very simple
SetPositionSize( 1, spsShares );
//this will always trade 1 unit irrespective of other details (just make sure atleast the initial deposit is greater
to trade this
let me know if I have not understood your requirement, if it is not a big trouble after posting your query, if
you can buzz me by PM, then it will catch my attention so that you don't have to wait too long for the reply.