Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongLimit not working right

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

    EnterLongLimit not working right

    EnterLongLimit is not placing the limit order at the right location and getting filled right away. Please see the screenshot. I intend to place the limit order at the drawn line. Printing to output window shows the correct limit price going in as a parameter so wondering what I'm doing wrong. Please help. Btw, the same issue is true for EnterShortLimit as well. Thank you.
    Attached Files

    #2
    Hello singjay,

    Do you have a sample of what code you are trying to use when submitting the orders? Without that kind of detail it would be impossible to tell what may be happening based solely on a picture.

    Comment


      #3
      I had the code shown on the picture but here it is:

      Code:
                  if (_enterLong )
                  {
                      limitOrderPrice = High[1] + (100 * TickSize);
                      Print("Entry limit long: " + limitOrderPrice);
                      Draw.HorizontalLine(this, "limitLng" + CurrentBar, false, limitOrderPrice, Brushes.Magenta, DashStyleHelper.Solid, 1);
                      EnterLongLimit(0, true, 1, limitOrderPrice, LongPos);
                  }​

      Comment


        #4
        Hello singjay,

        From the given detials it would not be clear what the problem is. I would suggest to extract that part of your code and make a simple test strategy that submits one order in realtime to see if you get the same result. If so attach that script so that we can see the total code being used and where it is being called from.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        90 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        137 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        120 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X