Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Synthetic Market Limit order

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

    Synthetic Market Limit order

    Hi,

    I am using a limit order in my strategy to sell at a min price x ticks below the market, ie a Market Limit Order,

    pEntry = EnterLongLimit(0,true, 1, Math.Max(lPiv + entryAllowance * TickSize, lPiv + (hPiv - lPiv)*0.25), "pEntry");

    When I apply this to my chart for testing it is giving me fills below the low of the bar, i.e. I am always getting the worst possible fill. Is there a way to correct this so it will give me the fill at the low of the bar?

    #2
    Hello GKonheiser,

    Thanks for your post.

    Could you clarify the conditions that you are testing this under? Backtesting? Market reply? Live-sim?

    Also, did you mean EnterShortLimit?

    I look forward to your reply.

    Comment


      #3
      Sorry yes I have a EnterLongLimit for the long side and a EnterShortLimit for the short side, I can see my post has the wrong one.

      I am Backtesting.

      Comment


        #4
        Hello GKonheiser,

        Thanks for your reply.

        I understand you are backtesting.

        Please change your "Fill Type" from "default" to "liberal". This is changed in the Historical Fills parameters.

        Default fills at the limit price of the order.

        Please let me know if I can be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X