Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

moving average crossover a specific price.

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

    moving average crossover a specific price.

    I have seen scripts for a price crossing a moving average, but how would I have the moving average cross a specific price. I'm trying to write a grid trading strategy, but don't know how to enter a price. For example, how would I use the wizard to write a 3 bar moving average crossing 1350 on the e mini?
    Thanks,
    JRagsdale

    #2
    JRagsdale,

    CrossAbove( SMA(3) , 1350.00 , 1 ) is an example that would work if I am understanding correctly.

    Left column > Indicators > SMA
    Right column > "Numeric Value" in the "Misc" section, set to 1350.00
    In the comparison section, "CrossAbove".
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Next question is how many condition sets are allowed?

      Comment


        #4
        JRagsdale,

        There are 10 sets total, but each set can have any number of conditions internally.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Are you limited to 10 sets if you put it in the code instead of the wizard?

          I'm running one with 40 sets and it appears fine, but I'm not sure.

          Comment


            #6
            Hello,

            There would be no limitations in the code.
            Adam P.NinjaTrader Customer Service

            Comment


              #7
              That's great. Thank you.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              656 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              371 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
              579 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X