Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

charting a futures pair?

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

    charting a futures pair?

    Is there a way to chart a futures pair? For example 50*ES-6*/YM or PEP- 3*KO (multiplication to make them notionally equal)

    #2
    Hi waterman, thanks for posting. See the Spread indicator here:

    This is a conversion of the Spread Indicator with Candlesticks. Please contact the original author for any questions or comments.


    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Comment


      #3
      Thanks Chris,

      Is there a way to apply other indicators or a system to the Spread Indicator?

      Comment


        #4
        Hi waterman, you can use the Spread indicator in a Strategy. All the strategy needs to do is add the same data series you pass into the Spread indicator and create the Spread object similar to the SMA objects in the SampleMACrossover strategy. To apply an indicator to it, you can select any indicator in the Spread settings under the "Input Series".

        Kind regards,
        -ChrisL​

        Comment


          #5
          Chris, would all of my strategies be "tweeked" to allow them to work with the Spread Indicator??? BTW I've approached several programmers with doing this (creating a chart of an intermarket futures spread ...ie Crude Gas CL RB.......and applying a strategy to the spread candles.)...but none of the programmers seem to get it or say it's impossible. Am I not explaining it correctly?

          Comment


            #6
            Hi, the spread indicator can be used in a strategy. See here for documentation on initializing indicators in other scripts. Since the Spread indicator is using AddDataSeries() to add another series, the hosting strategy will also need to add the exact same data series.

            https://ninjatrader.com/support/help...tm#Performance //see "Referencing indicator methods"

            Comment


              #7
              Hey Chris...thank you. I ran this past the programmer I hired (who also wrote the strategy I want to apply to the spread) He said it would take 8 hrs to apply the strategy to the pairs.
              I know this might be an awkward question....but you make it seem like an easy process....should it take that long?

              Comment


                #8
                Hi waterman, thanks for the follow up. It depends on the current status of the code. Adding a data series can mean you would need to re-structure the entire OnBarUpdate method, so it can take 20 minutes or it could take 8 hours, it really depends on what the code is doing.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                633 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                364 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                105 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                567 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                568 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X