Trading on NT8, I have moments when data is lost in my DataSeries
when used with a MultiTimeFrame indicator.
Without the MTF the line is perfect (please see 2 pics attached).
Even after reading for hours (Forum and Help), I am not sure what
term to apply to this problem.
Suggestions? My code below:
}
else if (State == State.Configure)
{
AddDataSeries(BarsPeriodType.Tick, 100);
AddDataSeries(BarsPeriodType.Minute, 5);
yTurboBase3 = new Series<double>(this);
yTurboBase2 = new Series<double>(this);
yTurboBase1 = new Series<double>(this);
}
protected override void OnBarUpdate()
{
if(BarsInProgress==1) {
if(IsFirstTickOfBar) {
yTurboBase3[0]= (EMA(Closes[1],60)[0]);
yTurboBase2[0]= (EMA(yTurboBase3,20)[0]);
yTurboBase1[0]= (EMA(yTurboBase2,5)[0]);
}
}
if(BarsInProgress==0) {
if(IsFirstTickOfBar) {
TurboLine[0]= yTurboBase1[0];
}
}
Comment