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

How to run a long and short strategies simultaneously?

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

    How to run a long and short strategies simultaneously?

    I'd like to run a long and short strategy without closing positions of each strategy when one or the other enters a position. How would I do this?

    #2
    Hello relogical,

    This would require placing the orders to different accounts as an account may only have one position per instrument. (This also true with brokerage accounts)

    See the forum post below about multiple positions.
    https://ninjatrader.com/support/foru...660#post792660

    A NinjaScript Strategy is only able to send orders natively to the Account selected for the strategy.

    Using the Addon Approach it is possible to send orders to another account, however these will not be reflected with the strategy position or order events.

    Below is a link to ProfitChaseStopTrailIndicatorExample_NT8 which demonstrates placing orders to an account through the addon approach.
    https://ninjatrader.com/support/foru...269#post802269
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by WalterSkinner, Today, 04:40 PM
    0 responses
    6 views
    0 likes
    Last Post WalterSkinner  
    Started by jvanelli, Today, 04:08 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by eleven, Today, 04:05 PM
    0 responses
    5 views
    0 likes
    Last Post eleven
    by eleven
     
    Started by space_trader, 05-15-2022, 08:14 AM
    4 responses
    25 views
    0 likes
    Last Post Tasker-182  
    Started by parkinsonbr, Yesterday, 05:06 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X