短线成本:=EMA(CLOSE,17);
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
中线成本:=EMA(X,13),LINETHICK2,COLORFF00FF;
STICKLINE(BARSLAST(短线成本<中线成本)>30,95,100,5,0),COLORRED;
STICKLINE(BARSLAST(短线成本>中线成本)>30,0,5,5,0),COLORFF2828;
VAR1:=1;
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
N1:=5;
N4:=34;
CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4));
饱和度:=IF(SAT>1,1,SAT)*100;
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
STICKLINE(饱和度>=97 AND CQ>90,85,100,2,0),COLORRED;
中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
支撑:=LLV(持股,3);
短期线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1*30,LINETHICK2,COLOR00DB00;
中期线:=MA(持股,12),COLORWHITE,LINETHICK2;
STICKLINE(支撑<中期线,支撑,中期线,2,0),COLOR00DB00;
STICKLINE(持股>0,支撑,持股,2,0),COLORRED;
STICKLINE(支撑>中期线,中期线,支撑,2,0),COLORYELLOW;
STICKLINE(支撑=持股 AND 持股>中期线,中期线,支撑,2,0),COLORFF00FF;
STICKLINE(REF(中期,1)<1 AND 中期>1,0,15,2,0),COLORWHITE;
STICKLINE(W4 AND COUNT(W4,5)=1,85,100,2,0),COLORYELLOW;
警戒线:85,COLORYELLOW;
卖出线:100,COLORRED;
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,3);
买1:IF((V7 AND COUNT(V7,3)=1),50,0),COLORMAGENTA,LINETHICK2;
DRAWTEXT(买1,50,'买 '),COLORMAGENTA;
V10:=PEAKBARS(3,15,1)<10; V12:=IF(V10=1,50,0);
头部:= IF(V12=50,100,0);
卖:IF(头部>REF(头部,1),50,0),COLORGREEN,LINETHICK2;DRAWTEXT(卖,50,'顶 '),COLORGREEN;
V9:=TROUGHBARS(3,15,1)<10; V11:=IF(V9=1,50,0);
底部:=IF(V11=50,50,0);
买:IF( 底部>REF(底部,1),40,0),COLORFF00FF,LINETHICK2; DRAWTEXT(买,40,'底 '),COLORFF00FF;
N:=50;
M1:=5;
M2:=10;
LG:=240;
N54:=12;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
A2:=SMA(RSV,M1,1);
B:=SMA(A2,M2,1);
E:=3*A2-2*B;
KKK:=100;
K:=MA(A2,3);
D:=MA(B,3);
J:=MA(E,3);
VARB1:=ZIG(3,96/N54);
乌云:IF( REF(VARB1,2)<REF(VARB1,1) AND VARB1<REF(VARB1,1),75,100),COLORFF9428,LINETHICK3;
DRAWICON(REF(VARB1,2)<REF(VARB1,1) AND VARB1<REF(VARB1,1),73,2);
猎豹: IF(REF(VARB1,2)>REF(VARB1,1) AND VARB1>REF(VARB1,1),25,0),COLOR8000FF,LINETHICK3;
DRAWICON(REF(VARB1,2)>REF(VARB1,1) AND VARB1>REF(VARB1,1),28,1);
早上大跌可买:0,COLORYELLOW;
早上大涨要卖:0,COLORRED;
下午大涨不追:0,COLORBLUE;
下午大跌次日买:0,COLORGREEN;
早上大跌不割:0,COLORFF00FF;