fxDreema

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

    How long is a X> active?

    Questions & Answers
    2
    2
    330
    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.
    • M
      mlnaumann last edited by

      I’m trying to figure out the following when using the Once A Day Timer: if a moving average crosses another moving average (5 Day X> 20 Day = BUY) on July 1 then is the trade executed for a profit or loss on July 10? Now on July 11 will the July 1 (5 Day X> 20 Day) execute again, or does a new (5 Day X> 20 Day) have to occur?
      It seems like the July1 condition is still active. Is there a way to only allow for new (5 Day X> 20 Day = BUY) execute only once?
      NoTrade->Condition->OnceADayTimerFilter->Buy

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

        @mlnaumann the EA works tick-by-tick, and it doesnt "remember" anything that happened in earlier tick cycles.
        You'll have to make a more detailed example of this cross problem

        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

        L
        S
        A
        F

        11
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors