同花顺长线强势指标公式

[复制链接]
查看94 | 回复0 | 2021-8-20 22:56:38 | 显示全部楼层 |阅读模式

SHORT:=12;
LONG:=26;
M:=9;
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA);
Zero : 0;
斜率12:= REF(DIFF,1) - REF(DIFF,2);
斜率01:= DIFF - REF(DIFF,1);
DRAWTEXT(((斜率01 > 斜率12)AND(MACD>0)
AND (斜率12>0.0006)
),DIFF,'强势↑'), colorlired;
DRAWTEXT(((斜率01 > 斜率12)AND(MACD>0)
AND(REF(MACD,1)>MACD)
AND (斜率12>0.0006)
),Zero ,'强势↑必买'), colorlired;
DRAWTEXT(((REF(DIFF,2)>REF(DIFF,1))AND(REF(DIFF,1)<DIFF)),DIFF,' ↑上攻'), colorgreen;
 

202108202156.jpg

202108202156.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则