Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SubmitOrderUnmanaged -------OrderType.MIT not working

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

    SubmitOrderUnmanaged -------OrderType.MIT not working

    OrderType.MIT not working for me.
    i expect that when the condition = true ---> send the MIT order at High[0] or Low[0]

    but the thing is once i send the MIT order, the order will just filled right at the next sec.


    in the picture attached, the condition isLong=True. the MIT order shoud be right at the pp(the golden line)
    but it just fill at next order.



    I am not sure what is wrong here

    -----------------------------------------------------------------------------------------------------------------------------


    if (isLong)
    {
    _entryOrder = SubmitOrderUnmanaged(0, OrderAction.Buy, OrderType.MIT, posSize,0,
    High[0]+(RSI_Tick*0.25),"", EnterLongName);

    }
    if (!isLong)
    {
    _entryOrder = SubmitOrderUnmanaged(0, OrderAction.SellShort, OrderType.MIT, posSize, 0,
    Low[0]-(RSI_Tick*0.25),"", EnterShortName);

    }
    ----------------------------------------------------------------------------------------------------------------------


    #2
    Need help!!!!

    Comment


      #3
      Hi, thanks for posting. You should use this overload for an MIT order:

      SubmitOrderUnmanaged(int selectedBarsInProgress, OrderAction orderAction, OrderType orderType, int quantity, double limitPrice)

      The price you are using High[0]+(RSI_Tick*0.25) is above the market price, buy MIT orders must be placed below the bid price, so that is why it is filling automatically.

      Kind regards,
      -ChrisL

      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
      135 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