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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          90 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          137 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          120 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          72 views
          0 likes
          Last Post PaulMohn  
          Working...
          X