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 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
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X