Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-Instrument Strategy Close All Open Positions in one command

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

    Multi-Instrument Strategy Close All Open Positions in one command

    Hi,

    Is there a function that Close all open positions for multi-instruments strategy? instead of running on every BIP and check if they have position on.

    TX in advance!

    #2
    Hi freewind,

    Unfortunately there is not a close all position NinjaScript method. You can use separately ExitLong(); and ExitShort(); for all BIP. They will not submit orders unless the strategy is in a position.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by freewind View Post
      Hi,

      Is there a function that Close all open positions for multi-instruments strategy? instead of running on every BIP and check if they have position on.

      TX in advance!
      You might want to work through this thread; particularly post #6

      ref: http://www.ninjatrader.com/support/f...16591#poststop

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sidlercom80, 10-28-2023, 08:49 AM
      166 responses
      2,234 views
      0 likes
      Last Post sidlercom80  
      Started by thread, Yesterday, 11:58 PM
      0 responses
      1 view
      0 likes
      Last Post thread
      by thread
       
      Started by jclose, Yesterday, 09:37 PM
      0 responses
      6 views
      0 likes
      Last Post jclose
      by jclose
       
      Started by WeyldFalcon, 08-07-2020, 06:13 AM
      10 responses
      1,414 views
      0 likes
      Last Post Traderontheroad  
      Started by firefoxforum12, Yesterday, 08:53 PM
      0 responses
      11 views
      0 likes
      Last Post firefoxforum12  
      Working...
      X