Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

One Trade Per Side

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

    One Trade Per Side

    I would like to include a condition for a strategy to take one trade per side. How can I do this? Thanks.

    #2
    Hello, thanks for writing in.

    A strategy can only be long or short, not both at the same time. Is this your question?

    Comment


      #3
      No. Want the strategy to take one long and one short. Not to continue taking trades after one trade is executed. One trade per side. Thanks.

      Comment


        #4
        Hello, thanks for the clarification. You can use boolean variables to control if a condition should trigger or not. E.g. set up two boolean variables, one for the first long position and one for the first short position, then set this so true once the strategy triggers EnterLong/EnterShort. I attached my script for reference.

        Attached Files

        Comment


          #5
          Thank you for the help.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          71 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          143 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          76 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          47 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          51 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X