强弱线
n=36 n1=64 n2=24
VAR1:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));
VAR2:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));
VAR3:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),28);
买入:EMA(IF(VAR2<MA(VAR3,N),MA(VAR3,N),VAR2),5),COLORRED;
卖出:EMA(IF(VAR1>MA(VAR3,N),MA(VAR3,N),VAR1),5),COLORGREEN;
强弱线:MA(VAR3,N),COLORYELLOW ,LINETHICK1;
STICKLINE(买入>强弱线,买入,强弱线,0,0),COLORRED;
STICKLINE(卖出<强弱线,卖出,强弱线,0,0), COLOR00FF00;
VAR4:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*80;
B: SMA(VAR4,7,1),COLORRED;
UU:IF(B>VAR4,B,VAR4),COLORCYAN ;
VAR5:=SMA(B,5,1);
E: IF(CROSS(B,VAR5) AND B<20,VAR5*2,VAR5),COLORRED;
GG:=IF(E>VAR4,E,VAR4),COLOR00FF00;
STICKLINE(B>VAR5,B,E,0,0),COLORMAGENTA;
STICKLINE(B<VAR5,B,VAR5,0,0),COLORLIBLUE;
DRAWICON(IF(B>VAR4,B,VAR4),B,1);