Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Difference Indicator...

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

    Difference Indicator...

    I would like to write an Indicator that subtracts the value from one indicator from another. Therefore, I would need the GUI to support two Data Series (Input Series 1 and Input Series 2). This way the user can define whatever 2 inputs they want. (like: dif MSFT with APPLE or SMA1 with SMA2 etc)

    In the Indicators dialog, under the properties panel, I see an expander called Data Series, within that expander, there is one item called Input series. I would like to see two items under that expander. Like: Input Series and Input Series 2.

    How do I make this happen?
    Thanks.

    #2
    If you can write/read complex ninjascripts (I don't) maybe you can find some useful hints, for the indicator you would like to write, here:
    https://ninjatrader.com/support/foru...01#post1093901

    Comment


      #3
      Hi Kabua, thanks for your question.

      You can reference the Spread indicator as a good sample on how to make this kind of indicator:

      Plots the Spread of two instruments The first instrument is the primary chart data series. The secondary instrument is specified by the parameter "Symbol2". The Parameters "Qty1" and "Qty2" are multipliers which are applied to each instrument's price before adding the two; default values are "Qty1=1" and "Qty2=‐1" which will simply plot the difference between […]


      Please let me know if I can assist any further.

      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


        #4
        guidoisot and NinjaTrader_ChrisL - Thanks for both of your comments. I've glanced at both suggestions just now, I think between them I can come up with something. Thanks.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        672 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        577 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X