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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    41 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X