Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Execute on price HOD

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

    Execute on price HOD

    I'm trying to plan some executions around the High of the Day and the Low of the Day.

    What is the easiest way to do this in the condition builder? Can't seem to figure out how to get it to find the HOD or LOD

    Thanks

    #2
    Hello,

    Thank you for your post.

    In the condition builder of Strategy Analyzer, you will find High/ Low wich you can set to the current bar, or day.

    Please see my attachments as an example.
    Attached Files
    Ray S.NinjaTrader Customer Service

    Comment


      #3
      Just to clarify

      When I plugged in your sample, it triggered trades from high's above bars and not triggering trades only at the HOD. Did I need to change something to make it HOD instead of at a bar?

      Thanks,
      Bryan

      Comment


        #4
        Hello,

        Can you please explain to me the exact condition you are looking for?

        Do you wish to enter your trade after the current price exceeds yesterday's high?

        Do you wish to enter your trade after the current price makes a new high for the current day? If so, you need to specify the time range, 1 hour high, 30 min high, etc.
        Ray S.NinjaTrader Customer Service

        Comment


          #5
          Trade just below current high of day

          I wish to setup trades just below the current high of the current day. Also sell just above the current low of the current day.

          I see you say 1 hour high, 30 min high.... How do you set DAY high or DAY low?

          When I plug it in, it is executing trades based on bars back. Not based on price back.

          Thanks for your help.

          Comment


            #6
            Hello,

            You will need to use the indicator CurrentDayOHL and set the plot to Current High.
            Ray S.NinjaTrader Customer Service

            Comment


              #7
              Almost there

              So do I put those on both sides with a "==" in the middle? like you had mentioned below?

              Trades are still executing above the lowest price of the day and not enough trades are being made.

              It looks like it is executing on the open or close of a candle and not within a candle.

              Thanks

              Comment


                #8
                Post up screenshots of what you have now so we can better assess the next step. Thanks.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Here are some pics about problem

                  Here are some pics about the problem..



                  You will at 9:17 a.m. it executes a short higher than the current LOD of 1282.25.. Why?

                  Is this a simple change.
                  Attached Files

                  Comment


                    #10
                    Hi tahoebry,

                    Your code looks correct. Possible reason could be that the bar's low is actually the current day's low, but since you are submitting market orders it just happened to fill at a higher price. This can happen and the only way to prevent would be to use limit orders.
                    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
                    601 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    347 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    103 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    559 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    558 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X