源码
n:=10.2;
M1:=41;
Var1:=IF(YEAR=2999 AND MONTH>12,0,1);
短期: MA(AMOUNT/VOL/100,n)*Var1,LINETHICK2, POINTDOT , COLORblack;
中期: MA(AMOUNT/VOL/100,m1)*Var1, LINETHICK2 , COLORYELLOW;
长期: MA(AMOUNT/VOL/100,118)*Var1,LINETHICK2 , COLORMAGENTA;
Var2:=EMA(EMA(AMOUNT/VOL/100,5)*1.062,5)*1.062;
Var3:=EMA(EMA(AMOUNT/VOL/100,3)*0.538,3)*0.538;
DRAWTEXT(CLOSE>Var2,CLOSE,'←短卖'), , COLORblue;
DRAWTEXT(CLOSE<Var3,CLOSE,'←短买'), , Color00FF00;
STICKLINE(CLOSE>短期,短期,短期,2,0),LINETHICK2, , COLORRED;
STICKLINE(短期>CLOSE,短期,短期,2,0),LINETHICK2, , COLORblack;
STICKLINE(短期>CLOSE AND 中期>CLOSE,短期,短期,2,0),LINETHICK2, , COLORGREEN;
Var4:=CLOSE>短期 AND ABS(短期-长期<=1) AND CROSS(短期,中期);