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 fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,404 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    95 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    8 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    159 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    8 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X