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.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,403 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    94 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    6 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    158 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    8 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X