- Tháng sáu 10, 2013
- Gửi bởi: Nhóm ngoại hối Wiki
- Loại: Ngoại hối Ấn Độ
Tên: |
|
||
Tác giả: | puncher (2011.09.08 11:56) | ||
Đã tải xuống: | 14771 | ||
Tải xuống: |
|
||
Sự miêu tả:The indicator draws the support (lower) and resistance (phía trên) lines taking into acount the Low and High of the candles. It can make trend lines for the chosen CANDLES RANGE - without any manual precision. If the trend lines are not too precise, then you can change (inrease or decrease) chỉ một linia_dolna_do and/or linia_gorna_do values.
For the trend lines it is as simple as possible indicator I think.
Hình ảnh:
Much better is my v2 version of this indicator. If you have still free money enjoy it all 🙂 |
|||
I tried it repaints a lot.
06.03.2012 23:53 perfume73
the program has some bugs. 14.09.2011 19:19 eastore
yangshu:
#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_color2 Green extern int speriod=1,lperiod=144; extern string Support="Ủng hộ",Resistance="Sức chống cự"; extern color Sup_Line_Color=Green,Res_Line_Color=Red; double low,low1,low2,low3; datetime p1,p2,p3,p4; int init() ... trở lại(0); }
albo i tak ... 10.09.2011 15:12 puncher
#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_color2 Green extern int speriod=1,lperiod=144; extern string Support="Ủng hộ",Resistance="Sức chống cự"; extern color Sup_Line_Color=Green,Res_Line_Color=Red; double low,low1,low2,low3; datetime p1,p2,p3,p4; int init() { trở lại(0); } int deinit() { ObjectDelete("Ủng hộ"); ObjectDelete("Sức chống cự"); trở lại(0); } int start() { p2=iTime(VÔ GIÁ TRỊ,0,speriod); p4=iTime(VÔ GIÁ TRỊ,0,speriod); low1=iLow(VÔ GIÁ TRỊ,0,speriod); low2=iLow(VÔ GIÁ TRỊ,0,speriod); int i,j=speriod; vì(i=speriod;Tôi<=lperiod;i++) { nếu như(iLow(VÔ GIÁ TRỊ,0,Tôi)<low1) { j=i;low1=iLow(VÔ GIÁ TRỊ,0,j); p2=iTime(VÔ GIÁ TRỊ,0,j); } } vì(i=speriod;Tôi<j;i++) { nếu như(iLow(VÔ GIÁ TRỊ,0,Tôi)<low2) { low2=iLow(VÔ GIÁ TRỊ,0,Tôi); p4=iTime(VÔ GIÁ TRỊ,0,Tôi); } } ObjectCreate(Ủng hộ,OBJ_TREND,0,p2,low1,p4,low2); vì(i=j;Tôi>=speriod;i--) { nếu như(ObjectGetValueByShift(Ủng hộ,Tôi)>iClose(VÔ GIÁ TRỊ,0,Tôi)) { ObjectDelete(Ủng hộ); } p4=iTime(VÔ GIÁ TRỊ,0,Tôi); low2=iLow(VÔ GIÁ TRỊ,0,Tôi); ObjectCreate(Ủng hộ,OBJ_TREND,0,p2,low1,p4,low2); } ObjectSet(Ủng hộ,OBJPROP_COLOR,Sup_Line_Color); ObjectSet(Ủng hộ,OBJPROP_WIDTH,1); ObjectSet(Ủng hộ,OBJPROP_STYLE,STYLE_SOLID); p1=iTime(VÔ GIÁ TRỊ,0,speriod); p3=iTime(VÔ GIÁ TRỊ,0,speriod); low=iLow(VÔ GIÁ TRỊ,0,speriod); low3=iLow(VÔ GIÁ TRỊ,0,speriod); int k,n=speriod; vì(k=speriod;k<=lperiod;k++) { nếu như(iHigh(VÔ GIÁ TRỊ,0,k)>thấp) { n=k;low=iHigh(VÔ GIÁ TRỊ,0,N); p1=iTime(VÔ GIÁ TRỊ,0,N); } } vì(k=speriod;k<N;k++) { nếu như(iHigh(VÔ GIÁ TRỊ,0,k)>low3) { low3=iHigh(VÔ GIÁ TRỊ,0,k); p3=iTime(VÔ GIÁ TRỊ,0,k); } } ObjectCreate(Sức chống cự,OBJ_TREND,0,p1,low,p3,low3); vì(k=n;k>=speriod;k--) { nếu như(ObjectGetValueByShift(Sức chống cự,k)<iClose(VÔ GIÁ TRỊ,0,k)) { ObjectDelete(Sức chống cự); } p3=iTime(VÔ GIÁ TRỊ,0,k); low3=iHigh(VÔ GIÁ TRỊ,0,k); ObjectCreate(Sức chống cự,OBJ_TREND,0,p1,low,p3,low3); } ObjectSet(Sức chống cự,OBJPROP_COLOR,Res_Line_Color); ObjectSet(Sức chống cự,OBJPROP_WIDTH,1); ObjectSet(Sức chống cự,OBJPROP_STYLE,STYLE_SOLID); trở lại(0); } |