fxDreema

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

    Which code block will execute first ?.

    Questions & Answers
    4
    9
    265
    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.
    • T
      tharindu999 last edited by

      Case -:

      there is a EA for scalping. Every 30s it checks order count to ensure there is no additional orders have been placed. which means OnTimer event triggers for every 30s.

      Time - 01:23:00

      If a OnTick event has some series of blocks to execute right at 01:23:00 and If OnTimer event also triggered at the same time, which event will execute at first place ?.

      is it OnTimer event or OnTick event ?.

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

        This is an interesting question I'm also interested in. My guess is that 'on timer' goes first, but I'm not a programmer, so I cannot be sure. Any help here would definitely be appreciated.

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

          yup brother.

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

            @l-andorrà
            I also guess onTimer(), because onClick() need a first tick after the specific time.

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

              Thank chat GPT: OnTimer Event This event is triggered at regular intervals based on the timer set by the EventSetTimer function. It allows you to perform tasks at specified time intervals, regardless of market activity. If the timer interval matches with the time of an incoming tick, the OnTimer event will still execute based on its own interval.

              OnTick Event: This event is triggered every time a new tick (price change) occurs in the market for the selected symbol. It's directly tied to market activity. If there's a match between the time of a new tick and the time set for the OnTimer event, the OnTick event will take precedence because it's triggered by the arrival of market data.

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

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

                So, the winner is OnTick....

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

                  looks like it, but the chance of it happening at the same time is small

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

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

                    @jstap true...

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

                      @jstap Very interesting. Thank you.

                      (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
                      • 1 / 1
                      • First post
                        Last post

                      Online Users

                      M
                      A
                      M
                      W
                      E
                      G
                      K
                      E
                      A
                      S

                      19
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors