palka





//+------------------------------------------------------------------+
//|                                                        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);
  }
//+------------------------------------------------------------------+



Sample





Analysis



Market Information Used:

Series array that contains close prices for each bar


Indicator Curves created:


Implements a curve of type DRAW_SECTION

Indicators Used:



Custom Indicators Used:

Order Management characteristics:

Other Features: