Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ADX indicator trending higher

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

    ADX indicator trending higher

    I have a strategy running a 4 renko chart and lets say a 5min chart
    As the 4 renko fires on the strategy the second time point 5min
    can also be checked.
    Using the standard ADX indicator that Ninja provides how do you tell at any point the ADX is rising or falling?
    Of course you could look at privious closed 5 min bars, but I want to know when the 4 renko fires the condition of the 5 min ADX.
    I can get the current BID price on the 5 min but what do I compare against?

    #2
    Hello bbucha_stk,
    Say your primary series is the 4 Renko and the 5 minute bar is the secondary series.

    To know is the ADX based on the 5 minute bar array is rising or falling when the primary series updates please use the below code

    Code:
    if (BarsInProgress == 0)
    {
        if (Rising(ADX(Closes[1],14)))
       {
          //do something
        }
        else if (Falling(ADX(Closes[1], 14)))
        {      
          //do something
        }
    }


    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks I was looking at that approach but I misunderstood
      Rising : Checks for a rising condition which is true when the current value is greater than the value of 1 bar ago.

      I was thinking it was saying that it looked at the prior two closed bars
      Thanks

      Comment


        #4
        Hello bbucha_stk,
        Glad to know you could figure it out.

        Please let me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          I have as mentioned a indicator that I created and I am using it via a strategy. I have some print statements in the indicator code that does not print to the output window.
          The strategy prints, and I also added the print statement onbarupdate as the first line but no output.
          Any ideas???

          Comment


            #6
            Hello bbucha_stk,
            Can you send a toy NinjaScript code* replicating the behavior to support[AT]ninjatrader[DOT]com

            Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

            I look forward to assisting you further.

            The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
            JoydeepNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            649 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            370 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            574 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            576 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X