السلام عليك أستاذ سمير بدي تعديل على مؤشر لي في المرفقات .
#property indicator_chart_window #property indicator_buffers 4 #property indicator_plots 2 #property indicator_type1 DRAW_COLOR_ARROW #property indicator_width1 1 #property indicator_color1 clrRed,clrBlue #property indicator_type2 DRAW_COLOR_ARROW #property indicator_width2 1 #property indicator_color2 clrRed,clrBlue const int arrow_code=75; double Buff1[],Buff2[], Buff1_clr[],Buff2_clr[]; void OnInit() { SetIndexBuffer(0,Buff1,INDICATOR_DATA); SetIndexBuffer(1,Buff1_clr,INDICATOR_COLOR_INDEX); PlotIndexSetInteger(0,PLOT_ARROW,arrow_code); PlotIndexSetDouble(0,PLOT_EMPTY_VALUE,0); PlotIndexSetInteger(0,PLOT_COLOR_INDEXES,2); SetIndexBuffer(2,Buff2,INDICATOR_DATA); SetIndexBuffer(3,Buff2_clr,INDICATOR_COLOR_INDEX); PlotIndexSetInteger(2,PLOT_ARROW,arrow_code); PlotIndexSetDouble(2,PLOT_EMPTY_VALUE,0); PlotIndexSetInteger(2,PLOT_COLOR_INDEXES,2); return; }//OnInit void OnDeinit(const int reason) { return; }//OnDeinit int OnCalculate(const int rates_total, const int prev_calculated, const int begin, const double &price[]) { int bar,first; if(prev_calculated==0) first=0; else first=prev_calculated-1; for(bar=first; bar<rates_total; bar++) { Buff1[bar]=price[bar]; Buff2[bar]=price[bar]-500*_Point; Buff1_clr[bar]=1; Buff2_clr[bar]=1; } return(rates_total); }//OnCalulate