以下是通达信芝麻开花主图及选股指标公式

DIFF:=EMA(CLOSE,12) – EMA(CLOSE,26);
 DEA:=EMA(DIFF,9);
 A1:=BETWEEN(REF(C,1)/REF(C,2),0.97,1.05) AND MAX(REF(C,1),REF(O,1))/MIN(REF(C,1),REF(O,1))<1.03;
 A2:=C=HHV(C,5) AND C>O AND C/REF(C,1)>1.03;
 A3:=MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30) AND MA(C,30)>MA(C,60) AND MA(C,30)>MA(C,120);
 A4:=DIFF>DEA;
 A5:=COUNT(REF(C,1)>REF(MA(C,20),1) AND REF(MA(C,10)>MA(C,20),1),5)=5;
 XG1:=COUNT(A1,5)=5 AND A2 AND A3 AND A4;
 DRAWTEXT(XG1,L*1.01,’←–芝麻开花’),colorwhite;

{
选股公式:

DIFF:=EMA(CLOSE,12) – EMA(CLOSE,26);
 DEA:=EMA(DIFF,9);
 A1:=BETWEEN(REF(C,1)/REF(C,2),0.97,1.05) AND MAX(REF(C,1),REF(O,1))/MIN(REF(C,1),REF(O,1))<1.03;
 A2:=C=HHV(C,5) AND C>O AND C/REF(C,1)>1.03;
 A3:=MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30) AND MA(C,30)>MA(C,60) AND MA(C,30)>MA(C,120);
 A4:=DIFF>DEA;
 A5:=COUNT(REF(C,1)>REF(MA(C,20),1) AND REF(MA(C,10)>MA(C,20),1),5)=5;
 XG1:COUNT(A1,5)=5 AND A2 AND A3 AND A4 ;
 }
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。