//+------------------------------------------------------------------+
//| Palka.mq4 |
//+------------------------------------------------------------------+
#property copyright "© Maloma"
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Magenta
extern int PPeriod=13;
double LineBuffer[];
int init()
{
SetIndexBuffer(0,LineBuffer);
SetIndexStyle(0,DRAW_SECTION,EMPTY,2);
SetIndexEmptyValue(0,0.0);
SetIndexLabel(0,"Line");
IndicatorShortName("Palka");
return(0);
}
int deinit()
{
return(0);
}
int start()
{
for(int i=Bars;i>=0;i--) LineBuffer[i]=0;
LineBuffer[0]=Close[0];
LineBuffer[PPeriod]=Close[PPeriod];
return(0);
}
//+------------------------------------------------------------------+
Comments