Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order cancellation

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

    Order cancellation

    Hi NT experts,

    Assume the following: I have a target and stop loss orders submitted after entry fill. And neither the target nor the stop loss is hit yet.

    Then I exit my position with market order. Will NT internal logic cancel the target and stop loss orders associated with the position after position close?

    If I also do CancelOrder after position close, will it cause conflict with NT's internal logic?

    Regards,

    #2
    binwang2, which methods are you using? Exit's or Set's?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I use Exit such as ExitLong();

      Comment


        #4
        binwang2, thanks - so how do you place your exits? If you placed them with the Set() methods, those would be cancelled as the associated position would be close, Exit methods such as for example ExitLongLimit you would need to cancelOrder() as needed.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Thanks Bertrand.
          I have a question on teh set() method.

          But i would like to change stoploss or target price dynamically. The online help guide indicates the price value has to be reset for Set() method. Suppose it is not reset but the position is closed and the strategy is stopped and restarted. Will the stoploss/target price be reset automatically by restating the startegy?

          Regards,

          Comment


            #6
            It would be 'initialized' then as it cycles through the historical OnBarUpdate() portion, best would be resetting to a default value when there's no strategy position (as also done in our sample below) -

            http://www.ninjatrader-support2.com/...ead.php?t=3222
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by op1031, Yesterday, 05:16 PM
            1 response
            8 views
            0 likes
            Last Post NT-Roland  
            Started by sinpeople, Today, 07:20 AM
            1 response
            3 views
            0 likes
            Last Post NT-Roland  
            Started by Frank1000, Today, 03:05 AM
            1 response
            7 views
            0 likes
            Last Post NT-Roland  
            Started by ntdev, Today, 01:14 AM
            4 responses
            16 views
            0 likes
            Last Post ntdev
            by ntdev
             
            Started by ct, Today, 02:22 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Jason  
            Working...
            X