N:=38;
M:=7;
Var1:=(HIGH+3*LOW+CLOSE)/5;
Var2:=EMA(Var1,13)-EMA(Var1,34);
Var3:=EMA(Var2,5);
Var4:=(Var2-Var3)*5;
Var5:=IF(Var4>=1000,1000,IF(Var4<=Var1,Var1,Var4));
Var6:=FORCAST(FORCAST(Var5,N),M);
上涨: IF(Var5>Var6,Var5,Var6),COLORRED;
下跌: IF(Var5<Var6,Var5,Var6),COLORGREEN;
分水岭: FORCAST(FORCAST(Var5,N),M),LINETHICK2 , COLORMAGENTA;