fxDreema

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

    New candle - Open trade issue

    Questions & Answers
    2
    3
    748
    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.
    • G
      GSMtricks last edited by

      I see when a new candle opens (i have same time signal) it wants to open a trade.
      I need to open trade in exactly 1-3 seconds after the candle is opened.
      I create a test project [https://fxdreema.com/shared/Fv0LNg9xc](link url)
      But seems it doesn't work at all.
      Is there any issue to open new trade once candle is opened?

      1 Reply Last reply Reply Quote 1
      • G
        GSMtricks last edited by

        Is there any help on this?

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

          @gsmtricks theres lots of problems with ontimer lately, maybe there is some unknown bug...
          You could do it ontick, and just hope there are ticks during those 1-3 seconds.

          When new candle opens, put the time into a variable with TimeCurrent() function.
          Now you can set condition: TimeCurrent() > variable + 2
          This way you get a 2 second delay from candle open.

          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
          • 1 / 1
          • First post
            Last post

          Online Users

          E
          M
          F
          E
          T
          S
          A
          M
          M
          E
          C
          M
          L
          F
          F

          30
          Online

          146.6k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors