突破双顶,看压力支撑的公式,和谐源码分享 副图
突破双顶
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;突破
DRAWICON(突破,L*0.99,1);