VAR1:=(C- LLV(L,32)) / (HHV(H,32) - LLV(L,32)) * 1.2 * C;
VAR2:=EMA(VAR1,3);
VAR3:=EMA(VAR1,5);
VAR4:=EMA(VAR1,7);
VARA:=VAR3 >= VAR4 AND VAR2 < REF(VAR2,1);
VARB:=VAR3 < VAR4 AND VAR2 > REF(VAR2,1);
超短:MA(VAR2,6);
短线:MA(超短,2);
加仓:=C/REF(C,1)>=1.09 OR ((H-L)/REF(C,1)>0.1 AND C=H);
STICKLINE(VAR2 >= VAR3,VAR4,VAR2,3,0),COLORRED;
STICKLINE(VARA,VAR2,VAR4,3,0),COLORFFEE44;
STICKLINE(VARA,VAR2,VAR4,1,0),COLORBLUE;
STICKLINE(VARB,VAR2,VAR4,3.3,0),COLOR00DDFF;
STICKLINE(VARB,VAR2,VAR4,1,0),COLORRED;
STICKLINE(加仓,VAR2,VAR4,1,0),COLORYELLOW;
DRAWTEXT(FILTER(VARB,3),VAR2*0.96,'醒醒'),COLORFF00FF;
DRAWTEXT(CROSS(短线,超短),VAR4*1.05,'睡觉'),COLORLIBLUE;
DRAWTEXT(CROSS(短线,超短) AND COUNT(CROSS(短线,超短),10)=2,VAR4*1.2,'跑'),COLORGREEN;