N:=40;M1:=11;M2:=40;
VARA:=EMA(REF(CLOSE,1),4);VAR01:=REF(CLOSE,2);B反弹:((SMA(MAX((CLOSE - VAR01),0),7,1) / SMA(ABS((CLOSE - VAR01)),7,1)) * 100);C建仓:IF((B反弹 < 12),55,0),COLORRED;
VAR1:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;VAR2:=SMA(VAR1,4,1);VAR3:=SMA(VAR2,2,1);VAR11:=SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,3,1);D底部: IF(SMA(VAR11,2,1)<8.5 AND VAR11<11,-15,0),COLORYELLOW;DRAWTEXT(CROSS(D底部,-1),-1,'金底'),COLORLIBLUE;XL1:=MA(LOW,2)*0.96;XL2:=MA(LOW,26)*0.85;XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;BT1:=CROSS(RSI1,25);VAB1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAB2:=SMA(VAB1,3,1);VAB3:=SMA(VAB2,3,1);VAB4:=SMA(VAB3,3,1);VAB6:=CROSS(VAB3,VAB4) AND VAB3<20;90;0;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;A:=SMA(RSV,M1,1);B:=SMA(A,M2,1);E:=3*A-2*B;A趋势线:E,COLORRED;