wait till open a new day
-
how can i make a condition to make the EA wait till the beginning of a new daily candel
for example:
the EA opens buy at 20:00
the EA should wait till 00:00 "new day" and start checking condition 1 till meetas you see i can not use "once a day or once per par" because it will give the EA only one chance to look at the condition
any help ?
-
@wolamen You can use a boolean variable that is automatically set to false at 00:00 every day. And it is hold that way untill your condition is met. Then it is set into true. You launcher should have that condition on top of its tree. That way no more new trades will be open untill tomorrow.
-
@l-andorrà thanks .. but it is not clear to me .. how could i connect my condition block to the boolean block ?
-
@wolamen This is the easiest way to do it:
https://fxdreema.com/shared/gaxiPAqyd
Obviously you need to adapt it to your project.
-
@l-andorrà thank you very much ... It is clear now
-
@wolamen You're welcome.