MACD表达出KDJ副图指标 通达信公式(附图)

[复制链接]
查看118 | 回复0 | 2021-8-20 16:43:51 | 显示全部楼层 |阅读模式
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DIFF:EMA(J,8) - EMA(J,16),COLOR00FF00;
DEA:EMA(DIFF,5),COLORFF9900;
MACD:2*(DIFF-DEA),COLORSTICK;
0,COLORFF9900,DOTLINE;
TYP:FORCAST(((2*C+H+L)/4*0.618+C*0.382),3),COLOR00FFFF,LINETHICK0;
AAX:=(TYP-MA(TYP,9))/MA(TYP,9)*100;
VARM:=MIN(COUNT(TYP,0),9);
AAX1:=EMA(AAX,VARM) *VARM;
AAX2:=MA(AAX1,3);
AAX3:=MA(AAX1,5);
卖:AAX3>10  AND AAX1<REF(AAX1,1) AND CROSS(AAX2,AAX1),LINETHICK0;
减仓:FILTER(卖,5),LINETHICK0;
DRAWTEXT(减仓,10*1.6,'◆'),COLORCYAN;    
DRAWTEXT(减仓,10*1.5,'◇'),COLOR00FF00;    
DRAWTEXT(减仓,10*1.59,'◆'),COLORCYAN; 

14Q24a42110-44N0.jpg

14Q24a42110-44N0.jpg
回复

使用道具 举报

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

本版积分规则