P1:=6;{自定义}
P2:=6;{自定义}
VAR1:=LLV(LOW,P1);
VAR2:=HHV(HIGH,P1);
K: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,P2),COLORRED,LINETHICK2;
D: EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN,LINETHICK2;
VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
VAR03:=CROSS(VAR02,VAR01);
VAR04:=REF(VAR02,2)<REF(VAR02,1) AND VAR02<REF(VAR02,1);
VAR05:=COUNT(VAR03,7)>0 AND VAR04;
浪花:=VAR05 AND COUNT(VAR05,5)=1;
BB1:=SMA(ABS(L-REF(L,1)),3,1);
BB2:=SMA(MAX((L-REF(L,1)),0),3,1);
BB3:=BB1/BB2*100;
BB4:=EMA(IF(C*1.2,BB3*10,BB3/10),3);
BB5:=LLV(L,38);
BB6:=HHV(BB4,38);
BB7:=IF(LLV(L,90),1,0);
BB8:=IF(L<=BB5,(BB4+BB6*2)/2,0);
BB9:=EMA(BB8,3)/618*BB7;
XG99:=CROSS(REF(BB9=0,1) AND BB9>0,0.5);
RSVV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短K:=SMA(RSVV,3,1);
短D:=SMA(短K,3,1);
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
长K:=SMA(RSV1,5,1);
长D:=SMA(长K,10,1);
上线:=SMA(C,6.5,1);
一号支撑线:=SMA(C,14.5,1);
上线1:=SMA(C,3,1);
一号支撑线1:=SMA(C,8,1);
A7:=(2*C+H+L)/4;
操作:=MA(A7,5),COLORBLUE,LINETHICK2;
操作1:=MA(A7,5)*1.03,LINETHICK2;
VAR111:=LLV(A7,21);
见底:=CROSS(上线1,操作) AND 上线1<一号支撑线 AND 上线1<一号支撑线1 AND 上线1<上线 AND CLOSE>VAR111 AND (C-REF(H,1)>0 OR C-REF(C,1)>3.5) AND 长D-长K<15 AND 短D>REF(短D+0.1,1);
青蛇:=(浪花 OR XG99 OR 见底);
STICKLINE(青蛇,0,68,1,0),COLORCYAN;