fxDreema

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

    using turn on/off blocks

    Questions & Answers
    4
    35
    2285
    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.
    • N
      nasserminaei last edited by

      Hi I have an issue in my EA turning blocks on/off to reset. whenever a trade is closed I want the ea to wait for X amount of time and then automatically restart after X time passed. I have shared the link to the project here. it seems ok to me but it doesn't work. I would appreciate any help on that. thanks
      https://fxdreema.com/shared/2D8alq3md

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

        What isn't doing what you expect?

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

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

          @nasserminaei You can use UNIX time to calculate that minimum time to happen after the last trade was closed. Are you familiar with using UNIX time?

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

          N l'andorrà 3 Replies Last reply Reply Quote 0
          • N
            nasserminaei @jstap last edited by

            @jstap when the trade is closed it opens another trade so instead of 1 trade it opens the 2nd trade after closing the first one and after that the ea stops working ( it doesn't reset after X amount of time)

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

              @l-andorrà that's a good idea. I am familiar with the concept of UNIX time but never used it myself. what block do you recommend to use for that?

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

                You have blocks being turned on/off from the same condition, and because you have off as a lower number, this will activate before the on, meaning blocks will turn off, but almost instantly turn back on:

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

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

                  @jstap said in using turn on/off blocks:

                  e same condition

                  thanks but I didn't get your point exactly. would you please tell me what should I do in order to fix the problem ? is it correct to change it as the screen shot below
                  2.png

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

                    @l-andorrà You can store the UNIX time value of the open trade into a variable. Then add the required time period (in UNIX format) to that variable value and finally you can do something like that:

                    01.png

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

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

                      @l-andorrà thanks. I'll try to check this to see if it can solve the problem

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

                        In your picture turn off - once per bar - turn on so turning off is pointless because you instantly turn it back on

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

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

                          @jstap what i was trying to do was to 'turn off' ---> wait for one bar----> turn on blocks. that's why I have used those sequences. how would you recommend to use blocks in a way that I turn off 'buy now' , 'sell now' blocks for certain amount of time and then turn them on?

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

                            When you say wait 1 bar do you mean x.xx minutes from turning off, or just when the new bar happens? Because this could be a second later?

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

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

                              @jstap I expected when I use the block 'once per bar' it run through the next block 'turn on' blocks when the current timeframe candle closes but it doesn't. I also have used the 'once per minutes block but it didn't work as well

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

                                Period() in once per minute will only work at the opening of a candle, once per bar can work once at any point

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

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

                                  @jstap Still both of them didn't work as expected. any idea on how to solve the problem?

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

                                    You need to add a shared link to see what you have done and say what it's not doing

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

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

                                      @jstap I have done that already. here it is
                                      https://fxdreema.com/shared/2D8alq3md

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

                                        You haven't mate, strip this back and work on 1 problem at a time

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

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

                                          @l-andorrà I have tried to do what you suggested using UNIX time to stop and restart the EA after certain amount of time. I have done some research on how to do that, here is the result but still it doesn't work. I know I am close but can't figure out what's wrong. here is the shared link and I appreciate your help on that. thanks

                                          https://fxdreema.com/shared/hRRJ9m90c

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

                                            @jstap ok, so there is only one problem trying to fix and that is when the order is closed I want to stop the EA from working for a specific time and then restart it automatically. I have changed the method and trying to use UNIX time to do what I want and here is the shared link of how I am trying to achieve but it doesn't work something might be wrong that I can't figure out. thanks
                                            https://fxdreema.com/builder

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

                                            Online Users

                                            N
                                            S
                                            T
                                            A
                                            Y

                                            17
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors