How to use Weekday and Hour filter for EA?
-
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.
-
I use that same structure of blocks at the on tick tab and it works smoothly for several EAs ;).
-
@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?
-
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.
-
@fxDreema Thank you. I got it
