股票软件通达信精品指标公式-红盟超级MACD2指标源码通达信公式
公式源码:
均价:=(2*C+(H-L)/2+L+O)/4;
JGX:=(13*均价+12*REF(均价,1)+11*REF(均价,2)+10*REF(均价,3)+9*REF(均价,4)+8*REF(均价,5)+7*REF(均价,6)+ 6*REF(均价,7)+5*REF(均价,8)+4*REF(均价,9)+3*REF(均价,10)+2*REF(均价,11)+1*REF(均价,12))/(13+12+11+10+9+8+7+6+5+4+3+2+1),COLORRED,LINETHICK2;
决策线:=EMA(JGX,1),COLORRED,LINETHICK2;
黄金线:=((EMA(JGX,85)+EMA(JGX,15))/2+EMA(JGX,15))/2;
DIF:决策线-黄金线,COLORGREEN,LINETHICK2;
DEA:EMA(DIF,3),COLORWHITE,LINETHICK2;
MACD:2*(DIF-DEA),COLORSTICK,LINETHICK2;
股市红盟:IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
超级MACD:IF(DEA>=REF(DEA,1),DEA,DRAWNULL),COLORWHITE,LINETHICK2;
DRAWICON(CROSS(DIF,DEA),DEA*1,1);
DRAWICON(CROSS(DEA,DIF),DEA*1,2);
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
FF:=C=LLV(C,180);
GG:= DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
底背离:(FF AND GG AND DEA> LLV(DEA,180))*DEA,STICK,LINETHICK3,COLORRED;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
顶背离:(DD AND EE AND DEA< HHV(DEA,180))*DEA,STICK,LINETHICK3,COLORGREEN;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,1,1,0),COLORYELLOW;
DRAWTEXT(二次金叉,0.1,' 叉2'),COLORYELLOW;
低位金叉:CROSS(DIF,DEA) AND DIF<-0.1,COLORRED;
特别提示:
选股预警指标编写 ,不同主流行情软件间指标转换。 请联系微信:396950280
一个聚百万原创指标公式圈子