fxDreema

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

    Stop Trading After Profit Reached For The Day (or Loss)

    Questions & Answers
    6
    8
    4207
    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.
    • raveon
      raveon last edited by

      This should be easy and I've tried many. many, methods that O have read here in the forum and I can't get any of them to work consistently.

      I am using MT4 and Strategy Tester and possibly the tester is the issue.

      During a trading session by the EA many trades might be taken.

      If the TOTAL profit (or LOSS) from all these trades is $100 I would like the EA to stop trading.

      Should be easy but not using the built-in Blocks that I can see.

      The first likely candidate is "Check Profit (average)" as it gives the option of "Running Trades Only" OR "Running & HISTORY trades".

      Perhaps I misunderstand what "HISTORY" means but I can't get that to work. I assume it means all trades in this trading session with the EA but maybe not.

      If just use the "Running Trades Only"... no problem but that doesn't help at all and all of the examples I found in the Forum were NOT using the "Running & HISTORY trades" selection.

      I also tried the pink block "check profit" but that also appears to be for running trades.

      I also tried using a "Condition" and the "Account" and "Value" selections also to no avail.

      I'm sure this can be done using variables and if somebody has nice reliable code block I would appreciate some guidance but (unless I misunderstand its purpose) the code block "Check Profit (average)" should work.

      Maybe not in MT4 Strategy Tester?

      Thanks for any help.... love fxDreema... it really is revolutionary.

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

        Probably your MT4 platfom is configured to show ALL closed trades since your account it was opened. That way your EA will never calculate profit correctly. You need to configure your MT4 to show your daily results only. That way tomorrow the platform results box will be empty and ready for a new run of trades.

        raveon 1 Reply Last reply Reply Quote 0
        • raveon
          raveon @isp00rt last edited by

          @isp00rt Thank You. But we are talking about the Strategy Tester. It should reset the balance on each new run. In fact, I can display the balance on the chart and it starts at $10,000 each time.

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

            Anybody? Would appreciate any solutions that work in Strategy Tester MT4

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

              Hi!

              This is how I would go about it:
              0_1537291249833_ea2c827b-b3e6-4ebe-abf1-7e8924ebfef6-image.png
              https://fxdreema.com/shared/Hmmb4zOfb

              Uses 1 variable that keeps track of your daily equity, and 2 constants to set the targets for daily profit and loss

              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 1
              • fxDreema
                fxDreema last edited by

                Check profit (period of time)

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

                  @fxdreema alt text

                  Please check---- Have been trying simne past few weeks : https://fxdreema.com/shared/Kc2S2Ueob

                  l'andorrà 1 Reply Last reply Reply Quote 0
                  • l'andorrà
                    l'andorrà @wadz91 last edited by

                    @wadz91 I replied to your thread with this same question.

                    (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                    (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                    (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

                    Online Users

                    D
                    S
                    G

                    19
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors