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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X