Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help needed for simple strategy code

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

    Help needed for simple strategy code

    I have no coding experience, so need some help. Thanks.

    I want to right a simple condition:

    if opening price (9.30AM eastern time) is below yesterday's close (4PM ET)
    AND low of the opening bar is no more than $1 lower than open
    AND high is between (open + 0.5) and (open + 1)

    Then buy.

    Thanks for the help.

    #2
    ju1234, we could unfortunately not create this strategy for you, but you can look into the 'point and click' wizard interface we have available for strategy generation -



    Yesterdays OHLC could be access by working with the PriorDayOHLC indicator.

    Comment


      #3
      I did look into the wizard. I did not know how to express "yesterday". Thanks.

      Comment


        #4
        And also, how would i express the "opening bar" that is the 9.30AM bar (should the time be end of the bar time or begining of the bar time, for example on a 5 minute chart, will it be 9.35 or 9.30)
        Thanks.

        Comment


          #5
          The opening bar on a 5 min chart would be the one with a timestamp of 9:35 (NT stamps end of bar). For the open price you can also work with CurrentDayOHL.

          Comment


            #6
            I am sorry, I did not find current day OHL. Where in the wizard will i find it. I cannot build anything without the wizard. Thanks.

            Comment


              #7
              ju1234,

              You should be able to find it under the Indicators category in the Condition Builder. It is listed as "Current Day OHL".
              Josh P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              571 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              330 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              548 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              549 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X