fxDreema

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

    Delay function???

    Questions & Answers
    2
    5
    1729
    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.
    • J
      Jnmr1 last edited by

      I am trying to use the delay function in an mql4 EA, so it will wait X amount of time between when it closes an order and when it opens the next one. I have tried placing it between the "AND" block and the BUY/SELL blocks (this did not work). I have tried placing it on the orange output of the "no trade/order exists" block (this did not work). also this is all on the on Tick page. any ideas on what I'm doing wrong?

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

        This works on live only, but not in backtest. At least this is the behaviour of the native MQL4 "Sleep()" function, otherwise .dll function can be used to create real delay, and this can be useful... I will check what I can do about this now.

        1 Reply Last reply Reply Quote 0
        • J
          Jnmr1 last edited by

          thank you, much appreciated

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

            Done... but in web version (local version later)

            1 Reply Last reply Reply Quote 0
            • J
              Jnmr1 last edited by

              thank you. this helps alot

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

              Online Users

              E
              A
              S
              O
              S
              A
              N
              J
              S
              K
              A

              20
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors