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 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
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        55 views
        0 likes
        Last Post CarlTrading  
        Working...
        X