fxDreema

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

    Force EA to stop working when reaches profit per day !!!!!

    Questions & Answers
    2
    2
    622
    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.
    • P
      PauloSouza last edited by

      Hello guys, can someone help me?
      I want to create a Scalper EA, and trying to find a way to make the EA stop working when reaches profit or loss of the day.

      Any ideas?

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

        Hi!

        Lets store the profit value (in pips) to a variable called dailyprofit

        -> Once per daily bar, set dailyprofit as 0
        -> When trade is closed, add result to dailyprofit
        -> Before opening new trades, check the P/L limits
        https://fxdreema.com/shared/6IcQU502d

        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
        • 1 / 1
        • First post
          Last post

        Online Users

        V
        O
        J
        B

        15
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors