fxDreema

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

    How can I "close all trades when balance-equity=-20%"

    Questions & Answers
    3
    3
    2455
    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.
    • J
      Jakkarin79 last edited by Jakkarin79

      If I have many trades order which consist of profit orders and loss order, I want to close all trades when my equity is less than my balance too much? like I start with 1000 balance then I run EA until sometime my balance is 2000 but my equity is 1600 (-20%), I want to close all to make my balance is 1600 then I run EA again.

      1 Reply Last reply Reply Quote -1
      • fxDreema
        fxDreema last edited by

        It depends. You can compare Balance with Equity or just check the Profit in the Condition block: http://prntscr.com/el61lr If you decide to compare Balance with Equity, use the Adjust field (in More settings). But all this works with the global account equity.

        To check only the profit (or loss) made out of certain groups of trades, then use "Check profit (unrealized)". Those Bucket blocks are yet another way to do the same.

        And after all checks use "Close trades" to close the trades. And of course, by default this block would only close trades made by the same EA. So, if you want to work globally with all trades, then you need to change some of its settings (group number and market)

        1 Reply Last reply Reply Quote 0
        • M
          Miguel 0 last edited by

          Hi,

          i guess i have a similar question...

          So i am running a portfolio of EAs and what normally happens is with large stop losses i have a big increase in the balance and also a big drawdown... So with this in mind, i normally never have more equity than balance.

          What i would like to do is:
          A EA that compares the initial balance and closes all opened positions when Equity +20% (or -20%) compared with the initial Balance (last time that balance=equity with no trades open)

          Can you help me with that please?

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

          Online Users

          S
          N
          S
          E
          H
          E
          S
          A
          T
          A
          A

          20
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors