Add("MSFT", this.BarsPeriod.Id, this.BarsPeriod.Value, MarketDataType.Bid);
Add("MSFT", this.BarsPeriod.Id, this.BarsPeriod.Value, MarketDataType.Ask);
If I use X on a chart as an indicator, then it works fine. However, when I try to add the indicator in the Initialization() of a strategy, then BarsPeriod.Id (in X) is always "Minute", and BarsPeriod.Value is always "-1".
Is there an easy fix for this without explictly passing the BarsPeriod to the indicator as a parameter?
David

Comment