Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simultaneous Multiple Strategies ?

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

    Simultaneous Multiple Strategies ?

    I've got several strategies that I would like to trade simultaneously. However, due to account balance restrictions, I don't want more than one to be in a trade at any given time. So, is there some way for a strategy to determine if a trade is open, and thus not enter until the account is flat? (The average time in a trade is a few minutes.)

    #2
    You can check if account unrealized PnL is equal to 0. because if you are on a trade that mean your unrealized PnL is either negative or positive. so it does not equal to 0. and when you do not have a trade open the unrealized PnL is always 0.
    Something like this:
    Code:
    if ((Account.Get(AccountItem.UnrealizedProfitLoss, Currency.UsDollar) == 0) &&  // your strategy enry condition)
    Last edited by onlinebusiness; 01-13-2023, 03:37 AM.

    Comment


      #3
      Hello, thanks for writing in. The PositionAccount object in the strategy will give the position information on the account it is running on. See here for an example:
      https://ninjatrader.com/support/help...onaccount_mark etposition.htm

      Kind regards,
      -ChrisL

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X