Once per bar , Once per day
-
Hi all,
Just like to understand more about these 2 blocks as per title
Correct me if i am wrong

Once per bar - the EA will go into a loop every bar the current timeframe the chart is at, to check the trade condition (example MA1 > MA2) and execute orders accordingly
Once per day - EA will go into loop every day once only to see if it met the trade condition as above
So next question is for Once per day - at exactly what time the EA will begins it loop? 12 midnight by default?
Thank you.
-
@haliloo They both just mean that it will only allow passage to your next block once per bar and once daily, respectively. As for the time on the daily, I imagine if it allows passage, the 24 hour timer will start right then.
-
There are no loops. The "loop" is that On Tick event where the blocks are, so they run on every tick. Those blocks are something like filters - you run them 10 times, they only pass 1 time (per bar, per day)
-
@fxDreema said in Once per bar , Once per day:
There are no loops. The "loop" is that On Tick event where the blocks are, so they run on every tick. Those blocks are something like filters - you run them 10 times, they only pass 1 time (per bar, per day)
pass 1 time you mentioned...
does that means for Once per bar, the ea will only trigger one trade?or, the ea will enter trades (if conditions met) for every bar of candle?
thanks.
-
-
thanks for the link
i got 1 more questions about Buy Now block
if i change my lot to 0.00, it seems ea still placing orders at 0.01 lot if conditions are met.
is this how the block works? minimun order default as what we keyed into ea builder
-
This is how it works. The native OrderSend() function would give you error message of course, but we know what kind of people use fxDreema - non programmers, people who don't want to deal with errors. So the block should always create a new trade. Even if you set some giant lot, it will calculate and try to take the maximum possible at the moment.
-
@fxDreema if I want to only execute once per bar trade , should I put it before buy||sell blocks?
-
In general, yes, but then you need to decide if that execution is ALWAYS supposed to happen at the open of each new candle (block on top of the block tree) or at ANY moment after the candle is open (block below the conditins to be met but before buy/sell blocks).