I do a lot of backtesting on instrument lists such as the S&P500 or Russell 1000.
At the moment I use fixed stop loss values (e.g. 1000$ risk per trade).
Now I want to take the next step and calculate the SL dynamically based on the account size (e.g. take 1% risk per trade based on AccountItem.NetLiquidation).
As far as I understand, Ninja Trader runs the backtest in parallel. Is there a way to run the backtest sequentially in terms of execution date of each trade so that my strategy knows my NetLiquidation value when entering a new trade?
E.g.
Date | NetLiquidation | Risk in $ |
Jan 2000 | 100.000 | 1000 |
... | ||
... | ||
March 2002 | 140.000 | 1400 |
Lukas
Comment