fxDreema

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

    Simple question - How to run a condition only once on startup of an EA?

    Questions & Answers
    3
    9
    976
    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.
    • Johann 0
      Johann 0 last edited by Johann 0

      Simple question - How to run a condition only once on startup of an EA?
      I would basically like a condition met once before it's starts trading. It's to make the EA wait as to not have it initiate trades mid trends after it's started up.
      Much appreciated.

      Johannes

      V 1 Reply Last reply Reply Quote 0
      • V
        vonmunchy @Johann 0 last edited by

        @johann-0 the way to limit that is by using once per bar. try relocating the once per bar under the condition

        0_1623433162289_a9538e11-9f88-4a0b-aa3b-a411bf9e2036-image.png

        Know that there are cunning manipulative idiots who only looked for themselves. Who will come to seek what you know and the moment they learn a little they claim to be a master and think they know what they are talking about.

        The perfect example is in this platform named Tipsy Wisdom. From someone who didn't know what constant variable or back testing, rather a letteral noob when it came to algo trading, spent 2 months learning from ME for FREE OF CHARGE and is now self proclaimed teacher with a discord group who will take your money to build EAs claiming it will give you a Edge 🤣

        When his arragonce is beyond tolerant and decided to discard any and all work spent teaching the idiot, he decides to write a sympathy signature claiming the poor sad innocent guy was burnt and played for a fool WHEN HE SHOULD BE THANKFUL IN MAKING PROGRESS WITH ALGORITHM TRADING. 🤷

        Johann 0 1 Reply Last reply Reply Quote 0
        • Johann 0
          Johann 0 @vonmunchy last edited by

          @vonmunchy Thanks for your help, I will give it a go.

          Johannes

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

            @vonmunchy adding run once per bar underneath the condition still continuously run it unfortunately.

            Johannes

            V l'andorrĂ  2 Replies Last reply Reply Quote 0
            • V
              vonmunchy @Johann 0 last edited by

              @johann-0 than i guess you need limit it using a variable. at the start of the of the day give it something like a value of 0. If trade adjust the value and set to default at start of new day

              Know that there are cunning manipulative idiots who only looked for themselves. Who will come to seek what you know and the moment they learn a little they claim to be a master and think they know what they are talking about.

              The perfect example is in this platform named Tipsy Wisdom. From someone who didn't know what constant variable or back testing, rather a letteral noob when it came to algo trading, spent 2 months learning from ME for FREE OF CHARGE and is now self proclaimed teacher with a discord group who will take your money to build EAs claiming it will give you a Edge 🤣

              When his arragonce is beyond tolerant and decided to discard any and all work spent teaching the idiot, he decides to write a sympathy signature claiming the poor sad innocent guy was burnt and played for a fool WHEN HE SHOULD BE THANKFUL IN MAKING PROGRESS WITH ALGORITHM TRADING. 🤷

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

                @johann-0 The most efficient way to execute anything just once and before anything else is by using the 'on init' tab. Put that condition there and it will be executed just once and never again as soon as the EA is hovered on the chart.

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

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

                  @l-andorrĂ  Thank you. Will give it a go. So much still to learn.

                  Johannes

                  1 Reply Last reply Reply Quote 0
                  • Johann 0
                    Johann 0 @vonmunchy last edited by

                    @vonmunchy What I've done as a temporary fix was use set blocks on and off so it runs once then disables the conditions after. Will give @l-andorrĂ  's advice a go. Thnx for your help btw.

                    Johannes

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

                      @johann-0 You're welcome.

                      (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

                      D
                      F
                      K
                      C
                      E
                      M
                      F
                      T

                      17
                      Online

                      146.6k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors