【资料名称】:黑马启动主图指标 通达信 贴图 突破双顶介绍【资料描述】:
黑马启动主图指标 通达信 贴图 突破双顶
J:=KDJ.J;
{突破小双顶}
F1:=HHVBARS(C,150);
F2:=BACKSET(C=HHV(C,10),10)*30;{顶尖定位}
F3:=BARSLAST(CROSS(25,F2));{顶尖定距}
K1:=F3+REF(F3,F3+1);
K2:=K1+REF(F3,K1+2);
V1:=F3+1;{1顶距}
V2:=K1+2;{2顶距}
V3:=K2+3;{3顶距}
C1:=REF(C,V1);{1顶价}
C2:=REF(C,V2);{2顶价}
C3:=REF(C,V3);{3顶价};
X1:=MAX(MAX(C1,C2),C3);
X2:=MIN(MIN(C1,C2),C3);
X3:=X1/X2;
{突破小双顶}
A1:=IF(C1>C2,C1/C2<1.16,C2/C1<1.065&&REF(HHV(C,10),1)<MAX(C1,C2));
A2:=IF(C1/C2>1.1, LLV(C,V1)>LLV(C,V2)*1.06,IF(C2/C1<1.065,LLV(C,V1)>LLV(C,V2)*0.98,
DRAWNULL));{底部抬高}
A3:=IF(C1>C2,C1,C1);
突破A:=A1&&A2&&CROSS(C,A3)&&REF(HHV(C,10),1)<A3;
回踩A:=EXIST(突破A,10)&&REF(J,3)-J>45&&COUNT(J<REF(J,1),4)>=2;
{突破中双顶}
F4:=BACKSET(C=HHV(C,15),15)*30;{顶尖定位}{虽然属"未来函数"但信号不会漂移}
F5:=BARSLAST(CROSS(25,F4)),COLORMAGENTA;{顶尖定距}
K3:=F5+REF(F5,F5+1);
K4:=K3+REF(F5,K3+2);
V4:=F5+1;{1顶距}
V5:=K3+2;{2顶距}
V6:=K4+3;{3顶距}
C4:=REF(C,V4);{1顶价}
C5:=REF(C,V5);{2顶价}
C6:=REF(C,V6);{3顶价}
X4:=MAX(MAX(C4,C5),C6);
X5:=MIN(MIN(C4,C5),C6);
X6:=X4/X5;
X7:=IF(C4>C5&&C5>C6,X6<1.15,X6<1.1);
L1:=LLV(C,V4)>C4*0.8&&LLV(C,V5)>C5*0.8&&LLV(C,V6)>C6*0.8;
选A:=V4>5&&V4<65&&V5>V4+20&&V5<V4+60&&V6<V5+60&&V6>V5+15&&X7&&L1&&HHV(C,5)<X4;
{突破二重顶}
B1:=IF(C4>C5,C4/C5<1.16,C5/C4<1.08&&REF(HHV(C,10),1)<MAX(C4,C5));
B2:=IF(C4/C5>1.1, LLV(C,V4)>LLV(C,V5)*1.06,IF(C5/C4<1.065,LLV(C,V4)>LLV(C,V5)*0.98,
DRAWNULL));{底部抬高}
B3:=IF(C4>C5,C4,C4);{1顶价}
B4:=CROSS(C,B3)&&REF(HHV(C,15),1)<B3;
突破B:=B1&&B2&&B4;
回踩B:=EXIST(突破B,15)&&REF(J,3)-J>45&&COUNT(J<REF(J,1),4)>=2;
突破:(突破A OR 突破B)&&C>=O,NODRAW;
选回踩:=回踩A OR 回踩B;
W1:=F3>15&&BARSLASTCOUNT(C<C1)>=F3,NODRAW;
W2:=(REF(W1,1) OR REF(W1,2))&&CROSS(C,REF(C1,1))&&C>=O,NODRAW;
W3:=F5>20&&BARSLASTCOUNT(C<C4)>=F5,NODRAW;
W4:=REF(W3,1)&&CROSS(C,REF(C4,1))&&C>=O,NODRAW;
DRAWTEXT(REF(C,V4)=C4,REF(C,V4),'。'),COLORMAGENTA;
DRAWTEXT(REF(C,V1)=C1,REF(C,V1),'。'),COLORCYAN;
DRAWICON(W2=1 OR W4=1,L*0.99,1);
DRAWICON(突破,L*0.99,1);
gd54857
【下载地址隐藏】: 点:回复可见地址