通达信指标如何导入 通达信见缝就插枪公式源码
2016-07-29 15:53 股票知识 zhishi.southmoney.com
N:=13;
{VAR1:=(2*CLOSE+OPEN)/3;}
VAR2:=(CLOSE-EMA(CLOSE,N))/EMA(CLOSE,N)*100;
VAR3:=(EMA(VAR2,1)+EMA(VAR2,3)+EMA(VAR2,6))/2;
A1:=EMA(VAR3,2);
A2:=EMA(A1,2);
A3:=EMA(A2,2);
DIF:EMA(CLOSE,12)-EMA(CLOSE,99),LINETHICK2,COLORCYAN;
DEA:EMA(DIF,9),LINETHICK2,COLORYELLOW;
MACD:(DIF-DEA)*2,COLORSTICK;
见缝就插枪:=MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1)<REF(MACD ,2)
AND REF(MACD ,2)<REF(MACD ,3)
AND REF(MACD ,3)<REF(MACD ,4);
STICKLINE(见缝就插枪,0.4,MACD,2,0),COLORYELLOW;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB;
见缝就插枪A:0,COLORYELLOW;
配了谁怕谁XG:CROSS(A1,A3) AND A1<=-5,LINETHICK2,COLORRED;
{VAR1:=(2*CLOSE+OPEN)/3;}
VAR2:=(CLOSE-EMA(CLOSE,N))/EMA(CLOSE,N)*100;
VAR3:=(EMA(VAR2,1)+EMA(VAR2,3)+EMA(VAR2,6))/2;
A1:=EMA(VAR3,2);
A2:=EMA(A1,2);
A3:=EMA(A2,2);
DIF:EMA(CLOSE,12)-EMA(CLOSE,99),LINETHICK2,COLORCYAN;
DEA:EMA(DIF,9),LINETHICK2,COLORYELLOW;
MACD:(DIF-DEA)*2,COLORSTICK;
见缝就插枪:=MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1)<REF(MACD ,2)
AND REF(MACD ,2)<REF(MACD ,3)
AND REF(MACD ,3)<REF(MACD ,4);
STICKLINE(见缝就插枪,0.4,MACD,2,0),COLORYELLOW;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB;
见缝就插枪A:0,COLORYELLOW;
配了谁怕谁XG:CROSS(A1,A3) AND A1<=-5,LINETHICK2,COLORRED;
更多股票公式相关资讯请关注南方财富网
(股票知识网zhishi.southmoney.com)
股票知识网声明:资讯来源于合作媒体及机构,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。