I understand that GetAccountValue doesn't work on historical data.
How can I write a strategy that uses half of my capital on a instrument? It would be easy if I can write ((GetAccountValue()/2)/Close[0]) but it does not work when I backtest the strategy.
Is there a alternative way that it can be backtested? Thank you.

Comment