Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

PartFill

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

    PartFill

    Hello,

    If a order state is partFill, what happens when AtmStrategyCancelEntryOrder() is called?

    Thank you

    #2
    Hello jetheil2,

    Thanks for your post.

    I understand you are using AtmStrategyCreate() to submit entry orders with an Atm strategy template applied.

    If you check if the order state of the entry orders is PartFilled and call AtmStrategyCancelEntryOrder(), all entry orders that were not filled will be canceled. Orders that were filled will remain filled and will not be canceled.

    See this help guide documentation below for more information about AtmStrategyCancelEntryOrder(): https://ninjatrader.com/support/help...entryorder.htm

    Let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Hello BrandonH,

      Thanks for your help.


      1. Is AtmStrategyChangeEntryOrder the same as above when orders is PartFilled ?

      Change only those that have not yet been filled, and those that have already been filled will not be changed.




      2. If there is no order filled or partially filled, is there any adverse effect of executing this method?
      Last edited by jetheil2; 03-01-2022, 12:13 AM.

      Comment


        #4
        3 Is AtmStrategyChangeStopTarget the same as above when orders is PartFilled ?

        Comment


          #5
          Hello jetheil2,

          Thanks for your note.

          1. Is AtmStrategyChangeEntryOrder the same as above when orders is PartFilled?

          Yes, only orders that are not filled would be changed when using AtmStrategyChangeEntryOrder().

          2. If there is no order filled or partially filled, is there any adverse effect of executing this method?

          If an order is placed but not filled or partially filled and you call AtmStrategyChangeEntryOrder(), all entry orders that are not filled would be changed.

          3 Is AtmStrategyChangeStopTarget the same as above when orders is PartFilled?

          Stops and Targets will only be placed when the entry order they are attached to is filled. If a partial fill occurs, stops and targets would only be placed for the entry orders that are filled. These stops and targets could then be changed with AtmStrategyChangeStopTarget.

          You could consider testing this yourself by creating a test script that uses these methods and places a large order quantity. You could then run the script on an instrument with low volume to force partial fills to occur.

          Let us know if we may assist further.

          Brandon H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Segwin, 05-07-2018, 02:15 PM
          14 responses
          1,789 views
          0 likes
          Last Post aligator  
          Started by Jimmyk, 01-26-2018, 05:19 AM
          6 responses
          837 views
          0 likes
          Last Post emuns
          by emuns
           
          Started by jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,294 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          13 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          11 responses
          63 views
          0 likes
          Last Post halgo_boulder  
          Working...
          X