Which module put first?
-
Hi!
Which module should I put first? "Once per bar" or "No trade".
Avraham
-
Hi, it depends on your strategy, first can be a lot of blocks ...
-
I mean that "if there is no trade, the EA should check some conditions and open trades". However i want to know in which way it will take less work and less resources. If i put the "once per bar" first, it will work only once per bar? if i put " no trade" first, will it check every tick?
Thanks for your answer! -
And same question about time filter, i.e. "not friday". If i put it first, will the EA stop checking there from beginning of friday to end, or will it check every tick what is the day now.
-
Sorry, i didn't write well.
I mean: " if there is no trade, the EA should check conditions once per bar and open trades" -
On Tick section (event) - first blocks are checked on each tick
when is first block "No trade" - it is checked on each tick ...
when is first block "Once per bar" - it is also checked on each tick ...
these blocks cost small amount of resources and are working as filters ... but other blocks like complicated indicators used in Condition block can cost you more resources ... and when you use "Once per bar" block before them, you can save resources
but it must be your strategy (strategy which will not depends on each tick) ....normally you can do it like this:
No trade
Once per bar
Condition1 (with candle ID=1)
Condition2 (candle ID=1)
Buy/Sellor:
No trade
Condition1 (candle ID=0)
Condition2 (candle ID=0)
Buy/Sellsecond example is using candle ID 0 (current candle) and you should not use Once per bar because you want check each tick (on current candle) ...
-
Thank you Miro!