using turn on/off blocks
-
That is the builder page not your project page
-
Are you using seconds in all variables and constants? You can only use seconds everywhere when using UNIX time.
-
@l-andorrà no only the unix time. actually only once and that is where I have UNIX + seconds which seconds=waiting time before restart but it doesn't work.
-
Can you please share the link to the last version?
-
@l-andorrà sure. here is the link to the complete project
https://fxdreema.com/shared/3l34zhk3b -
@nasserminaei
Block 45. Try >= instead of == -
Agreed. That should fix it.
-
@sktsec @l-andorrà
Thanks, now it turns off the Ea correctly( 1 step the problem solved) but it doesn't turn on it back again when the waiting seconds are over. for example I set the value of 'waiting-period-second' in block number '43' for 120 which means 2 minutes but after that it doesn't open up new positions. -
You are welcome
-
@nasserminaei Can you please share the link to it?
-
@nasserminaei
Block 44. Your selection means if there is no closed trade after EA startup, no new tradeDoes your logic mean skip trades after some seconds of closing after EA starting up ? If that is the case, the algo would be simply 2 steps:
- On trade tab, save the time for any closed trade, say, t0
- On tick tab, add a Condition block all the way up above your trading logic, that is, now > t0 + 120 (suppose 120s freezing time)
This would probably save you a lot of your work. I misread your last reply to me that your problem had been solved. When I read again, your algo seemed to be more complicated than what you thought
-
@l-andorrà here it is:
https://fxdreema.com/shared/3l34zhk3b -
@sktsec
thanks for getting back to me. well the algo should work like this:- opens position or positions are closed
- the ea stops working for X seconds (freezing time starts when the last open position is closed)
- it starts working again when the freezing time is over. let's say after 2 minutes.
as far as I have understood from your message, maybe it's better to remove block '44' as the 'turn on blocks' has nothing to do with with the previous trade it just count the time so it might solve the problem. i'll check to see if it works.
-
@sktsec @l-andorrà
thank you so much for helping me to solve the issue I have been trying to solve for about 2 weeks. removing block '44' actually worked.
your time and effort is really appreciated , I hope that someday I can do the same for others

-
You are welcome