Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get data from multiple chart?

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

    How to get data from multiple chart?

    I have 2 charts. One is 1min, the other is 30min. How can I get 3o mins chat indicator data from 1 min? eg. 30min EMA value transfer to 1 min chart to my indicator?

    Many thanks,
    Thomson

    #2
    Hello Thomson,

    Thank you for your post.

    To do this you need to add the 30 minute period type to your code, and then reference BarsArray in the EMA for the correct bar series.

    For information on using multiple instrument and period types in your code please visit the following link: http://www.ninjatrader.com/support/h...nstruments.htm

    For a reference sample please go to Tools > Edit NinjaScript > Strategy > SampleMultiInstrument > OK.

    Please let me know if you have any questions.

    Comment


      #3
      Thanks for your quickly respond,PatrickH. Let's say I have 60 min chart for loading 150 days data, and calculated a result with some indicator, while I need to use this result in a 1 min chart which loaded only 3 days data. How to call this data from 60 min chart(calculated with 150 days data) rather than add second data series in 1min chart which only load 3 days data.

      Thanks,
      Thomson

      Comment


        #4
        Hello thomson,

        Thank you for your response.

        No matter if the indicator is plotted on the chart or adding in your NinjaScript code you will need ensure there are enough DaysToLoad to encompass the data, there is no method around this.

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

        Comment


          #5
          Do we have some way to parse value between 2 charts?

          Thanks,
          Thomson

          Comment


            #6
            Hello thomson,

            Thank you for your response.

            I am not familiar with any method to do this, there is no supported method in NinjaScript for this. You can however write and read to an external file, this can be used to write from one indicator/chart and read from another.

            You can find this reference sample at the following link: http://www.ninjatrader.com/support/f...ead.php?t=3477

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

            Comment

            Latest Posts

            Collapse

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