I am looking to code a ADR indior that'll exhibit the Annual ADR excluding weekends.
The line of code that I have presently is:
while(ExcludeSundayData TimeDayOfWeek(iTime(Symbol(),PERIOD_D1,n))==0) n ; // If TimeDayOfWeek yields 0 add 1 to skip Sunday
This will bypass Sunday but I would like to be able to also bypass Saturdays, I'm not a fluent coder and have been gashing things together up to now.
I possess the ADR displayed and working on 365 so only need to have the ability to shed Saturday in addition to sunday.
Any help appreciated.
Regards
Console