|
#property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 Orange //---- input parameters extern int N=30; extern int PointsAdjust=-10; //---- buffers double ExtMapBuffer1[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,ExtMapBuffer1); return(0); } int start() { int limit; int counted_bars=IndicatorCounted(); //---- check for possible errors if(counted_bars0) counted_bars--; limit=Bars-counted_bars; for(int i=0; i |
EA入门学院