fxDreema

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

    "Check Age" for Pending Order based on Candle Time

    Questions & Answers
    3
    7
    1595
    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.
    • E
      eklonsousa last edited by

      Hi!

      I want to check the age of a pending order and delete it after X candles for the Y time frame.

      The block just allow to use it as time format.

      And under the same subject : How set the expiration of a pending order after X candles?

      these are just two different ways to do the same thing. But for some brokers, I believe that we must use "check age" block instead "expiration" .

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

        You can try this, but willhave to adapt it to your project. I don't know how many other conditions should be taken into account.

        https://fxdreema.com/shared/o5kroe5ee

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

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

          Hi, @l-andorrà !

          Thanks for your reply!

          This is an interesting way to control the number of candle and I'm not aware about the "variables" and "constants" as you used in the blocks:

          alt text

          How you guys call it? I'll search in the forum for more details.

          roar 1 Reply Last reply Reply Quote 0
          • roar
            roar @eklonsousa last edited by roar

            @eklonsousa Counting the bars is very useful trick, but it gets messy if you have multiple orders.
            To get x candles expiration instead of x time expiration, I would just convert the desired bars to a time value , all the requirements are there.
            https://docs.mql4.com/chart_operations/periodwindow

            Closed market will be a problem, though.

            Need small help? Tag me in your post
            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

            E 1 Reply Last reply Reply Quote 0
            • E
              eklonsousa @roar last edited by eklonsousa

              @roar Hmm.. You are right.

              I'm testing my EA with the "Candle Expiration" method (I've used some similar as @l-andorrà posted) and I'm getting different and worse results.

              But there is some markets as brazillian stock market that do not allow the use of "time expiration" . I'm not sure how they manage pending orders, but the "candle expiration" method can solve it.

              I'll keep testing.

              Thanks for your reply!

              roar 1 Reply Last reply Reply Quote 0
              • roar
                roar @eklonsousa last edited by roar

                @eklonsousa Okay, thats interesting... Can you check the order age later on, with the pink block?

                0_1563798977764_be90bf0e-bc91-47ae-9072-d74e8899dde5-image.png

                Need small help? Tag me in your post
                Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                E 1 Reply Last reply Reply Quote 0
                • E
                  eklonsousa @roar last edited by

                  @roar I've found this way, but I didn't tested yet as it works like the traditional expiration time from pending order.

                  I'll test it and compare. Let's see how it will behave...

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

                  Online Users

                  S
                  A
                  R
                  B
                  N
                  M
                  A
                  T
                  V
                  M
                  A
                  A
                  R
                  S

                  27
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors