fxDreema

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

    EA is not working the same in backs testing and demo account in MT5

    Questions & Answers
    3
    11
    2065
    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.
    • S
      sosel last edited by

      LINK OF PROJECT:
      https://fxdreema.com/shared/g9hl8o6zd

      I have a basic EA that opens a trade with a button, can open multiple trades, the EA is checking each trade to see if it is X pips away from open price, if it is, put SL to BE, close partial 50% of the trades and it set a flag "parcial", with this flag another group of blocks is enabled that is checking if a condition is fulfilled and it closes all the trades that are in BE.
      the problem is that in back testing is working as expected, if i open trades the logic starts to work till trade
      is in X pips as "pips aways" block is requiring and close partial and do the BE, but same block, same logic in demo account once I open a trade it executes right away the BE and closes the trade
      0_1620353712162_2c107064-390f-43a8-a7df-0216fdd47478-image.png

      BACKTESTING:
      it only opens the trade but it doesn't do the BE and the close
      0_1620353956580_a4fa2770-b6e1-443b-851c-a4f618ce3178-image.png
      0_1620353999816_78941ae0-fe63-4d9a-a89f-7ddd8e194056-image.png

      DEMO ACCOUNT:

      you can see in the journal that open a trade in .04 and then close partial the 50%
      0_1620354180900_a12d580d-1923-496b-a1b0-5d78985b8a87-image.png

      0_1620354255060_dd14a18b-231f-4430-bdf5-9cdcb33be4d9-image.png

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

        @sosel I replied to your previous thread. Please don't duplicate threads.

        (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
        • S
          sosel last edited by

          sorry, i just saw the answer, I want to explain in more detail my problem I won't do it again, thanks so much I will try moving BE block, but is there a reason why it worked in backtesting and not in demo account?

          1 Reply Last reply Reply Quote 0
          • S
            sdewoli91 last edited by

            Hi can any one please help me about EA building for arrow indicator,, like buy and sell arrow,

            1 Reply Last reply Reply Quote 0
            • S
              sosel last edited by

              i modify the EA to this:
              0_1620398144250_a3d27cb2-3390-47e4-bd62-faef9ad6c225-image.png

              replacing BE block for modifying stops to only use block of the same type, but the problem is the same, once i open a trade it executes all the blocks inside of the loop and i want to stop the loop if the trade is not X pips away of the open price even i tried this to try to break the loop but didn't work :
              0_1620398429034_3bb63867-d1a0-4d21-8963-cf6ff0ef89c9-image.png

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

                @sosel That 'if position' block on top is unnecessary. Block 142 is already searching for all open trades. Additionally I don't see any reason to break the loop twice. Can you please share the new link project?

                (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.

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

                  @l-andorrà I modified it after this picture as the example in the other question, this is my last iteration, but still happening the same, can you please try to download and run it in the demo account, just open a trade with the button "comprar" instantly it opens the trade and close partially, seem like runs everything inside of the loop "for each", it doesn't take the pipis away block, it works in backtesting but no in demo, even I tried to break and skip the loop for next iteration with the block loop(next) attached to the yellow button of pipis away block to skip the trades that are not X pips away from open price but it didn't work

                  0_1620626807709_c71771a1-4100-4101-8c9c-902837f29c25-image.png

                  here is the link:
                  https://fxdreema.com/shared/8TxJzIIbb

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

                    @sosel I recommend you to move the tree block headed by block 53 to the 'on chart' tab. I didn't notice it is on the 'on tick' tab when they work on buttons.

                    (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
                    • S
                      sosel last edited by

                      I just did it but the result is the same, I'm thinking is a bug with "for each" or "pips away"or I don't know where, I copied the same blocks literally even has the same name in MT4 hehe and is working fine in MT4

                      0_1620760024495_0aca9335-7f9d-419e-9ad5-98a9c2fdd55a-image.png

                      0_1620757837354_b47b5127-67ea-4e82-b023-ef1d6f81c487-image.png

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

                        @sosel Can you please share the link to the project?

                        (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
                        • S
                          sosel last edited by

                          @l-andorrà i changed the program to MT4, is working as expected

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

                          Online Users

                          V
                          O
                          J
                          B

                          17
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors