大智慧以线取胜组图公式源码 大智慧指标公式大全(2)
2015-11-27 12:35:12 股票入门 http://rumen.southmoney.com
{画直线}DRAWLINE(HIGH>=HHV(HIGH,13),HIGH,LOW<=LLV(LOW,13),LOW,1),colorffff00;;
{画直线}DRAWLINE(HIGH>=HHV(HIGH,35),HIGH,LOW<=LLV(LOW,35),LOW,1),COLORGREEN,linethick2;
N1:=p1;{原码 N1:=3;}
Aa1:=REF(H,N1)=HHV(H,2*N1+1);
Bb1:=FILTER(Aa1,N1);
Cc1:=BACKSET(Bb1,N1+1);
Dd1:=FILTER(Cc1,N1);{高点}
Aa2:=REF(L,N1)=LLV(L,2*N1+1);
Bb2:=FILTER(Aa2,N1);
Cc2:=BACKSET(Bb2,N1+1);
Dd2:=FILTER(Cc2,N1);{低点}
Ee1:=(REF(LLV(L,2*N1),1)+REF(HHV(H,2*N1),1))/2;
Ee2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}
Hh1:=(Dd1 AND NOT(Dd2 AND Ee1>=Ee2)) OR DISPSTATUS=2 OR BARSCOUNT(C)=1;
Ll1:=(Dd2 AND NOT(Dd1 AND eE1<eE2));
Hh2:=Dd1 AND NOT(Dd2 AND Ee1>=Ee2);
Xx1:=REF(BARSLAST(Hh1),1)+1;
Ff1:=BACKSET(Hh1 AND COUNT(Ll1,Xx1)>0,LLVBARS(IF(Ll1,L,10000),Xx1));
Gg1:=Ff1>REF(Ff1,1);
Ii1:=BACKSET(Gg1,2);
LlD:=Ii1>REF(Ii1,1);{过滤后低点}
Ll2:=LlD OR DISPSTATUS=2 OR BARSCOUNT(C)=1;
Xx2:=REF(BARSLAST(Ll2),1)+1;
Ff2:=BACKSET(lL2 AND COUNT(Hh2,Xx2)>0,HHVBARS(IF(Hh2,H,0),xX2));
Gg2:=Ff2>REF(Ff2,1);
Ii2:=BACKSET(Gg2,2);
HhD:=Ii2>REF(Ii2,1);{过滤后高点}
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。