Is there a function or code that can determine the day of the week within a indicator for loop? I am trying to disregard the Sunday bar in a indicator I am writing and don't see a function for determining it, like there is iClose(). I was hoping for something like iDayOfWeek()
I know DayOfWeek() returns the current day of the week, but how do I get the day of the week in an array created from a for loop.
Any help would be welcomed thanks scott
I know DayOfWeek() returns the current day of the week, but how do I get the day of the week in an array created from a for loop.
Any help would be welcomed thanks scott
PHP Code
int start() { int limit; int counted_bars=IndicatorCounted(); //---- last counted bar will be recounted if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int pos=0; pos<limit; pos++) { /*Something in here to determine the day of the week for pos*/ } //---- //---- return(0); }