DislikedHello Coders i need some Help please i am using this to define the period in order to calculate the pivot point //+------------------------------------------------------------------+ ENUM_TIMEFRAMES timePeriodConverter() { ENUM_TIMEFRAMES tmf = 0; //Current if(TimePeriod == Daily) tmf= PERIOD_D1; if(TimePeriod == Weekly) tmf = PERIOD_W1; if(TimePeriod == Monthly) tmf = PERIOD_MN1; return(tmf); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+...Ignored
{
datetime dayCheck0=iTime(NULL,PERIOD_D1,shift);
if(TimeDayOfWeek(dayCheck0) == 0)//found sunday - skip over
{
shift+=1;
}
datetime dayCheck6=iTime(NULL,PERIOD_D1,shift);
if(TimeDayOfWeek(dayCheck6) == 6)//found saturday - skip over
{
shift+=1;
}
}
1