It seems like the NT8 AddDataSeries() method and secondary pricebars handling is significantly better than it was in NT7. First off, thank you! Secondly, I have some questions about these things:
Question #1: Is it true that in NT8, calling AddDataSeries() twice (in the appropriate OnStateChange() "else if (State == State.Configure)" branch) with the exact same values always adds 2 secondary pricebars to the strategy, instead of adding the secondary pricebars once?
For instance, if I create a strategy with 2 input parameters of type "string" called "Symbol1" and "Symbol2", and the user decides that they want both symbols to be "SPY", will 2 secondary pricebars always be added?
AddDataSeries(Symbol1, Data.BarsPeriodType.Day, 1, Data.MarketDataType.Last); AddDataSeries(Symbol2, Data.BarsPeriodType.Day, 1, Data.MarketDataType.Last);
Question #2: I noticed that both input parameters and internal variables declared in the NT8 Strategy Builder get assigned a default value in OnStateChange() "if (State == State.SetDefaults)" branch. Is it safe to use any input param or internal variable as one of the parameters passed to AddDataSeries(), and it is a safe assumption that the default values assigned to the input param or internal variable will be the value that is used?
Question #3: Why does the NT8 Strategy Builder "Add Additional Data" dialogbox disable the "Price based on (last, bid, ask)" combobox when "Use primary instrument" is checked? Does this mean that as a NinjaScript programmer, I shouldn't be calling "AddDataSeries()" using the primary instrument as the symbol but using Bid or Ask data instead of "Last" data?
Thank you very much in advance,
EquityTrader
Comment