For all of the following I only need a lead, not a full code, I am aware that even so I am asking a lot.
- For the indicator I think I may need to change the entire data loading which was using the iBar object, I think it is undocumented and obsolete.
I had two lines like:
this.minBar = this.minBars[this.minBars.GetBar(this.firstSessionBegin)];
this.minBarTime = this.minBarTime.AddMinutes((double)this.barPeriod) ;
and I am not able to figure out how to go about these.
Within a function that deals with minutes data loading, I find the following lines in the namespace Indicator:
- base.Enabled = false; (what did it do in an indicator?)
- base.Historical
- if (base.Disposed)
- if (BarsType.GetInstance(base.Bars.Period.Id).IsIntra day)
How should I go about for the four lines above?
I also have the line:
- this.lastBarTime = base.BarsArray[1][x].Time; I can't understand how to correct the error: double does not contain a definition for Time..
- backgr.R (back is a System.Windows.Media.SolidColorBrush object), which equivalent could I use since now I work with brushes?
- I wander why I can't find the documentation of Period, that I find for the following code line:
new Period(BarsPeriodType.Minute, this.barPeriod, base.Bars.Period.MarketDataType)
- Is there and equivalent of
base.ChartControl.Invalidate(true) ?
- and an equivalent of
MyBarDateTime = NinjaTrader.Cbi.Globals.MinDate; it says Globals does not exist in NinjaTrader.Cbi
- I translate the following line
public System.Windows.Media.SolidColorBrush myColor = Brushes.Empty;
into
Brushes myColor = Brushes.Transparent;
is it generally a good translation??
Thank you for all your support. I hope this will be useful for others. I searched a lot in the forum prior writing.
Gio

Comment