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 DanielSanMartin, Yesterday, 02:37 PM
            2 responses
            13 views
            0 likes
            Last Post DanielSanMartin  
            Started by DJ888, 04-16-2024, 06:09 PM
            4 responses
            12 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by terofs, Today, 04:18 PM
            0 responses
            11 views
            0 likes
            Last Post terofs
            by terofs
             
            Started by nandhumca, Today, 03:41 PM
            0 responses
            8 views
            0 likes
            Last Post nandhumca  
            Started by The_Sec, Today, 03:37 PM
            0 responses
            7 views
            0 likes
            Last Post The_Sec
            by The_Sec
             
            Working...
            X