ma6:=MA(C,6);
ma18:=MA(C,18);
ma30:=MA(C,30);
ma60:=MA(C,60);
aaf:=LLV(LOW,34);
bbf:=MA(aaf,4);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),5.1,1)/SMA(ABS(CLOSE-LC),5.1,1)*100;
DRAWICON(CROSS(RSI,10) ,L*0.93,7);
Var27:=REF(CLOSE,1);
Var28:=SMA(MAX(CLOSE-Var27,0),5.5,1)/SMA(ABS(CLOSE-Var27),6,1)*100;
DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 AND EMA(CLOSE,12)/LOW>1.15,5),LOW*0.96,'☆'),linethick3 , colorred;
VARA:=((AMOUNT)/(VOL))/(100);
VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
VARC:=((SUM(AMOUNT,7))/(VARA))/(100);
VARD:=DMA(VARB,(VOL)/(VARC));
VARE:=((CLOSE-VARD)/(VARD))*(100);
VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
VARJ:=MA(VARE,20)+STD(VARE,20);
BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
aa:=SMA(VARF,3,1);
ss:=(REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (aa>79);
DRAWTEXT((REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (aa>ss),H*1.02,'☆'),LINETHICK3,colorblack;
A:=MA(CLOSE,3);
A1:=(CLOSE+HIGH+LOW)/(3);
B:=EMA(A1,10);
B2:=REF(B,1);
MA20:=EMA(CLOSE,20);
DRAWTEXT((B>B2),ma20,'※'),colorred;
DRAWTEXT((B<B2),ma20,'※'),colorblue;
var1:=EMA(CLOSE,3);
var2:=EMA(CLOSE,8);
MA5:=MA(CLOSE,5);
MA21:=EMA(CLOSE,21);
STICKLINE(var1<MA21,H,L,0,0),colorgreen;
STICKLINE(var1<MA21,C,O,8,0),Color10b210;
STICKLINE(var1<MA21,C,O,5,0),Color10c110;
STICKLINE(var1<MA21,C,O,2,0),Color10dd10;
STICKLINE(var1>MA21,H,L,0,0),Color106fff;
STICKLINE(var1>MA21,C,O,8,0),Color1047FF;
STICKLINE(var1>MA21,C,O,5,0),Color1055ff;
STICKLINE(var1>MA21,C,O,2,0),Color106fff;
STICKLINE(var1<var2 AND var1>MA21,H,L,0,0),Colorff5d10;
STICKLINE(var1<var2 AND var1>MA21,C,O,8,0),Colorff5d10;
STICKLINE(var1<var2 AND var1>MA21,C,O,5,0),Colorff7710;
STICKLINE(var1<var2 AND var1>MA21,C,O,2,0),Colorff9910;
STICKLINE(var1>var2 AND var1<MA21,H,L,0,0),Colorff00ff;
STICKLINE(var1>var2 AND var1<MA21,C,O,8,0),ColorFF43FF;
STICKLINE(var1>var2 AND var1<MA21,C,O,5,0),Colorff63ff;
STICKLINE(var1>var2 AND var1<MA21,C,O,2,0),Colorff83ff;
MA2:=MA(CLOSE,10);
MA34:=MA(CLOSE,34);
varA:=((AMOUNT)/(VOL))/(100);
varB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
varC:=((SUM(AMOUNT,7))/(varA))/(100);
varD:=DMA(varB,(VOL)/(varC));
varE:=((CLOSE-varD)/(varD))*(100);
varF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
varJ:=MA(varE,20)+STD(varE,20);
BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
K:=SMA(varF,3,1);
DRAWTEXT(REF(BIAS18,1)>=5 AND CROSS(varJ,varE) AND K>79,H*1.02,'风险'),colorblack;