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

Highest Bar of e.g. ADX

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

    Highest Bar of e.g. ADX

    Hi,
    I'm new to this forum and Ninja Trader. First of all, it seems to be a nice tool, but I still have to learn a lot, I guess, until I can use it efficiently to replace me ;-)

    I got a lot of question already, but lets first start with this one.
    Can I apply in the strategy wizard the function "higest bar" to e.g. ADX.
    I mean, if I want to trigger a trade, if the current ADX is 50% of the highest ADX of the last 20 bars.

    E.g. the highest ADX in the last 20 bars was 40 and now the ADX has just declined to 20, than I want to trigger a trade.

    I already tried it, but it just delivers wired results.

    Thanks for any help!!!

    #2
    Instead of trying to use highest bar logic, you could try using MAX. On the left hand side of the Condition Builder, select Indicators->MAX, then change the Input Series to your ADX. Change the period to 20. Offset it by 50%. Then on the right hand side compare it to the current ADX.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the swift reply!
      Maybe this solves my problem. Only one question regarding the offset. do i have to input 50% as "50" or "0.5"?

      Comment


        #4
        Ah, I guess, I got it...
        Have to add 0,3 (if I want the trigger at 70% of MAX) on the side of the current bar.

        Correct me, if I'm wrong :-)

        Comment


          #5
          You are correct.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by rene69851, 05-02-2024, 03:25 PM
          2 responses
          28 views
          0 likes
          Last Post NinjaTrader_Kimberly  
          Started by NUVERSA, Today, 09:31 AM
          0 responses
          5 views
          0 likes
          Last Post NUVERSA
          by NUVERSA
           
          Started by ttrader23, Yesterday, 09:04 AM
          8 responses
          37 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by tonynt, Yesterday, 01:48 PM
          2 responses
          12 views
          0 likes
          Last Post tonynt
          by tonynt
           
          Started by goodknight777, Today, 08:43 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X