request for help to modify an indicator

 

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 MediumSpringGreen
#property indicator_color2 DeepPink

extern int COUNT=5;
double HighBuffer[];
double LowBuffer[];

int init()
{
SetIndexStyle(0,DRAW_LINE,2,2);
SetIndexStyle(1,DRAW_LINE,2,2);

IndicatorDigits(Digits);
SetIndexBuffer(0,HighBuffer);
SetIndexBuffer(1,LowBuffer);
SetIndexLabel(0,"UAT");
SetIndexLabel(1,"DAT");
return(0);
}
int start()
{
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for(int i=0; i<limit; i++)
{
double TOP=High[Highest(NULL,0,MODE_HIGH,COUNT,i+1)];
double DOWN=Low[Lowest(NULL,0,MODE_LOW,COUNT,i+1)];

HighBuffer[i]=TOP;
LowBuffer[i]=DOWN;


}
return(0);
}


hi

this indicator can use in any period time. but i need a indicator,as if code it as MA using yesterday's pivot points, and the indicator MA can displayed on the picture in the present period of 4h,M30,M15 .anyone able to help me with this? Thank you very much in advance.

Reason: