fxDreema

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

    What is executed first, "On Tick" code or "On Trade" code when trade happens?

    Questions & Answers
    5
    6
    683
    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.
    • P
      Prot82 last edited by

      Hi Guys,

      What is executed first, "On Tick" code or "On Trade" code when trade happens?

      For example, if the same variable is changed by some code in the "On Tick" tab and also in the "On Trade" tab and some trade happened in the market;

      So, 2 things has happened in one market tick, "On Tick" has triggered by market tick and "On Trade" has triggered by trade.

      In that situation, both tabs ("On Tick" and "On Trade") will change variable, which one will be first?

      TipsyWisdom l'andorrà 2 Replies Last reply Reply Quote 0
      • TipsyWisdom
        TipsyWisdom @Prot82 last edited by

        @prot82 said in What is executed first, "On Tick" code or "On Trade" code when trade happens?:

        Hi Guys,

        What is executed first, "On Tick" code or "On Trade" code when trade happens?

        For example, if the same variable is changed by some code in the "On Tick" tab and also in the "On Trade" tab and some trade happened in the market;

        So, 2 things has happened in one market tick, "On Tick" has triggered by market tick and "On Trade" has triggered by trade.

        In that situation, both tabs ("On Tick" and "On Trade") will change variable, which one will be first?

        Why dont you tell us?

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

          one way to do it, modify something with a "Current time" timestamp.

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

            @prot82 I asked that same question to the admin some years ago and he replied in a very technical way. He's a programer and tried to make understand how it works. However, I wasn't and I'm not a progarmmer so I requested a white/black answer instead. He replied that it depends. Some times 'on tick' execution will happen first whereas other times 'on trade' will instead. Certainly not the answer that I needed, but at least it was hones. If you are a programmer you can ask him directly. Maybe you will understand the technical answer.

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

              The number of each block might determine what goes first.
              (At least that's how it works under the same tab)
              You can edit those.

              screenshot-fxdreema_com-2024_10_15-16_42_17.jpeg

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

                Although that is true the number of the first block in a tree affects which tree works first, meaning if the tree starts with 1 and the following connected blocks are a high number they will activate before the tree that starts with 2 is. I think on every tick these numbers are checked and activated, so as @Bogdaiki has said the tab matters less than the numbers.

                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

                A
                F
                F
                E
                A
                E
                M
                F
                K

                22
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors