Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

indicator to subtract one symbol from another

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

    indicator to subtract one symbol from another

    Hi I was wondering if there is an
    a. indicator that can subtract two symbols or two indexes...
    b. additional add to a histogram ..
    for example I would like a histogram plotting new highs minus new lows.
    or I would like to form a line froma 30yr yield minus a 3 month yield?
    any thoughts would be much appreciated.

    Also...I know im pushing it...but is there an indicator that inverts a line...for example the trin or the vix?

    thanks dy

    #2
    dy, those operations could be done with MultiSeries indicators in our NinjaTrader 7 - for ideas and a starting point into this territroy you can check into the custom Spread indicator works shared here from a fellow user - http://www.ninjatrader.com/support/f...=spread&desc=1
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thank you very much!

      Comment


        #4
        Bertrand, how do I add a histogram....for example I want to use a histogram for the 52 week highs and lows?
        also is there an indicator to invert a line?...thanks a bunch!!

        Comment


          #5
          Unfortunately I'm not aware of custom indicator implementations already for those tasks, you would need to custom code them - what do you mean by 'inverting a line'? To take the reciprocal value?
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Thank you, the "trin" is an indicator that tracks its line opposite to the market...I want to invert it so that it can track along with it...for easier reading.

            Comment


              #7
              Hello brdnickel,

              You can invert a value by dividing from 1.

              1 / TrinValue.

              In an indicator this could be 1 / Close[0]
              Ryan M.NinjaTrader Customer Service

              Comment


                #8
                dont understand how to write for indicators...can I do this under data series or properties?

                Comment


                  #9
                  Unfortunately not - you would need to custom code / modify the code in the NinjaScript editor.

                  BertrandNinjaTrader Customer Service

                  Comment


                    #10
                    thank you...and last question today..I go the ratio for two symbols....(i plot two symbols in my chart and then use an indicator to get the ratio). Once I get the ratio, I want to plot a sma 21 period to the "ratio"....not the actual top symbol (which seems to be what is happening since I cannot remove the original symbol)..do you know a way to get the moving average to the ratio?
                    thanks again. Much appreciated

                    Comment


                      #11
                      You would need to input this indicator calculating the ratio into the MA as input series (indicator on indicator principle) -

                      BertrandNinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by TAJTrades, 04-28-2024, 09:46 AM
                      2 responses
                      17 views
                      0 likes
                      Last Post TAJTrades  
                      Started by ETFVoyageur, Today, 02:04 PM
                      2 responses
                      15 views
                      0 likes
                      Last Post ETFVoyageur  
                      Started by mjbatts91, Today, 04:48 PM
                      0 responses
                      2 views
                      0 likes
                      Last Post mjbatts91  
                      Started by 1001111, Today, 09:45 AM
                      2 responses
                      21 views
                      0 likes
                      Last Post 1001111
                      by 1001111
                       
                      Started by cre8able, Today, 04:31 PM
                      0 responses
                      4 views
                      0 likes
                      Last Post cre8able  
                      Working...
                      X