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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    68 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    150 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X