MACD短线指标 公式 源码[其他软件公式]
指标公式源码分析及使用说明参考:
源码:
中轴: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;
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;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容