章三丰铁手
AS:=EMA((CLOSE/SMA(CLOSE,20,1)-1)*666,3);
正镜:AS,LINETHICK2,colorFF;
反镜:AS*(-1),LINETHICK2,colorFF00;
FILLRGN(正镜>0,0,正镜),colorFF;
FILLRGN(正镜>0,0,反镜),color666666;
STICKLINE(CLOSE>0,-100,-100,6,0),colorFFFFFF;
STICKLINE(CLOSE>0,100,100,6,0),colorFFFFFF;
STICKLINE(CLOSE>0,-50,-50,6,0),colorFFFF00;
STICKLINE(CLOSE>0,50,50,6,0),colorFFFF00;
VAR2:=SMA(AMOUNT,10,1);
涨跌B:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100;
条件B:=(VAR2-LLV(VAR2,10))/LLV(VAR2,10)*100>15;
STICKLINE(CLOSE>0,0,0,5,0),LINETHICK3,colorFF8888;
STICKLINE(条件B AND 涨跌B>0,0,0,5,0),LINETHICK3,colorFFFF;
C1:=AS;
H1:=AS;
L1:=AS;
AA:=REF(H1,3)=HHV(H1,2*3+1);
AAA:=FILTER(AA,3);
BB:=BACKSET(AAA,3+1);
CC1:=FILTER(BB,3);
CC:=CC1 OR ISLASTBAR;
AA2:=REF(L1,3)=LLV(L1,2*3+1);
AAA2:=FILTER(AA2,3);
BB2:=BACKSET(AAA2,3+1);
CC22:=FILTER(BB2,3);
CC2:=CC22 AND NOT(CC1);
EA:=BACKSET(CC,REF(BARSLAST(CC2),1)+1);
EB:=EA>REF(EA,1);
EE:=BACKSET(EB,2);
FF1:=EE>REF(EE,1);
EE2:=BACKSET(FF1 AND COUNT(CC,REF(BARSLAST(CC2),1)+2)=0,REF(BARSLAST(CC2),1)+2);
FF2:=EE2>REF(EE2,1);
EE3:=BACKSET(FF2 AND COUNT(CC,REF(BARSLAST(CC2),1)+2)=0,REF(BARSLAST(CC2),1)+2);
FF3:=EE3>REF(EE3,1);
JS:=IF(CC,COUNT(CC2,REF(BARSLAST(CC),1)+1),0);
G1:=IF(JS=1 AND CC,BARSLAST(FF1),0);
GA:=IF(CC AND REF(L1,BARSLAST(FF1))>=REF(L1,BARSLAST(FF2)),BARSLAST(FF2),BARSLAST(FF1));
G2:=IF(JS=2 AND CC,GA,0);
G3:=IF(JS>=3 AND CC,IF(CC AND REF(L1,GA)>=REF(L1,BARSLAST(FF3)),BARSLAST(FF3),GA),0);
GG:=G1+G2+G3;
JA:=BACKSET(CC,GG);
JB:=JA>REF(JA,1);
JJ:=BACKSET(JB,2);
LD:=JJ>REF(JJ,1);
LD1:=LD OR ISLASTBAR;
HEA:=BACKSET(LD1,REF(BARSLAST(CC),1)+1);
HEB:=HEA>REF(HEA,1);
HEE:=BACKSET(HEB,2);
HFF1:=HEE>REF(HEE,1);
HEE2:=BACKSET(HFF1 AND COUNT(LD1,REF(BARSLAST(CC),1)+2)=0,REF(BARSLAST(CC),1)+2);
HFF2:=HEE2>REF(HEE2,1);
HEE3:=BACKSET(HFF2 AND COUNT(LD1,REF(BARSLAST(CC),1)+2)=0,REF(BARSLAST(CC),1)+2);
HFF3:=HEE3>REF(HEE3,1);
HJS:=IF(LD1,COUNT(CC1,REF(BARSLAST(LD1),1)+1),0);
HG1:=IF(HJS=1 AND LD1,BARSLAST(HFF1),0);
HGA:=IF(LD1 AND REF(H1,BARSLAST(HFF1))<=REF(H1,BARSLAST(HFF2)),BARSLAST(HFF2),BARSLAST(HFF1));
HG2:=IF(HJS=2 AND LD1,HGA,0);
HG3:=IF(HJS>=3 AND LD1,IF(LD1 AND REF(H1,HGA)<=REF(H1,BARSLAST(HFF3)),BARSLAST(HFF3),HGA),0);
HGG:=HG1+HG2+HG3;
HJA:=BACKSET(LD1,HGG);
HJB:=HJA>REF(HJA,1);
HJJ:=BACKSET(HJB,2);
HD:=HJJ>REF(HJJ,1);
X1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
X2:=X1>REF(X1,1);
Y1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
Y2:=Y1>REF(Y1,1);
Z1:=IF(BARSLAST(X2)<BARSLAST(Y2),X2,Y2);
Z2:=IF(BARSLAST(X2)<BARSLAST(Y2),L1,H1);
UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
DRAWLINE(XX,L1,VV,L1,1),colorFFFF;
DRAWLINE(XX2,H1,VV2,H1,1),colorFFFF; |