fxDreema

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

    Range of bars for a condition to be met

    Questions & Answers
    2
    2
    506
    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
      es3tf last edited by

      Hello. I want to make that, after a condition has been met, the next condition must be met in the next 5 bars.

      For example: if EMA 20 cross over EMA 10 and MACD´s value is up to 0 in the same bar, in the next 5 bars MACD´s value will be must cross down 0.

      Someone knows how can I do it? I have tried with a minute timer, but does not seem to work as I want.

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        try to look through my replies and find example about "flags" or "counters, candle counter, etc" ... I am not sure where I was replied about it but it was more times about the same question 😄

        Between trading and gambling is a very small gap, be careful.

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

        Online Users

        E
        C
        B

        31
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors