#property copyright "akadex" #property link "tohell" #property indicator_chart_window #property indicator_buffers 5 #property indicator_color1 Red #property indicator_color2 Blue #property indicator_color3 White #property indicator_color4 Aqua #property indicator_color5 Red extern double mincanal=0.0020; //---- buffers double v1[]; double v2[]; double v3[]; double v4[]; double v5[]; double val1,val2,h,l,profit; int i,profitpointsell,profitpointbuy; int deinit() {Comment ("");} int init() { IndicatorBuffers(5); SetIndexArrow(0, 119); SetIndexArrow(1, 119); SetIndexStyle(0,DRAW_ARROW,STYLE_DOT,0,Red); SetIndexDrawBegin(0,i-1); SetIndexBuffer(0, v1); SetIndexLabel(0,"Resistance"); SetIndexStyle(1,DRAW_ARROW,STYLE_DOT,0,Blue); SetIndexDrawBegin(1,i-1); SetIndexBuffer(1, v2); SetIndexLabel(1,"Support"); SetIndexStyle(2,DRAW_LINE,STYLE_SOLID,2); SetIndexDrawBegin(2,i); SetIndexBuffer(2, v3); SetIndexLabel(2,"Pivot"); SetIndexEmptyValue(2,0.0); SetIndexStyle(3,DRAW_LINE,STYLE_DASH,1); SetIndexDrawBegin(3,i); SetIndexBuffer(3, v4); SetIndexLabel(3,"Profit Buy"); SetIndexEmptyValue(3,0.0); SetIndexStyle(4,DRAW_LINE,STYLE_DASH,1); SetIndexDrawBegin(4,i); SetIndexBuffer(4, v5); SetIndexLabel(4,"Profit Sell"); SetIndexEmptyValue(4,0.0); return(0); } int start() { i=Bars; while(i>=0) { val1 = iFractals(NULL, 0, MODE_UPPER,i); if (val1 > 0) v1[i]=High[i]; else v1[i] = v1[i+1]; val2 = iFractals(NULL, 0, MODE_LOWER,i); if (val2 > 0) v2[i]=Low[i]; else v2[i] = v2[i+1]; if ((v1[i]-v2[i])>=mincanal){ v3[i]=(v1[i]+v2[i])/2; profit=(v1[i]-v2[i])/3; v4[i]=v3[i]+profit; v5[i]=v3[i]-profit; profitpointbuy=(v4[i]-v3[i])/Point; profitpointsell=-(v5[i]-v3[i])/Point; } if (!IsTesting()) {Comment ("Ìèíèìàëüíûé êàíàë: ",mincanal," ïóíêòîâ\n", "Óðîâåíü ñîïðîòèâëåíèÿ: ",v1[i],"\n", "Óðîâåíü ïîääåðæêè: ",v2[i],"\n", "Óðîâåíü Pivot: ",v3[i],"\n", "Ïðîôèòíîñòü íà Buy: ",profitpointbuy," ïóíêòîâ.\n", "Ïðîôèòíîñòü íà Sell: ",profitpointsell," ïóíêòîâ.\n");} i--; } return(0); }
Sample
Analysis
Market Information Used:
Series array that contains the highest prices of each bar
Series array that contains the lowest prices of each bar
Indicator Curves created:
Implements a curve of type DRAW_ARROW
Implements a curve of type DRAW_LINE
Indicators Used:
Fractals
Custom Indicators Used:
Order Management characteristics:
Other Features: