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 added strategies takin trades while the other is in position

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

    Two added strategies takin trades while the other is in position

    I added two strategies to a chart (strategy # 1 and strategy # 2). Strategy # 1 took a short, then strategy # 2 took a short while strategy # 1 was still in a short position. Now in both strategies, I use condition statement:

    if (Position.MarketPosition == MarketPosition.Flat)

    I thought that if I use the condition statement above, that a position can't be taken in strategy # 2 if strategy # 1 was in position and vise verses. Are there any settings that will keep strategy # 2 flat as long as strategy # 1 is in position or vise verses?

    ​​​​​​​Thanks.

    #2
    Each strategy runs independently.

    A running strategy has no idea about other running strategies.

    The 'Position' object only reflects the market position of
    the strategy it is running inside of -- there is no (easy) way
    to quickly check on the market position of other running
    strategies.

    Comment


      #3
      Hello AdeptistJune,

      As forum member bltdavid advised each strategy runs independently of any other strategy (or manually placed orders). Each strategy maintains its own (strategy) position while they share the account position and there can only be one account position of long, short or flat at any moment.

      In general, we do not recommend running more than one strategy on the same instrument and same account. It is a better experience to combine the strategies into one if possible. or to run them on separate accounts.
      Paul H.NinjaTrader Customer Service

      Comment


        #4
        Okay. I thought that might be the case.

        Thanks.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DJ888, 04-16-2024, 06:09 PM
        4 responses
        12 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by terofs, Today, 04:18 PM
        0 responses
        8 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by nandhumca, Today, 03:41 PM
        0 responses
        6 views
        0 likes
        Last Post nandhumca  
        Started by The_Sec, Today, 03:37 PM
        0 responses
        3 views
        0 likes
        Last Post The_Sec
        by The_Sec
         
        Started by GwFutures1988, Today, 02:48 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Working...
        X