fxDreema

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

    Use the Balace at 10 pm the day before as variable

    Questions & Answers
    5
    31
    5071
    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.
    • F
      floko125 last edited by

      Hello,
      How is it possible to set the balance at 10 pm from the day before as variable. So I can say the EA has to stop running when Equity is 2% above or below the balance the day before. The EA should work again when the next day begins until equity is at the specified level and so on... please help!

      G 2 Replies Last reply Reply Quote 0
      • G
        GTOAT777 @floko125 last edited by

        @floko125 I’m not sure the specifics but I would think you would have to make your EA stop at 10pm with the time filters, then make a condition or variable that the EA automatically stops once the account has grown by 2%. Is that what you’re looking for?

        1 Reply Last reply Reply Quote 0
        • G
          GTOAT777 @floko125 last edited by

          @floko125 Ok so you would need to do time filter for when your EA will start and stop. Then use a check profit for the 2%

          Hopefully this thread should help too
          https://fxdreema.com/forum/topic/10689/daily-target/2

          1 Reply Last reply Reply Quote 0
          • F
            floko125 last edited by

            0_1614860060774_Screenshot (12).png

            Look, if I set variable _1 as the balace in the night it only should allow trades in the range between - 7% loss and +7% profit and close all trades if it went out of the range. The problem is when I try to backtest it, no trades are executed. If I set conditions with a specified amount like 20000 and 18000 it does work, so there is a problem with the variable. Any ideas?

            G roar 2 Replies Last reply Reply Quote 0
            • G
              GTOAT777 @floko125 last edited by

              @floko125 Hopefully the gurus can help @roar @l-andorrà

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

                @floko125 please make a shared link
                0_1614874814263_09eb1fcd-3cda-4992-b81c-cf61096e0c87-image.png

                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

                F 2 Replies Last reply Reply Quote 0
                • F
                  floko125 @roar last edited by

                  @roar https://fxdreema.com/shared/igkQBQyac

                  1 Reply Last reply Reply Quote 0
                  • F
                    floko125 @roar last edited by

                    @roar At the moment I have to manually set the limits but I want to have this done automatically to have the ability to backtest it.

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

                      @floko125 You need to store the value of balance first by using a variable:

                      0_1614949185589_01.png

                      Once the value is stored, you can use it later to do as many calculations as required.

                      (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
                      • F
                        floko125 last edited by floko125

                        @l-andorrà
                        But how can I make the EA automatically start again when the next day begins, Sir?
                        https://fxdreema.com/shared/G2y8sT1xc

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

                          @floko125 use "once per bar" and set the timeframe to daily. Put that block between "time filter" and "modify variables"

                          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

                          F 1 Reply Last reply Reply Quote 0
                          • R
                            RAHIM 1 last edited by

                            NO Set Stop EA

                            Use No Open Order OR NO Run Code

                            1 Reply Last reply Reply Quote 0
                            • F
                              floko125 @roar last edited by floko125

                              @roar When I do so, it generates the output "constance expected". But even if I use constance instead of variable, the strategy does not generate trades at all when I put the "once per bar" into the EA.

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

                                @floko125 remove check marks:
                                0_1614952113556_eb20bb4a-fc69-47a5-85f0-178f674fd081-image.png

                                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

                                F 1 Reply Last reply Reply Quote 0
                                • F
                                  floko125 @roar last edited by

                                  @roar Still not working...

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    RAHIM 1 last edited by

                                    https://fxdreema.com/shared/h4Q72E1Oc

                                    Inputs Add : Equity

                                    Variables Add :
                                    Mark_Balance
                                    Mark_Balance02
                                    Mark_Balance03
                                    Mark_Equity01
                                    Mark_Equity02

                                    F 1 Reply Last reply Reply Quote 0
                                    • F
                                      floko125 last edited by

                                      @roar @l-andorrà
                                      To specify my problem:
                                      I want my EA to set daily limits for profit and loss. These limits should are a specified percentage of the balance at 22:00 the day before. When the profit or loss limit is reached, all positions shuold be closed and no new positions should be open. But the next day the EA should work normally again until one of the limits are reached, and so on...

                                      1 Reply Last reply Reply Quote 0
                                      • F
                                        floko125 @RAHIM 1 last edited by

                                        @rahim-1
                                        Wow, this is awesome 🙂
                                        I will check if it works, thank you.

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          RAHIM 1 last edited by

                                          ok ......

                                          1 Reply Last reply Reply Quote 0
                                          • F
                                            floko125 last edited by

                                            @rahim-1
                                            It seems not to work in backtest. Maybe it is because I am using MT4?
                                            Also I saw that there were the warning "implicit conversion from number to string" when I compiled it.

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

                                            Online Users

                                            S
                                            O
                                            K
                                            M
                                            M
                                            C

                                            15
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors