fxDreema

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

    Add a wait one candle before activating

    Questions & Answers
    2
    2
    63
    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.
    • S
      steve019 last edited by steve019

      Hi,
      I would like to have my EA wait one candle (15min.) before restarting. Now it closes a trade and immediately opens another because the conditions are still met. So I would like to give it time to move before it opens another position. Ideally add someting that will open another trade only after the price moves a certain pips in the opposite direction. Here is a screen shot of my primitive EA
      9ef8956a-7c16-4b22-a982-acf6b28d0ee7-image.png

      1 Reply Last reply Reply Quote 0
      • S
        sktsec last edited by

        Set up a separate branch:
        once per bar -> Counter pass 1 time -> modify variable (say, bool startup_begin = true)
        At the top of your main branch, add a condition for the above variable

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

        Online Users

        K
        C
        H
        S
        E
        E

        14
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors