wait block
-
how can i do that :
(1)- check condition - open buy order 0.1
(2)- if the order still opened for 24 hours without hitting take profit so ..
(3)- open buy 0.2my main problem is step (2) how can i make the EA wait exactly 24 hours before opening the next order ? .. because block "Once a Day" is not accurate in that case
-
You can try this https://fxdreema.com/shared/qMoulYlhd it will exit the long position after 24 hours (thus EA will be ready to open the next order as per condition specified) unless take profit or a stop loss of 50 pips will be reached.
-

This setup will check the age (>= 24[h]) and will pass when it is true. "Once per position/order" is required to run the blocks attached to its true output just once. If this block is not here, the EA will run the blocks connected to the "check age" true output each time/bar/tick (depending on your setup) that the "check age" block is true for each trade. So the EA would open a lot of trades.
You can use the "Run blocks" block to point to the "Buy now" block using its ID or place a new "Buy now" block.
-
@josecortesllobat Thanks .. it is working