Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Different strategies on the same instrument and the same timeframe

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

    Different strategies on the same instrument and the same timeframe

    Hi, all!

    I read the post regarding different strategies on the same instrument https://forum.ninjatrader.com/forum/...4xNzAyMjMyMjIx

    But, I still can't understand, If I have tags for each of the order in the strategy, like:
    1. Strategy1 with long orders with tag RegularLong1
    2. Strategy2 with long orders with tag RegularLong2

    and then I exit position with the specific tag orders which I mentioned ablove, like ExitLong(0, 1, RegularLong1), it'll not conflict with strategy2?

    And one more question, if in Strategy2 I have open short posiiton with specific tag for order it will not help, because of conflict within 1 account for the same instrument?

    Thank you!

    #2
    Hello mrboltuae,

    Because strategies cannot communicate they can become out of sync with the account position when you use multiple strategies. In general it is not suggested to run two strategies on the same instrument but instead combine them into one so the strategy knows the total position. If your other strategy enters short while the first strategy is long that would make the account flat but each strategy would still think its in a position which would affect how it trades.

    Comment


      #3
      Ok, with short it's clear. But if I have only long strategies, but different one, is it possible to run it independently with order tags as I mentioned?

      Comment


        #4
        If both strategies are always taking positions in the same direction,
        then yes, both can run in the same account at the same time with
        no issues whatsoever.

        Comment


          #5
          Originally posted by bltdavid View Post
          If both strategies are always taking positions in the same direction,
          then yes, both can run in the same account at the same time with
          no issues whatsoever.
          And I need to tag such orders in different strategies, or no need to do it?

          Comment


            #6
            As far as I remember, you can do whatever you like.

            Each strategy is independent of any other, and this
            includes 'tags' for order management -- everything
            is maintained separately, even when two different
            strategies using same tag names are running at the
            same time -- it doesn't matter, they will be kept
            separate.

            Support can confirm this.

            Adding tags to your orders, IMHO, is always
            meant as an aid for the human developer, if you
            don't want to use them, it's up to you -- the idea
            is that some things are made easier with tags.

            -=o=-

            However, given what you're asking,
            I don't think I ever did that -- I mean, I never
            went Commando -- I used the same style of tag
            names in all my strategies.

            ​I always used unique tags -- such as using an 'L'
            or 'S' prefix followed by CurrentBar -- this allowed
            easy study of the individual trades in the trade
            performance output, esp when backtesting.

            Given the above entry order name, I appended
            'stp' or 'tgt' suffixes for stop and profit target
            orders.

            Multiple target orders got suffixes tgt1, tgt2, etc.

            Works great.

            Comment


              #7
              Thanks, appreciate it!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Today, 05:17 AM
              0 responses
              52 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              130 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              70 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              44 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              49 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X