n:=5;
n1:=15;
H1:Ema(CLOSE,N);
H2:ema(H1,N1);
LH(牛熊界):EMA(CLOSE,250),CIRCLEDOT,COLORWHITE;
VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,5,1);
VAR3:=SMA(VAR2,8,1);
VAR4:=crOSS(VAR2,VAR3) AND VAR3<20;
VAR5:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR4;
VAR6:=IF(CLOSE>1000,VAR4,VAR5);
DRAWICON(CROSS(H1,H2) AND CLOSE<EMA(CLOSE,60),LOW,1);
DRAWICON(VAR6,H,2);
上轨: SMA(AMOUNT/vol/100,N,1)*1.13 ,COLORWHITE;
超买: SMA(AMOUNT/VOL/100,N,1)*1.21,CROSSDOT,COLORBLUE;
下轨: SMA(AMOUNT/VOL/100,N,1)*0.87,COLORWHITE;
超卖: SMA(AMOUNT/VOL/100,N,1)*0.79,CROSSDOT,COLORBLUE;
STICKLINE(H1>H2,H1,H2,1,1),COLORWHITE;
STICKLINE(H1<H2,H1,H2,1,1),COLORCYAN;