fxDreema

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

    How to keep a running total of profit/loss once EA has started

    General Discussions
    2
    3
    1165
    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.
    • B
      bradleybear last edited by

      Can anyone give me pointers on how to include a running total of the Profit (or Loss) from several trades once an EA has started, with a view to closing the trading when a specific profit total has been reached (from more than one trade).

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

        https://fxdreema.com/shared/yRzNNgC3b

        This will show profit from current trades. Combine it with loop "for each closed trade" to find total profit.

        Remember to reset the variable totalprofit before beginning new calculations

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        1 Reply Last reply Reply Quote 0
        • B
          bradleybear last edited by

          Thanks for your reply. Much appreciated.

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

          Online Users

          T
          J
          B
          A
          T
          M

          25
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors