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

Combine indicators into one?

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

    Combine indicators into one?

    I want to aggregate a few indicators.

    So I'll make a custom indicator and I need to it have both ADX and SMA.

    Based on those values will return a simple 1, 0, -1 (long, flat, or short respectively)

    How can I add ADX and SMA to the indicator?

    I tried Add( ADX(90)) but that gives an error.

    Sincerely,
    Wayne

    #2
    You woud have to create a plot for each indicator and then assign the value of the ADX to this plot.
    RayNinjaTrader Customer Service

    Comment


      #3
      Ray,

      Thanks. Now I'm finding that the SMA and ADX plot either in panel 2 or panel 1. Neither of that works. I need SMA in panel one and ADX in panel 2.

      How do I do that?

      Wayne

      Comment


        #4
        Not sure I follow.

        - A custom indicator will plot in what ever panel you apply it in
        - A custom strategy where you have added indicators for display can have their panels set via this tip - http://www.ninjatrader-support.com/v...ead.php?t=3228
        RayNinjaTrader Customer Service

        Comment


          #5
          Right, you didn't follow.

          I'm adding plots into a custom indicator.

          One plot I want in pane 1 and the other in pane 2.

          Please help.

          Wayne

          Comment


            #6
            This is not possible.
            RayNinjaTrader Customer Service

            Comment


              #7
              Okay. I already gave up.

              What about my other problem post? The adx High and Low DataSeries don't get set when ADX is within another indicator which is also within a strategy.

              Help.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by kujista, Today, 06:23 AM
              4 responses
              14 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by traderqz, Yesterday, 09:06 AM
              2 responses
              15 views
              0 likes
              Last Post traderqz  
              Started by traderqz, Today, 12:06 AM
              3 responses
              6 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by RideMe, 04-07-2024, 04:54 PM
              5 responses
              28 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by f.saeidi, Today, 08:13 AM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Working...
              X