fxDreema

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

    Pause for a tick

    Questions & Answers
    2
    5
    180
    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
      Tulefi last edited by

      I have developed an EA that works on M1 chart but I need it to pause for at least 1 tick after the new M1 period starts before it works through the trade opening conditions. Any suggestions to do this will be much appreciated.

      1 Reply Last reply Reply Quote 0
      • T
        Tulefi last edited by

        The reason for this is that I have a condition that is meant to compare the previous period low price with the low price of the previous 10 periods starting with the previous plus 1 period (candle ID 2). However, in backtesting the EA sometimes is behind and uses the 10 periods back starting with candle ID 3.

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

          You can just use the seconds filter block, allow seconds from 2 to 60... But its weird that the EA sometimes uses ID 3 and sometimes ID 2, the real problem might be elsewhere

          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

          1 Reply Last reply Reply Quote 0
          • T
            Tulefi last edited by

            Yes I am not sure why it's doing this.

            1 Reply Last reply Reply Quote 0
            • T
              Tulefi last edited by

              @roar do you know if the seconds filter starts at 0? So if I filter 1 to 60 will the EA start at 1 second past the minute? I am also wondering if every n ticks could work. Basically I want the EA to wait for one tick to happen in the new period before continuuing with the calculations for opening a trade.

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

              Online Users

              C
              K
              A
              D

              15
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors