以下是通达信清晰明了短线止盈止损参考超强指标——支撑阻力主图源码(无源码的请下载附件导入)
{=============分形=============N=2穷尽罗列法}
A:=H;A1:=REF(H,1);A2:=REF(H,2);A3:=REF(H,3);A4:=REF(H,4);A5:=REF(H,5);A6:=REF(H,6);A7:=REF(H,7);A8:=REF(H,8);
B:=L;B1:=REF(L,1);B2:=REF(L,2);B3:=REF(L,3);B4:=REF(L,4);B5:=REF(L,5);B6:=REF(L,6);B7:=REF(L,7);B8:=REF(L,8);
HF1:=A2>A1 AND A2>A AND A2>A3 AND A2>A4;{=========================================5根K线}
HF2:=A3=A2 AND A2>A1 AND A2>A AND A2>A4 AND A2>A5;{===============================2个等高A2=A3,6根K线34}
HF3:=A2=A4 AND A2>A1 AND A2>A AND A2>A3 AND A2>A5 AND A2>A6;{=====================2个等高A2=A4,7根K线35}
HF4:=A4=A3 AND A3=A2 AND A2>A1 AND A2>A AND A2>A5 AND A2>A6;{=====================3个等高A4=A3 AND A3=A2,7根K线345}
HF5:=A2=A4 AND A2=A6 AND A2>A1 AND A2>A AND A2>A3 AND A2>A5 AND A2>A7 AND A2>A8;{3个等高A2=A4 AND A2=A6,9根K线357}
HF6:=A2=A3 AND A2=A5 AND A2>A1 AND A2>A AND A2>A4 AND A2>A6 AND A2>A7;{==========3个等高A2=A3 AND A2=A5,8根K线346}
HF7:=A2=A4 AND A2=A5 AND A2>A1 AND A2>A AND A2>A3 AND A2>A6 AND A2>A7;{===========3个等高A2=A4 AND A2=A5,8根K线356}
LF1:=B2<B1 AND B2<B AND B2<B3 AND B2<B4;{=========================================5根K线}
LF2:=B3=B2 AND B2<B1 AND B2<B AND B2<B4 AND B2<B5;{===============================2个等低B2=B3,6根K线34}
LF3:=B2=B4 AND B2<B1 AND B2<B AND B2<B3 AND B2<B5 AND B2<B6;{=====================2个等低B2=B4,7根K线35}
LF4:=B2=B3 AND B2=B4 AND B2<B1 AND B2<B AND B2<B5 AND B2<B6;{=====================3个等低B2=B3 AND B2=B4,7根K线345}
LF5:=B2=B4 AND B2=B6 AND B2<B1 AND B2<B AND B2<B3 AND B2<B5 AND B2<B7 AND B2<B8;{3个等低B2=B4 AND B2=B6,9根K线357}
LF6:=B2=B3 AND B2=B5 AND B2<B1 AND B2<B AND B2<B4 AND B2<B6 AND B2<B7;{==========3个等低B2=B3 AND B2=B5,8根K线346}
LF7:=B2=B4 AND B2=B5 AND B2<B1 AND B2<B AND B2<B3 AND B2<B6 AND B2<B7;{===========3个等低B2=B4 AND B2=B5,8根K线356}
HD:=HF1 OR HF2 OR HF3 OR HF4 OR HF5 OR HF6 OR HF7;
LD:=LF1 OR LF2 OR LF3 OR LF4 OR LF5 OR LF6 OR LF7;
HD1:=BACKSET(HD,3);
HD2:=FILTER(HD1,2);
LD1:=BACKSET(LD,3);
LD2:=FILTER(LD1,2);
{REF(H,BARSLAST(HD2)),POINTDOT;}
{REF(L,BARSLAST(LD2)),POINTDOT;}
上向分形: REF(HIGH,BARSLAST(HD2)), POINTDOT,COLOREA91B5;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(HD2)),REF(HIGH,BARSLAST(HD2)),0.1,1),COLORMAGENTA;
向下分形: REF(LOW,BARSLAST(LD2)), POINTDOT,COLOR3791B5;
STICKLINE(CLOSE,REF(LOW,BARSLAST(LD2)),REF(LOW,BARSLAST(LD2)),0.1,1),COLORGREEN;
VAR1:=(H+C+C+L)/4;
操盘线D:REF(SMA(VAR1,3,1),3),COLORGREEN,LINETHICK1;
操盘线Z:REF(SMA(VAR1,25,1),5),COLORRED,LINETHICK1;
719144137.jpg
|