Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Complex Execution Scenario Understanding

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

    Complex Execution Scenario Understanding

    Hi All,

    Because for execution everything needs to be crystal clear I want to see if I understood the NT tutorial correctly.
    My strategy scenario is as follow:
    1. Set the strategy to PerEntryExecution.
    2. In Intilaize() I have SetProfitTarget() and SetStopLoss().
    2. EnterLongLimit(10, Bars.CurrentBid) with no unique signal name.
    3. There is a partial fill for 5 contracts and then another 5 contracts in 2 separate fills.
    4. Then I have a condition that set an ExitLong() with no quantity.

    My questions are:
    A. Does in stage 4 ExitLong() the 10 contracts are sold?
    B. Does the orders from stage 2 are removed by NT.
    C. If I only got filled for 5 contracts does the stage 4 close 5 contracts? What happen to the other 5 contracts that didn't filled? Can I close them manually? if yes how?

    Hope I made myself clear and thanks in advance for your time.
    Happy Xmas
    Freewind

    #2
    Freewind, happy holidays to you, too - yes ExitLong() tied to no specific name would close out the entire long position, yes if the position is closed the exit bracket provided via the Set's is cancelled. Yes, if you're position size is only 5 due to a partial fill it would ExitLong() this size then. Per default the limit order is only valid for the bar it was submitted on, if you would like it to persist working either resubmit or use the advanced overload offering you to submit with the liveUntilCancelled property set to 'true'.

    Comment


      #3
      Thanks Bertrand, I fully understand.
      This is great execution design by NT!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      68 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X