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

Two different strategies on same instrument that can have opposite positions

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

    Two different strategies on same instrument that can have opposite positions

    Hi,

    In the process of developing/testing some strategies, I had a situation where two different strategies with different time horizons on the same instrument are running at the same time but have opposite positions (one is short while the other is long). I was wondering how this would play out in live trading with a single account. Is it possible to be long and short in the same instrument in a live account? Or, will one strategy effect the position of another strategy? For example, strategy A is currently long and strategy B goes short with the net effect being flat in the account instead of being long in strategy A and short in strategy B.

    Thanks,
    gbrad

    #2
    Hello gbrad,

    Thanks for opening the thread.

    NinjaScript strategies use a virtualized position that is separate from the actual account position. This allows you to run separate strategies independently on the same instrument.

    Here is a link to our documentation on the Strategy Positions vs. Account Positions: https://ninjatrader.com/support/help..._account_p.htm

    Please bare in mind that while running unique strategies on the same account is possible, running multiple instances of the same strategy on the same account can cause issues when using a start behavior that matches historical orders with realtime. For example, Immediately Submit will match the strategy's historical orders to see if there are orders that belong to the strategy. If there are multiple instances of the strategy, there may be risk for mismatching. Please see the Syncing Account Position documentation for more details on start behaviors:



    If you have any additional questions, please don't hesitate to ask.
    JimNinjaTrader Customer Service

    Comment


      #3
      Thanks Jim. This was very helpful.

      gbrad

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cre8able, Today, 03:20 PM
      0 responses
      1 view
      0 likes
      Last Post cre8able  
      Started by Fran888, 02-16-2024, 10:48 AM
      3 responses
      45 views
      0 likes
      Last Post Sam2515
      by Sam2515
       
      Started by martin70, 03-24-2023, 04:58 AM
      15 responses
      114 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by The_Sec, Today, 02:29 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by jeronymite, 04-12-2024, 04:26 PM
      2 responses
      31 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X