Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter Intrabar High but Order Keeps Moving

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

    Enter Intrabar High but Order Keeps Moving

    I'm trying to enter on new highs of the current bar, however when price comes up to the order it moves the order up. Tried to create a variable but same thing happens.

    Thank you all!!!!!

    #2
    Hello elcowen,

    If you have logic that is looking for new highs, when a new high is formed it would be logical to see a order move up if that is the criteria. Can you provide a code sample or image of what condition you used?

    Comment


      #3
      I'm trying to have the variable calculate only once (rather than continuously) and then use that variable price as the entry.

      private double MyEntry;
      MyEntry = 1;

      OnBarUpdate()
      MyEntry = (Max(High, 2)[0]

      EnterLongStopLimit(1, MyEntry, MyEntry, @"L1");



      Thank you!

      Comment


        #4
        After additional research ... Do I need to create a 'Custom Series' to hold the current intrabar high in order to reference it??

        Comment


          #5
          Hello elcowen,

          You can just use the CurrentDayOHL indicator if you want to know the current high or low at any time, you don't need to make a series. If your order is moving more than wanted that is likely due to the condition being true more than expected. You would have to use a Print to see why that is happening.

          Comment


            #6
            I think there's some confusion. See pic attached. I trade intraday so CurrentDayOHL wont work.

            When High[0] > High[1] and price pulls back, now I want to enter above the current High[0]. However if I put EnterLongStop(High[0]) .... it keeps ticking up and never gets hit. How do I get around this?

            Attached Files

            Comment


              #7
              Hello elcowen,

              CurrentDayOHL works intra day as well, that is for the current day and changes based on the market updating.

              You can also make conditions like High[0] > High[1] which would be if the current bar high is greater than the last closed high.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Today, 05:17 AM
              0 responses
              50 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              126 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              69 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              42 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              46 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X