AA:=(CLOSE-LLV(LOW,50))/(HHV(HIGH,50)-LLV(LOW,50))*100;
BB:=SMA(AA,3,1);
CC:=SMA(BB,3,1);
生命线1: EMA(3*BB-2*CC,3),COLORRED;
EE:=IF(YEAR>=2072 AND MONTH>=1,0,1);
FF:=(HIGH+LOW+CLOSE*2)/4;
QQ:=EMA(FF,7);
WW:=STD(FF,7);
RR:=(FF-QQ)*100/WW;
TT:=EMA(RR,3)*EE;
YY:=EMA(TT,7);
生命线2:(EMA(YY,7)+100)/2-3*EE;
阻力线:EMA(生命线2,4)*EE;
金叉:= CROSS(生命线2,阻力线);
金叉1:=金叉>0;
DRAWTEXT(金叉1,阻力线,'★'),COLORRED;
金叉2:= CROSS(生命线1,生命线2);
金叉3:=金叉2>0;
DRAWTEXT(金叉3,生命线2,'★'),COLORRED;
{WY1002:=EMA(WY1001,3);
WY1003:=EMA(WY1002,3);
WY1004:=EMA(WY1003,3);
XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
STICKLINE(XYS0>=0,XYS0,0,2,0),COLORRED;
STICKLINE(XYS0<0,XYS0,0,2,0),COLORGREEN;
PJGJ:=AMOUNT/VOL/100;
SSRYDJX:=MA(PJGJ,13);
SSRCJL:=EMA(VOL,13);
SSRCJE:=EMA(AMOUNT,13);
SSRCBJX:=SSRCJE/SSRCJL/100;
CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;
XYSHSL:=EMA(VOL/CAPITAL*100,13);
ZZX:0,COLORWHITE;
STICKLINE(XYSHSL>6.1 AND CYS13>5 ,2 ,0 ,2,0 ),COLORGREEN;
STICKLINE(XYSHSL>3.8 AND CYS13>5 ,1.5 ,0 ,2 ,0 ),COLORYELLOW;
STICKLINE(XYSHSL>2.1 AND CYS13>5 ,1 ,0 ,2,0 ),COLORCYAN;
STICKLINE(XYSHSL>1.8 AND CYS13>5 ,0.5 ,0 ,2,0 ),COLORBLUE;
XYS1:MA(XYS0,1);
XYS2:MA(XYS0,2);}