Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Combining Indicators on different Time frames

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

    Combining Indicators on different Time frames

    Good day to everybody,

    I have a question related to the multi time frame setup.
    Let's assume I have an indicator which uses daily bars only and I like to use this in an other indicator that will work with 15min series.

    How does the OnBarUpdate work within the 15min indicator? Should I use Closes[0][0] to access the latest close of the 15Min series or can I use Close[0] to get the correct close value?

    thx for any helpful answer.
    Cheers
    Markus

    #2
    Hello Markus,

    Thanks for your post.

    Just to keep things clear, Indicator1 = daily bar indicator, Indicator 2 = 15 m bar indicator.

    If you modify Indicator 2 by calling Indicator 1, you would have to add a daily bar series to indicator 2 as otherwise you would get an error concerning "A hosted indicator tried to load additional data....".

    In indicator 2 then you can either uses Closes[0][0] to access the 15 minute bar close or isoloate by BarsInProgress, for example

    if (BarsInProgress == 0)
    {
    Close[0] // would point to the 15 minute data series, assuming this is a 15 minute chart
    }

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    649 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    573 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    576 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X