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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      61 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X