Hi all,
I would like to get a timer to close open trades on Saturday and start on Sunday.
For that I try the to use the follow code, but with it no orders are opening. Could you tell me what am I doing wrong ?
Thank you in advance for any support provided.
Luis
Instead of DayOfWeek() use TimeDayOfWeek( TimeCurrent() ) and instead of Hour() use TimeHour( TimeCurrent() )
What is meant to happen on Tuesday or Thursday ? i.e. when the day of the week is not 0 and is not 5 ?
Instead of DayOfWeek() use TimeDayOfWeek( TimeCurrent() ) and instead of Hour() use TimeHour( TimeCurrent() )
What is meant to happen on Tuesday or Thursday ? i.e. when the day of the week is not 0 and is not 5 ?
Hi RaptorUK,
Thank you for your prompt attention to my post and thank you by the clue about my last issue, now the ea is do what I was looking for.
Regarding your question about what the ea behavior should be in the other days of the week well, I'm just looking to close all trades at week end so, the ea should work 24 hours on those days.
Best regards
Luis
Instead of DayOfWeek() use TimeDayOfWeek( TimeCurrent() ) and instead of Hour() use TimeHour( TimeCurrent() )
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all,
I would like to get a timer to close open trades on Saturday and start on Sunday.
For that I try the to use the follow code, but with it no orders are opening. Could you tell me what am I doing wrong ?
Thank you in advance for any support provided.
Luis