同花顺能量柱形指标公式

[复制链接]
查看127 | 回复0 | 2021-8-20 21:36:14 | 显示全部楼层 |阅读模式

N:=3;
M:=5;
柱:SUM(IF(C>REF(C,1),VOL,IF(C<REF(C,1),-VOL,0)),0)/SHGZG,COLORSTICK;
短:EMA(柱,1),colorred;
中:EMA(EMA(EMA(EMA(柱,1),2),1),2),colorgreen;
长:EMA(EMA(EMA(柱,3),6),9),colorcyan;
UPT3:=TROUGHBARS(3,N,M)<REF(TROUGHBARS(3,N,M),1);
UPT2:=TROUGHBARS(2,N,M)<REF(TROUGHBARS(2,N,M),1);
UPT1:=TROUGHBARS(1,N,M)<REF(TROUGHBARS(1,N,M),1);
DNP3:=PEAKBARS(3,N,M)<REF(PEAKBARS(3,N,M),1);
DNP2:=PEAKBARS(2,N,M)<REF(PEAKBARS(2,N,M),1);
DNP1:=PEAKBARS(1,N,M)<REF(PEAKBARS(1,N,M),1);
DRAWTEXT(UPT3 OR UPT2 OR UPT1,短,'B'),colorgreen;
DRAWTEXT(DNP3 OR DNP2 OR DNP1,短,'S'),colorred;

202108202134.jpg

202108202134.jpg

 

回复

使用道具 举报

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

本版积分规则