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;