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 sjsj2732, 03-23-2026, 04:31 AM
    0 responses
    42 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    294 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    290 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    135 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    98 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X