Conditions True > Delay 2 seconds > Enter
-
Is it possible that after all conditions are true, the EA waits for 2 seconds then enter the trade?
-
once per second add 1 to a variable, when conditions are true set a variable to 0, and check this number to wait.
-
@jstap above the conditions are once per bar.
Where shoild once per second be placed?
-
constantly add to the variable, just set to 0 when conditions are true.
-
@jstap is the logic like this? i dont get the set to 0 when conditions are true
-
That's the builder page, not a link to your project
-
@jstap apologies
https://fxdreema.com/shared/NHN1vFkL -
More like this, on init I set the count to 3 so it will waait for the cross before entering the trade: https://fxdreema.com/shared/fUAo3xDdc
-
@jstap appreciate the idea, just want to clarify. what if i set oninit count to 2?
-
Then it will place a trade at the start, ignoring the ma cross. This is not the finished way to do things, just a way you can watch, before adding and changing so the bot does what you think is best.
-
@jstap im experimenting right now, basically, there are 2 counters for second
1st Value = 2
2nd Value = 3this is where my confusion is.
the difference between the secodns in OnInit and OnTick
hope you can explain,
-
No there is 1, it just sets it to on init
-
@jstap got it.
some entry of the EA are not taken when i enable the seconds delay, how can i set that all entries will be taken just a little delay of 2 seconds of the time.
-
That is the only way I know how to, you could set comments so it says what the seconds are, and watch it set to 0, will show you where things are possibly failing.
-
@jstap Actually it works, i just made some errors with the block condition.
Appreciate the help.
-
