I follow the steps from this thread: https://ninjatrader.com/support/foru...ghlight=update
And I added a secundary data series, as you can see in the next line:
AddDataSeries(Instrument.FullName, new BarsPeriod() { BarsPeriodType = BarsPeriodType, Value = Valor }, DaysToLoad, TradingHour, true);
[NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name = "Type", GroupName = "Another TimeFrame", Order = 1)] public BarsPeriodType BarsPeriodType { get; set; } [NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name = "Value", GroupName = "Another TimeFrame", Order = 2)] public int Valor { get; set; } [NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name = "Trading Hours", Order = 3, GroupName = "Another TimeFrame")] [TypeConverter(typeof(TradingHoursDataConverter))] public string TradingHour { get; set; } [NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name = "Days to Load", GroupName = "Another TimeFrame", Order = 4)] public int BarsToLoad { get; set; }
OnBarUpdate method is configured to work in BarInProgress==1
But the results differ between the overlapped indicator and the indicator on the chart.
Note: When the indicator is in 60 minutes chart, OnBarUpdate method is configured to work in BarInProgress==0
Why these results are different? And How can i solve these issues?
Richard Martínez M.
Comment