If choosing weekday filter, does that mean my operation only go once a day?
-
What about loops? What about if position? I am trying to understand the frequency because being in a trade at 1201 am to make 30 pips and have it go backwards against me and then find out the calculation begins at midnight again the next day, isn't good. I am trying to find an answer about time frames and whether it means execution of trades happens according to that or whether it some other way. Please advise, anyone. Thanks I appreciate your help and insight.
-
Your EA runs the code on every new tick (OnTick), over and over again thousands of times every day. Filters just cut the process if the time isn't right.
-
So putting this on an hourly is really no different between putting this on a daily because a tick is a tick? No?
-
@len-1 correct
-
yet, if I put this on once a minute, does that even matter ordo any of those time filters matter. I am trying not to have my loop unnecessarily loop, but it is outside of my local function. I don't know if I can put a constraint on my loop by having the loop just check every minute, and on ontick, I don't know how that is doable.
Ultimately, I am testing stuff out and it takes forever, so I am trying to minimize process. -
@len-1 if you put "once per bar" block on top of your logic tree, the blocks below that block will run at the first tick of each new candle on your chart, but they will not run on 2nd, 3rd, 4th... ticks, until a new candle appears.