fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    How to exit a basket of trades when the sum of the winners is double the sum of the losers?

    Questions & Answers
    1
    4
    1145
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      drewinbrissie last edited by

      Hi all, I'm trying to build the logic so that when I have a basket of trades running, all are closed when the sum of all the winning trades is double the size of the sum of the losing trades. Any ideas how I can do this?

      Thanks Drew

      D 1 Reply Last reply Reply Quote 0
      • D
        drewinbrissie @drewinbrissie last edited by

        To do this I've worked out I can use the Condition block comparing the profit of 2 buckets, but can't work out the code for the "Advanced filter" to select trades that are currently in profit (or not) for each of the buckets.

        Thanks Drew

        D 1 Reply Last reply Reply Quote 0
        • D
          drewinbrissie @drewinbrissie last edited by

          This is how far I've got. Not sure what to put in the advanced filter
          0_1500087839858_upload-c8882240-dcdb-4bdb-8317-b3d8fc260249

          D 1 Reply Last reply Reply Quote 0
          • D
            drewinbrissie @drewinbrissie last edited by

            Got it worked out...
            0_1500089832925_upload-585f1e5b-9d97-44b3-a423-a80736ff8ba9

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            Online Users

            K
            A
            D
            S
            G

            13
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors