Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multitime frame indicator

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

    Multitime frame indicator

    Hello

    I am developing indicator that uses more than one time frame, let' s say that my main time frame is 5 minutes, and I added second time frame 60 minutes.

    Let's say that current time is 141000, if I want to access HLC for the second time frame I would use Highs[1][0] etc. However, this value will correspond to high value achieved between 130000 and 135900.

    My question is how I can access current HLC for 60 minute bar from 140000 until 141000 (current time), is there a way to use Highs[1][-1]?

    Thank you
    Sergey.

    #2
    Hello Sergey,

    Unfortunately there's no way to access the future value of a secondary series in historical data.

    Use the following Print() statement to get a feel for what is available.

    Print("BIP: " + BarsInProgress + " PrimarySeries: " + Time[0] +" Secondary Series: " + Times[1][0]);
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    169 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    324 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    250 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    353 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    180 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X