fxDreema

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

    Close position when next candle close [SOLVED]

    Questions & Answers
    4
    13
    2391
    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
      felixnr last edited by felixnr

      Hi all!
      I'm trying to make my first EA with fxdreema and I have a doubt.
      My EA is very simple: if a condition is true (candle size) when a candle close, I will open a position on the opening of the new candle, and I will close it when this new candle close. But when I test it in MT4, every time the condition is true, the position opens and closes at the same time and I lose the commissions... Anyone could help me? Thanks in advance.
      https://fxdreema.com/shared/wyDwe6Axd

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

        @felixnr Is this the whole EA? I don't see any cinditions for closing a trade so they shouldn't be closed except if hitting a SL.

        (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
          felixnr last edited by

          Hi @l-andorrà, the condition to close is on the TP. I put it on the close of the next candle. Can I do that? Thanks for your response.

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

            @felixnr Ok. The problem is that you selected the current price as your TP. This is why it is closed as soon as it opens. You shoyld select another TP level different from current price.

            (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
              felixnr last edited by

              Hi @l-andorrà. Thank you again for your help. I have selected "Candle Close" as parameter. Why take the current price as TP?

              jstap 1 Reply Last reply Reply Quote 0
              • jstap
                jstap @felixnr last edited by

                @felixnr Candle close on 0 happens as candle becomes 1, but candle close on 1 has already happened until it becomes 2.

                Learn fxDreema Without the Wait!

                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                Don’t miss out

                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                Enjoy! 😊

                F 1 Reply Last reply Reply Quote 0
                • F
                  felixnr @jstap last edited by

                  @jstap Than you in advance. I understand your explanation, but I don't know why am I wrong... If conditions on candle 1 are true, I'll buy on the open of candle 0, so, I want to sell when this candle close (or candle -1 opens). How would you do it?

                  jstap 1 Reply Last reply Reply Quote 0
                  • jstap
                    jstap @felixnr last edited by

                    @felixnr If your conditions check candle 1, then as a new 0 opens candle 1 is checked.

                    Learn fxDreema Without the Wait!

                    My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                    The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                    Don’t miss out

                    Click here➡️ https://mybook.to/fxDreema to get your copy today!

                    Enjoy! 😊

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      felixnr @jstap last edited by

                      @l-andorrà @jstap It's what I am doing... isn't it? I checked candle 1, if true, I open order on 0. It works...
                      The part that produces me a headache is that I want to close this position when candle 0 close, but it closes as soon as the order is on market...

                      jstap 1 Reply Last reply Reply Quote 0
                      • jstap
                        jstap @felixnr last edited by

                        @felixnr I would set the current timeframe to a variable, then use this in the expiration field.

                        0_1642510982464_1b41a87c-2c69-4364-93ce-a7a8b100b313-image.png

                        Learn fxDreema Without the Wait!

                        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                        Don’t miss out

                        Click here➡️ https://mybook.to/fxDreema to get your copy today!

                        Enjoy! 😊

                        F 1 Reply Last reply Reply Quote 0
                        • F
                          felixnr @jstap last edited by

                          @jstap @l-andorrà SOLVED.
                          After reading a reply on another post (thank you @jerkha) I just modified the structure and now the EA makes what I expected!
                          Thank you all for your support.

                          I post the final structure in case it's usefull for anyone around here:
                          https://fxdreema.com/shared/nLUoK22Ed

                          l'andorrà jerkha 2 Replies Last reply Reply Quote 1
                          • l'andorrà
                            l'andorrà @felixnr last edited by

                            @felixnr Thank you for sharing.

                            (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
                            • jerkha
                              jerkha @felixnr last edited by

                              @felixnr You're welcome. Glad I could help!

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

                              Online Users

                              A
                              M
                              R
                              G
                              T
                              G
                              Y
                              C
                              S
                              S
                              S
                              A

                              24
                              Online

                              146.7k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors