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 arvidvanstaey, Today, 02:19 PM
    3 responses
    9 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by jordanq2, Today, 03:10 PM
    2 responses
    7 views
    0 likes
    Last Post jordanq2  
    Started by traderqz, Today, 12:06 AM
    10 responses
    18 views
    0 likes
    Last Post traderqz  
    Started by algospoke, 04-17-2024, 06:40 PM
    5 responses
    47 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by mmckinnm, Today, 01:34 PM
    3 responses
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X