My automatic TREND LINES for the CANDLES of FOREX MARKET charts

0
(0)
Tên:
My automatic TREND LINES for the CANDLES of FOREX MARKET charts
Tác giả: puncher (2011.09.08 11:56)
Đã tải xuống: 14771
Tải xuống:
My automatic TREND LINES for the CANDLES of FOREX MARKET charts 1
linie_wsparcia_oporu_v2.mq4 (7.3 Kb) Xem

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:

My automatic TREND LINES for the CANDLES of FOREX MARKET charts 2


Much better is my v2 version of this indicator. If you have still free money enjoy it all 🙂

4 bình luận Để gửi bình luận mới, Xin vui lòng đăng nhập hoặc đăng ký

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);
}

Bài đăng này hữu ích như thế nào?

Bấm vào một ngôi sao để đánh giá nó!

Đánh giá trung bình 0 / 5. Số phiếu bầu: 0

Không có phiếu bầu cho đến nay! Hãy là người đầu tiên đánh giá bài viết này.

Chúng tôi xin lỗi vì bài đăng này không hữu ích cho bạn!

Hãy để chúng tôi cải thiện bài đăng này!

Hãy cho chúng tôi biết cách chúng tôi có thể cải thiện bài đăng này?



Tác giả: Nhóm ngoại hối Wiki
Chúng tôi là một nhóm gồm các Nhà giao dịch ngoại hối giàu kinh nghiệm [2000-2023] những người cống hiến để sống cuộc sống theo cách riêng của chúng ta. Mục tiêu chính của chúng tôi là đạt được sự độc lập và tự do về tài chính, và chúng tôi đã theo đuổi việc tự học và có được nhiều kinh nghiệm trong thị trường ngoại hối như là phương tiện của chúng tôi để đạt được lối sống bền vững.