fxDreema

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

    Stop losable positions at -1% of Equity

    Questions & Answers
    2
    5
    2357
    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.
    • C
      CPxiom last edited by

      Hello, I am trying to find a way to stop out losable positions at some percentage of equity, lets say 1% or 2 %.
      The concept is for scalability. When equity grows, because of percentage - there is more wiggle room, while keeping everything profitable, as it is only 1 %.
      So, as condition for stop losable positions, I chose Account, and equity... Is Below.... value -2 %. But the problem is that when I try to compile, it says Compilation error, '%' - operand expected.
      How to make this work, thank you.

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

        Try something like this: 0_1542657493970_217ccb1b-377c-41c8-9c61-e31a3c84e5e8-image.png

        Or something like this with using Profit (Equity - Balance)

        C 1 Reply Last reply Reply Quote 1
        • C
          CPxiom @fxDreema last edited by

          @fxdreema WOW, it works! 🙂 Thank you. Genius. Equity vs balance, thanks.

          This, together with the equity based lot size, can be used as a scalable solution for any EA.
          Thank you for this amazing builder.

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

            By the way, Equity and Balance are global, they are the result of the work of all trades, from all EAs (in case of multiple) + the manual trades. If you want to check the profit/loss made from the current EA, there is a block to check the current unrealized profit.

            Also if you need to use Equity or Balance in some input field somewhere, the native MQL4 functions to get those values are AccountEquity() and AccountProfit().

            C 1 Reply Last reply Reply Quote 0
            • C
              CPxiom @fxDreema last edited by

              @fxdreema Thank you. Yes, I thought of this only globally, but it's more wiser regarding money management, to use this per EA/trade. Thank you for considering.

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

              Online Users

              B
              E
              S
              M
              2
              M

              17
              Online

              146.6k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors