fxDreema

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

    Open Trade at candle open and close the trade at candle close

    Questions & Answers
    7
    10
    5365
    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.
    • Pipperoni
      Pipperoni last edited by Pipperoni

      Here I want to provide an answer for a common question on Fxdreema:
      How to open a trade at Candle Open ...and close it at candle close time.
      0_1503845557625_Open at candle open.jpg
      I suggest to do it like this (example for 5MIN chart ONLY) : shared example
      But if somebody knows better ...

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

        "Once per tick" is not needed.

        Ok, but still, the EA will receive ticks and only do something because of that. If there are no ticks, nothing will happen. The problem is that ticks does not come in regular periods of time, there could be period of let's say few seconds without ticks, and why not more than a minute? So you can easily miss those "Time == 10:25" moments.

        We can detect the closing of a candle accurately if we use that "Timer" event. But again, we will have the same problems with the ticks in the backtester, because the Timer event doesn't work like in the real life when backtesing. So I think it's much simple to just do everything in the beginning of new candles.

        1 Reply Last reply Reply Quote 0
        • Hasan Unsal
          Hasan Unsal last edited by

          Hi There,

          I have tried to put a timer to get candle close but on back test this does not trigger. is there a way around this?

          What I am trying to do. I want to open a trade at the start of the 1 min candle and then close (59 seconds) and then open a trade on the next candle. can this be done?

          many thanks

          cut your losses short, let your profits run

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

            Time is not working on bakctesting. That means all blocks on the 'On timer tab' will never be executed when backtesting. Why do you exactly need to close it after 59 s and not simply doing it on the next open 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
            • Johnny_PRD
              Johnny_PRD last edited by Johnny_PRD

              I have similar issue @l-andorrà , and I think your answer can also be a solution for me: if I cannot close a position (MT5) after 5 minutes, then I can close my position when candle 6 is open, or better when candle 4 is closed (timeframe is M1, 1 position is open 5 minutes).
              How should I imposed such type of condition (doesn't matter win/lost position)?
              I waiting with higher interest feedback.

              Mess with the best, die like the rest !

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

                I'm not sure I fully understand you. What do you exactly need?

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

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

                  @l-andorrà , what I want to do is to close my position without take into account win or loss position, but is a must for me after a specific time (or imposed time), in my case 5M. But I can change to 10M, 15M, ...
                  I see that exist some possibility to close my position using candles, but I don't know how.
                  I can close trade when 4M candle is close (4,59 min), or to close trade when 6M candle is open.
                  Please let me know if you need other information.
                  Thank you for support.

                  Mess with the best, die like the rest !

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

                    I see you opened another thread for this same issue. Solution will be there. 😉

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

                      You can do than by set the close trade for example
                      15M Bar open trade at open candle and set close trade block but by time after 15M
                      But my question that how could you detect the candle if it Bulls or Bears candle?

                      Mohammedaldahas

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

                        @mohammedaldahas time now==candle time is candle open, if you are talking about candle 1 then the bull/bear signal block, as for current candle at open it is neither, can be either during the formation, the same block can be used to detect this.

                        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! 😊

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

                        Online Users

                        R
                        F
                        ح
                        H
                        J
                        P
                        B
                        B
                        S

                        15
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors