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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      48 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X