//+------------------------------------------------------------------+ //| ProjectName | //| Copyright 2012, CompanyName | //| http://www.companyname.net | //+------------------------------------------------------------------+ #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Aqua double x[]; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int init() { IndicatorBuffers(1); SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,x); SetIndexDrawBegin(0,0); SetIndexLabel(0,"x"); SetIndexShift(0,0); return(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int start() { double b=MarketInfo(Symbol(),MODE_BID); x[0]=b; for(int j=ArraySize(x)-1;j>=1;j--){x[j]=x[j-1];} return(0); } //+------------------------------------------------------------------+