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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    35 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    13 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X