Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

sell limit order for my stop loss not working ?

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

    sell limit order for my stop loss not working ?

    Hi I am trading after hours with Interactive Brokers
    Interactive Brokers do not support Sell STP orders after hours and have to use sell SLM orders
    I am checking the box in the Atm strategy section sell limit order for my stop loss (please see pix attached)
    and does absolutely nothing still submitting Sell STP orders ?
    Example log file

    With checkbox unchecked

    |1|32|Order='0ca486cfde2e4b569743a4704c35c4d3/Playback101' Name='Stop3' New state='Accepted' Instrument='BPTH' Action='Sell' Limit price=0 Stop price=15.25 Quantity=20 Type='Stop Market' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''

    With checkbox checked

    |1|32|Order='89f4d7eb558e4fd4a14315ccf232c886/Playback101' Name='Stop3' New state='Accepted' Instrument='BPTH' Action='Sell' Limit price=0 Stop price=15.25 Quantity=20 Type='Stop Market' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''

    absolutely no difference Type='Stop Market ??

    manually entering in the order and what it should be

    |1|32|Order='1355040723474ba6add37563d68192c1/Playback101' Name='Entry' New state='Accepted' Instrument='BPTH' Action='Sell' Limit price=0 Stop price=15.25 Quantity=20 Type='Stop Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''

    Does this feature just not work or am I missing something?

    #2
    It looks like you're trading equities. The "Stop Limit for Stop Loss" toggle will not apply to Equities or Forex instruments as these markets do not support Stop Limit orders. If this property is enabled when trading a stock or forex instrument, Stop Market orders will be used, instead. This is noted in the help guide link below:

    Comment


      #3
      NT support, Please provide a workaround for "Stop Limit for Stop Loss" unavailable for stocks.
      Is this by design to discourage users from trading stocks?
      If not, could you please provide a working code snippet as a work-around.
      Below work-around I tried does not work as intended, it generated 2 (one extra) exit orders.
      • Inside OrderUpdate event handler, use account.Cancel to cancel stop market order,
      • use account.CreateOrder to create an order of type StopLimit
      • create a bracket limit exit order using the same oco as the StopLimit

      Comment


        #4
        Hello,

        This is by design, as a 20 tick offset in many equities would result in the order not being filled as some stocks are much less liquid and a move of 20 ticks without either bids or offers is fairly common. This would result in many unintended positions and losses for clients, so this is a 'safety' feature built into the platform for clients.

        For instructions on coding this yourself, please reach out to our scripting team at scriptingsupport[at]ninjatrader[dot]com so they may best assist.
        Ryan S.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by funk10101, Today, 12:02 AM
        0 responses
        1 view
        0 likes
        Last Post funk10101  
        Started by gravdigaz6, Yesterday, 11:40 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by MarianApalaghiei, Yesterday, 10:49 PM
        3 responses
        10 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by XXtrader, Yesterday, 11:30 PM
        0 responses
        4 views
        0 likes
        Last Post XXtrader  
        Started by love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        28 views
        0 likes
        Last Post love2code2trade  
        Working...
        X