Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

order handling

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

    order handling

    Hello,

    after working with NT for many years now I´m experiencing a strange behavior (I was not aware of this because different order handling untill now maybe).

    I take off with a market order by condtion one of 3 contracts "ExitShort(1,"xaSa","aSa");"

    When I move stoplosses then by another condition

    I thought NT will move only stop for aSb and aSc because aSa is not there anymore.
    if (stopstepa==1 && Closes[2][0] <= Position.AvgPrice - (8*TickSize))
    {SetStopLoss("aSa", CalculationMode.Price, Position.AvgPrice, false);
    SetStopLoss("aSb", CalculationMode.Price, Position.AvgPrice, false);
    SetStopLoss("aSc", CalculationMode.Price, Position.AvgPrice, false);}

    But there appear 3 stoporders in orderstab. Looks like NT brings in these 3 orders even when there are only 2 positons?


    I can not change the code to move only SetStopLoss for aSb and aSc because all order handling is depending from conditions and the stopmove might be when all 3 positions are in the trade or, as described above, only 2 are there anymore.

    I thought with "ExitShort(1,"xaSa","aSa");" NT cancels also the corresponding SetStopLoss.



    Thank you
    Tony
    Last edited by tonynt; 09-12-2016, 06:20 AM. Reason: clearifying, translation error

    #2
    Hi Tony,

    Thanks for your post.

    I do not see the same behavior here with a quick mock up of the strategy. The SetStopLoss is cancelled when the ExitShort() occurs.

    Can you provide a strategy that demonstrates the issue? If you would prefer please feel free to write into platformsupport[at]Ninjatrader[dot]com Atten:Paul and link to this thread.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    68 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    62 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X