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 kinfxhk, 07-14-2026, 09:39 AM
          0 responses
          18 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 10:18 AM
          0 responses
          60 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 09:50 AM
          0 responses
          43 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 07:21 AM
          0 responses
          47 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-11-2026, 02:11 AM
          0 responses
          38 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X