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 futtrader, 04-21-2024, 01:50 AM
          6 responses
          57 views
          0 likes
          Last Post futtrader  
          Started by sgordet, Today, 11:48 AM
          0 responses
          1 view
          0 likes
          Last Post sgordet
          by sgordet
           
          Started by Trader146, Today, 11:41 AM
          0 responses
          3 views
          0 likes
          Last Post Trader146  
          Started by jpapa, 04-23-2024, 07:22 AM
          2 responses
          17 views
          0 likes
          Last Post rene69851  
          Started by funk10101, Today, 11:35 AM
          0 responses
          1 view
          0 likes
          Last Post funk10101  
          Working...
          X