Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Communicating between different time frame charts

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

    Communicating between different time frame charts

    Hello,

    I want to know if its possible( and how to? ) to make charts communicate between themselves. This form part of the strategy to analyse different time frames and to take a buying or selling signal based on some confirmation on higher time frames. For example, trading on a 5 minutes time frame, I want to know if it possible to integrate in my code some kind of communication channel with the 15 minutes and 30 minutes chart, on which there will be some analysis( major trend or intermediate trend) will be done in order to engage the market on the 5 minutes chart.

    Do you know how we can do that with the NT scripting?

    Thank you very much

    AGT.

    #2
    Hello AlphaGammeTheta,

    It is possible to load data series with different time values into a strategy.

    The theory is not that you are making multiple charts communicate between each other but rather you are adding additional chart data into the same chart.

    From inside a strategy you can do this by using the Add() method.

    Here are some examples of this.

    This is simple usage and will pull the 5 minute data and 10 minute data of the current chart the strategy is applied to.
    Code:
    Add(PeriodType.Minute, 5);
    Add(PeriodType.Minute, 10);
    You can get more advanced with it if you want to, this would add a 100 tick ES chart to the current chart
    Code:
    Add("ES 06-14", PeriodType.Tick, 100);
    To access the data you have retrieved, you use almost the same as you would normally to get your data
    For the first set of data you would use to get the double value of the current bars close
    Code:
    Close[0]
    To get the second data series close you would use:
    Code:
    Closes[1][0]
    Here is a reference on how to use these time frames


    Here is a link to a video on using hidden data series just for reference if you would like to do this without using a strategy


    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, Yesterday, 10:06 AM
    0 responses
    22 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    19 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    14 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    10 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    41 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X