Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop limit offset

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

    #16
    Hi, if I want to use Negative Offsets on Stop Limit order for Entering a Trade, example: I want to long at break out. Resistance at 77.7 and market is rising from below 77.7. I set offset of -5 to put a limit order to long at 77.2 when market touch 77.7 and retrace to 77.5. I can do this easily using Superdome by setting StopLimit with Stop=77.7, Limit price offset -5. I was using ATM with this.

    But for NT7 script, it seems to give me error when I set:

    bLnATM_ConfigOK = AtmStrategyCreate(OrderAction.Buy, OrderType.StopLimit, (dBlEntryTrigLvl - dBlEntry_LimitDeltaLvl), dBlEntryTrigLvl, TimeInForce.Day, sTrATM_OrderID, sTrATM_TemplateName, sTrATM_StrtgyID);
    where dBlEntryTrigLvl = 77.7, dBlEntry_LimitDeltaLvl=5 for this example.

    when executed, it gave me an error "Limit price can;'t be smaller than stop price. affected order: Buy 2 StopLimit @ 77.7x77.5". If I set dBlEntry_LimitDeltaLvl=0, there is no issue. The interesting thing is that earlier I tested this, it worked well with negative offset... but now it keep giving me error... not sure what happen. Any suggestion?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by mmckinnm, Today, 01:34 PM
    3 responses
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by f.saeidi, Today, 01:32 PM
    2 responses
    4 views
    0 likes
    Last Post f.saeidi  
    Started by alifarahani, 04-19-2024, 09:40 AM
    9 responses
    55 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Conceptzx, 10-11-2022, 06:38 AM
    3 responses
    60 views
    0 likes
    Last Post NinjaTrader_SeanH  
    Started by traderqz, Today, 12:06 AM
    9 responses
    16 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X