fxDreema

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

    Total Profit from trades in a day

    Questions & Answers
    2
    3
    1291
    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.
    • U
      uchiha last edited by

      Hello

      I want to stop trading when the total profit of all trades taken in a day is 25% of the starting equity.

      e.g Trade begins at 8.am , balance is $100, after 3 trades (trade 1 = -$10, trade 2 = $30, trade 3 = $5) total profit = $25 therefore the EA stops trading

      Next day balance is $125 ...e.t.c

      Does this work?

      https://fxdreema.com/shared/UYCLyHtPb

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

        This will not work, the chance is to put 5 trades in a row 🙂

        So you want to get the equity when a new day comes. Then I will suggest "Once a day" -> Get that equity in a variable + calculations if needed
        Then, at a separate group of blocks you can compare that value with...

        1. In Condition (Account -> Equity) you can get the current global equity, the one you can see in MetaTrader
        2. With block "Check current unrealized profit" you can get the profit from a group of running trades. This is not the global profit, because you can have other trades outside this EA.
        3. Something else, like the total profit from all trades closed today + the currently running ones. Well, this will require some more blocks 🙂
        1 Reply Last reply Reply Quote 0
        • U
          uchiha last edited by

          Many thanks for the tips

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

          Online Users

          J
          F
          G
          O
          Z
          M
          W
          N
          G

          17
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors