MM:=IF(C>=1000,2,150);
DIFF1:=EMA(CLOSE,10) - EMA(CLOSE,21);
DIFF5:DIFF1*MM,LINETHICK0,COLORRED;
DEA1:=EMA(DIFF1,7);
A1:SMA(DIFF5,3,1)*(-1)+100,COLOR00FF00,LINETHICK0;
{- }
A2:SMA(DEA1,3,1)*(-1)+100,COLORGREEN,LINETHICK0;
山峰:=(A1-EMA(EMA(A2,3),20))*5;
山峰1:=IF(山峰<REF(山峰,1) AND 山峰>0,0,山峰);
DRAWBAND(0,RGB(0,22,248),IF(山峰>=0,山峰,0),RGB(0,22,248));
DRAWBAND(IF(山峰<REF(山峰,1) AND 山峰>0,山峰,0),RGB(2,92,246),0,RGB(2,92,246));