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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    74 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    26 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    62 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X