fxDreema

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

    Daily Profit and Loss Target close logic

    Questions & Answers
    3
    11
    2516
    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.
    • A
      Afton last edited by

      Hi there,
      I'm trying to create a EA to check the closed trades profit or loss along with open trades profit/loss for the trades between the day start and end hour. If the profit or loss reached the specified limit then close the open trades and stop the EA for the day by delay and restart from the trade start hour.

      Here below the share link for this test

      https://fxdreema.com/shared/gbg8inrWd

      I tried this in placing it 'On Trade' and it is not working . Also tried by placing it on tick and still not working though profit or loss reached the limit.

      Appreciate your help in resolving this. Please note i'm not a techie and new to the EA world.

      Thanks to all the posts in this forum and i'm learning a lot from this fxDreema family.

      Thanks
      KayGee

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

        @kvinvest You need to create a few variables catching all open and closed trades today and then do this:

        https://fxdreema.com/shared/x75d43Fwc

        For the EA to work correctly you need to select 'today' on your MT4's History tab. Otherwise the EA will count ALL closed trades there since you created the account.

        (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
        • A
          Afton last edited by

          Thanks a lot. let me try this out.
          Is there a way to include a logic todays date specific trades , just in case if the history is left without todays date ?

          Thanks

          1 Reply Last reply Reply Quote 0
          • A
            Afton last edited by

            HI there
            I tried you suggestion but it is not working.
            Here is the project link
            https://fxdreema.com/shared/PHLsqZc6c

            i tried with Pips as well as Money - both not working.
            The profit target in the parameter i defined positive value example: 200
            The loss limit i set that in negative : -300

            Appreciate if you could look into and let me know where my mistake is ?

            THanks

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

              @kvinvest You need to disconnect block called 'Gain Loss calc' from its current position. It need to be separated from the other two trees and then having its own tree. On the other hand, I don't fully understand the logic behind block called 'Enable daily target'. What is it supposed to do?

              (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
              • A
                Afton last edited by

                Hi,
                Enable daily target block is a feature to enable or disable to close all trades if the Day profit or Loss limit is achieved and then delay the EA not to open any new trades.

                Idea behind this is EA to run from a defined start time to end time. During this time this function will check how much gain or loss (open and closed trades for the day) then stop the EA.

                If you can suggest any other way would be wonderful !

                Thanks

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

                  @kvinvest This is a way to stop all trades once target (positive or negative) is reached. Maybe it helps:

                  https://fxdreema.com/shared/x75d43Fwc

                  (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
                  • A
                    Afton last edited by

                    Thanks.... you suggested the same before and it looks like i made some mistake while selecting the variable. Fixed and shall retry in the market next week and confirm.

                    Appreciate your support

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

                      @kvinvest You're welcome.

                      (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
                      • A
                        Afton last edited by

                        Hello there... I created as you suggested and it is working fine...

                        Thanks

                        1 Reply Last reply Reply Quote 0
                        • J
                          jazzybhai last edited by

                          @l-andorrà Can we make that same as of Equity Percent Gain....?

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

                          Online Users

                          E
                          J
                          2
                          C
                          R
                          Q
                          N
                          E

                          14
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors