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 Aviram Y, Today, 05:29 AM
              0 responses
              2 views
              0 likes
              Last Post Aviram Y  
              Started by quantismo, 04-17-2024, 05:13 PM
              3 responses
              25 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by ScottWalsh, 04-16-2024, 04:29 PM
              7 responses
              34 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by cls71, Today, 04:45 AM
              0 responses
              6 views
              0 likes
              Last Post cls71
              by cls71
               
              Started by mjairg, 07-20-2023, 11:57 PM
              3 responses
              217 views
              1 like
              Last Post PaulMohn  
              Working...
              X