[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 21

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How about this construction: TimeToStr(TimeCurrent(), TIME_MINUTES)?
And this construction : TimeToStr(TimeCurrent(), TIME_MINUTES) What's not to your liking?
>> Thank you. Yes, it is very good.
Please tell me how to stop the Expert Advisor from working on Fridays.
if (TimeDayOfWeek(TimeCurrent()) == 5) {
return(0);
}
if (TimeDayOfWeek(TimeCurrent()) == 5) {
return(0);
}
Thank you
Thank you
This is something to think about. If you disable the whole EA, it may leave already open positions unattended.
IMHO, we should disable the opening of positions and the other blocks should work.
This is something to think about. If you disable the entire EA, it may leave already open positions unattended.
In my opinion, we should disable opening of positions, while other blocks should work.
Then put this code before block of new positions opening, after code of check - modification, i.e. between them. If, of course, the ticks and the loss have been set. Otherwise we have to close all open positions on the first Friday bar, i.e. besides return(0) in curly braces insert the code of closing everything that is open.