Within the guide for OnStateChange (https://ninjatrader.com/support/help...tatechange.htm), within Configure it says "This state is where you should... Override and configure values set by the UI".
Within the Strategy Analyzer UI, under Data Series there is the option to specify Type and Value. Is it possible to override the 'Value' setting from the UI, and if so, what code should be used please as I can't find this in the support guides? Can this be done within State.Configure?
FYI, When I select an instrument list to backtest a list that has say 100 instruments within it, I'd prefer to configure/hardcode 'Value' settings per instrument rather than adopting the single one size fits all Value setting from the UI. These would be held constant per instrument, and not change as the strategy runs. E.g. looking for something like:
else if (State == State.Configure) { if (this == ABC) period = 1000; if (this == DEF) period = 2000; if (this == GHI) period = 500; ... and so forth }
ChainsawDR
Comment