飞狐MACD短线指标公式

[复制链接]
查看186 | 回复0 | 2021-8-21 12:50:58 | 显示全部楼层 |阅读模式

中轴:0,Color808080,LINETHICK2;
SQX:=(C-MA(CLOSE,13))*100;
diff:EMA(ma(sqx,3),3),LINETHICK;
dea:EMA(diff,7),LINETHICK;
macd:(diff-dea)*1.5,LINETHICK;
STICKLINE((MACD > 0),0,MACD,4,0),COLOR0000CC;
STICKLINE((MACD > 0),0,MACD*0.9,4,0),COLOR0000EE;
STICKLINE((MACD > 0),0,MACD*0.8,4,0),COLOR0011FF;
STICKLINE((MACD > 0),0,MACD*0.7,4,0),COLOR0033FF;
STICKLINE((MACD > 0),0,MACD*0.6,4,0),COLOR0055FF;
STICKLINE((MACD > 0),0,MACD*0.5,4,0),COLOR0077FF;
STICKLINE((MACD > 0),0,MACD*0.4,4,0),COLOR0099FF;
STICKLINE((MACD > 0),0,MACD*0.3,4,0),COLOR00BBFF;
STICKLINE((MACD > 0),0,MACD*0.2,4,0),COLOR00DDFF;
STICKLINE((MACD > 0),0,MACD*0.1,4,0),COLOR00FFFF;
STICKLINE((MACD < 0),0,MACD,4,0),COLORCC0033;
STICKLINE((MACD < 0),0,MACD*0.9,4,0),COLOREE0033;
STICKLINE((MACD < 0),0,MACD*0.8,4,0),COLORFF1133;
STICKLINE((MACD < 0),0,MACD*0.7,4,0),COLORFF3333;
STICKLINE((MACD < 0),0,MACD*0.6,4,0),COLORFF5533;
STICKLINE((MACD < 0),0,MACD*0.5,4,0),COLORFF7733;
STICKLINE((MACD < 0),0,MACD*0.4,4,0),COLORFF9933;
STICKLINE((MACD < 0),0,MACD*0.3,4,0),COLORFFBB33;
STICKLINE((MACD < 0),0,MACD*0.2,4,0),COLORFFDD33;
STICKLINE((MACD < 0),0,MACD*0.1,4,0),COLORFFFF33;
STICKLINE(diff>dea and diff>ref(diff,1) and dea>ref(dea,1),diff,dea,4,1),ColorFF00FF;
{股旁网-股票公式网站 www.gupang.com}
STICKLINE(diff>dea and diff<ref(diff,1) and dea>ref(dea,1),diff,dea,4,1),ColorE3E300;
STICKLINE(diff<dea and diff<ref(diff,1) and dea<ref(dea,1),diff,dea,4,1),Color00D500;
STICKLINE(diff<dea and diff>ref(diff,1) and dea<ref(dea,1),diff,dea,4,1),Color2068FF;
RSV:=((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*200-100)*(abs(llv(diff,SYSPARAM(2))/100)-0.8);
K:SMA(RSV,3,1),LINETHICK;
d:SMA(K,3,1),ColorFF8000,LINETHICK1;
PARTLINE(k>d,k),Color0000FB,LINETHICK1;
PARTLINE(k<=d,k),Color00FFFF,LINETHICK1;

202108211230.jpg

202108211230.jpg

 

回复

使用道具 举报

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

本版积分规则