I'm trying to dynamically change the equity amount during a backtest based on a date. For example,
startdate = ParamDate( "Start date", "03-15-2021",0);
EquityAmt = IIf( DateTimeToStr(DateTime(), 1) <= startdate, 10000, 20000 );
SetOption( "InitialEquity", EquityAmt );
which is trying to set equity 10K on an before "03-15-2021" and 20K after.
I'm trying to simulate a "cash injection" into the system if that makes sense.
Does anybody know how to do this? Thanks...