YS1:=(HIGH+LOW+CLOSE*2)/4;
RK3:=EMA(YS1,150);
RK4:=STD(YS1,150);
RK5:=(YS1-RK3)*50/RK4;
RK6:=EMA(RK5,150);
RK7:=EMA(RK6,150);
涨:EMA(RK6,120)+100/2-0,LINETHICK0,colorred;
跌:EMA(涨,90),LINETHICK1,colorwhite;
雨季3:IF(CROSS(涨,85),0,100),colorblue,LINETHICK2;
雨季:IF(CROSS(涨,100),0,100),colorgreen,LINETHICK2;
彩虹1:EMA(跌,12),COLORF00FF0;
彩虹2:EMA(彩虹1,18),colorgreen;
彩虹3:=EMA(彩虹2,18),coloryellow;
彩虹4:=EMA(彩虹3,18),COLORCC9900;
STICKLINE(涨<REF(涨,1),涨,MA(涨,3),10,0 ),colorgreen;
STICKLINE(涨>REF(涨,1),涨,EMA(涨,3),10,0) ,colorred;
天晴1:IF(CROSS(跌,彩虹2) AND 涨> REF(涨,1),39,0),LINETHICK2,colorred;
雨季2:IF(CROSS(跌,100) AND 涨< REF(涨,1),0,100),LINETHICK4,colorgreen;
50,LINETHICK1,coloryellow;
趋势: 3*SMA((CLOSE-LLV(LOW,150))/(HHV(HIGH,150)-LLV(LOW,150))*100,45,1)-2*SMA(SMA((CLOSE-LLV(LOW,150))/(HHV(HIGH,150)-LLV(LOW,150))*100,45,1),60,1),colorwhite,LINETHICK0;
VAR1A:=1;
VAR2A:=((((2*CLOSE)+HIGH)+LOW) / 4);
低位金叉跟进:20;
高位死叉小心:90,COLORFFFF00;
VAR4A:=LLV(LOW,60);
VAR5A:=HHV(HIGH,48);
C1:(EMA((((VAR2A-VAR4A)/(VAR5A-VAR4A))*100),4)*VAR1A),COLORFF00FF, LINETHICK1;
C2:(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1A),COLORFFFFFF, LINETHICK1;
条件:=CROSS(C1,C2) AND C1<40;
条件0:=CROSS(C2,C1) AND C1>90;
TJ1:=CROSS(C1,C2);
TJ2:=CROSS(C2,C1);
TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;
TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;
DRAWTEXT(TJ3 AND 彩虹1>彩虹2 AND 涨> REF(涨,1) AND 趋势<100,65,'安全买点'),colorred;
STICKLINE((20>C2) AND 涨>跌 AND 跌>彩虹2 AND 涨>REF(涨,1),(10),0,5,0),colormagenta;
STICKLINE((20>C2) AND 涨<20,(10),0,5,0),colorred;
STICKLINE((85<C2) AND 涨>80,(80),100,5,0),colorblue;
STICKLINE((85<C2) AND 涨<REF(涨,1) AND 趋势<涨 AND 跌<100 AND 涨<跌,(80),100,5,0),colorgreen;