fxDreema

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

    How to use Weekday and Hour filter for EA?

    Questions & Answers
    3
    5
    1174
    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.
    • san
      san last edited by

      I want to use the Weekday & Hour filter for whole EA. Should I use this in On Init or On Timer? or how else I can use.

      Current flow is like below On Tick. Each tick it does this which is not feasible.
      Weekday Filter -> Hour Filter -> Once per bar -> Then program.

      I want to use this Weekday and Hour filter only once.

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

        I use that same structure of blocks at the on tick tab and it works smoothly for several EAs ;).

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

          @isp00rt Thanx. But then for every tick it keeps checking. If timeframe is of 1 min or 5 min..its quite an unnecessary thing to do. Is it smooth in this case?

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

            On Init works 1 time when you start the EA, I don't think that you want that.

            On Timer works on regular periods of time. But on the Tester you can't have such event, because the Tester works on irregular tick events based on generated ticks. Similar to On Tick with "Once per seconds" or something like that.

            If you want to backtest quickly, test the "Open prices only" model.

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

              @fxDreema Thank you. I got it 🙂

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

              Online Users

              A
              E
              R

              9
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors