There are my view to your problems:
1) I know how to have the indicator update every new bar but is there anyway to
only have it update every new day?
init() {
Today=DayOfWeek();
}
bool IsNewDay() {
if(Today!=DayOfWeek()) {
Today=DayOfWeek();
return(true);
}
return(false);
}
2) Also is there any function in mql4 that gives you market open and close times?
I can't see anything myself. MarketInfo() doesn't give you this information
Time[0]-Bar opening Time. Determiny the closing time is not so trivial.
Thanks. :)
1.) I knew it had to be something along them lines.
2.) I'm not sure what you mean there but it isn't essential so it doesn't matter.
Jason.
1.) I knew it had to be something along them lines.
2.) I'm not sure what you mean there but it isn't essential so it doesn't matter.
Jason.

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
Also is there any function in mql4 that gives you market open and close times? I can't see anything myself. MarketInfo() doesn't give you this information.
Cheers.