Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

subtract 2 instruments

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

    subtract 2 instruments

    Is there a way to subtract 2 instruments and display with bars?
    Something like the indexes ^UVOL and ^DVOL
    So I want the difference between the up volume and down volume to be displayed with bars.
    Also, is there a way to create custom indexes and display in bars.
    Like AAPL + GE + NFLX
    or can I do a ratio chart like
    AAPL / GE
    etc.

    Can this be accomplished with a custom instrument or if it's possible with an indicator could you mention how to plot the result like an instrument.

    Thanks

    #2
    Hello dtl-saw,

    Thank you for your post,

    For NInjaTrader 7, there is an indicator on our forum that will allow you plot the difference between two instruments, though this was displayed as a line and not candlesticks. Our NinjaScript team is working on converting the NinjaTrader 7 forum indicators over for use with NinjaTrader 8, though this one has not been completed yet.

    http://ninjatrader.com/support/forum...d=4&linkid=367

    Both this and the instrument setups would be possible via custom programming. If you're a programmer yourself, let me know and I can have our NinjaScript team follow up with tips on creating this bar type. If you're not a programmer, our NinjaTrader Ecosystem team can advise third-party consultants that assist clients in developing custom tools for use in NinjaTrader.
    Eric B.NinjaTrader Customer Service

    Comment


      #3
      I am also interested in this. Can you have your NinjaScript team follow up with tips on creating this bar type?

      Thanks

      Comment


        #4
        Hello pcrouleur,

        Thank you for your response.

        This would not be possible in the Bar Type, you would need to create as an indicator.

        Comment


          #5
          I was only asking about the bar type because of Eric B's response.

          Do you have any suggestions on how to go about creating an indicator that would plot the result of one instrument minus another? Something like a candlestick plot of ^UVOL - ^DVOL.

          I've created a few NT8 indicators and strategies but I'm still getting up to speed with the changes so any help would be appreciated.

          Thanks.

          Comment


            #6
            The link Eric provided shows how to plot the difference of two instruments: http://www.ninjatrader.com/support/f...d=4&linkid=367

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by bsbisme, Yesterday, 02:08 PM
            1 response
            15 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by prdecast, Today, 06:07 AM
            0 responses
            3 views
            0 likes
            Last Post prdecast  
            Started by i019945nj, 12-14-2023, 06:41 AM
            3 responses
            60 views
            0 likes
            Last Post i019945nj  
            Started by TraderBCL, Today, 04:38 AM
            2 responses
            18 views
            0 likes
            Last Post TraderBCL  
            Started by martin70, 03-24-2023, 04:58 AM
            14 responses
            106 views
            0 likes
            Last Post martin70  
            Working...
            X