and a column of yesterday low
and we can turn off/on as needed.
Thank you.
The code is something like this:
- Code: Select all
int Forex= iBarShift(NULL,PERIOD_D1,Time[0]) + 1; // yesterday
HiPrice = iHigh(NULL,PERIOD_D1,Forex);
LoPrice = iLow (NULL,PERIOD_D1,Forex);
StartTime = iTime(NULL,PERIOD_D1,Forex);
if(TimeDayOfWeek(StartTime)==0/*Sunday*/)
{//Add fridays high and low
HiPrice = MathMax(HiPrice,iHigh(NULL,PERIOD_D1,Forex+1));
LoPrice = MathMin(LoPrice,iLow(NULL,PERIOD_D1,Forex+1));
} // if(TimeDayOfWeek(StartTime)==0/*Sunday*/)