Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Time Frame loss of DataSeries data…Jagged Line

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Multi Time Frame loss of DataSeries data…Jagged Line

    Greetings;
    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];
    }
    }
    Attached Files

    #2
    Hello.

    Thanks for the note.

    A jagged plot would be expected because tick and minute data do not line up with each other and there could be multiple tick bars within a minute. Also, if you plot between 1 and 5-minute intervals the plot will be jagged because there is no change for 4 minutes.

    Please let us know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    73 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X