以下是通达信钓鱼岛选股公式源码

通达信钓鱼岛选股公式源码

MA1:=MA(C,5);MA2:=MA(C,10);MA3:=MA(C,20);

MA4:=MA(C,30);MA5:=MA(C,60);

M1:=5;M2:=10;M3:=20;M4:=60;P:=VOL;

M5:=MA(P,M1);M10:=MA(P,M2);M20:=MA(P,M3);M60:=MA(P,M4);

我爱钓鱼岛:=MA(P,M1)>MA(P,M4)*0.95;

VOLUME:=VOL;

LB:=VOL/REF(MA(VOL,5),1)COLORGREEN;

LONG:=26;SHORT:=12;M:=9;

DIFF:=EMA(CLOSE,12) – EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

日本:=DEA>REF(DEA,1);鬼子:=CROSS(DIFF,REF(DIFF,1));该死!:=日本 AND 鬼子;

MACD1:=MACD+100;

OZ:=COUNT(CROSS(DIFF,DEA) AND DIFF>0,BARSLAST(CROSS(DIFF,DEA) AND DIFF<0));

LS:=IF(CROSS(DIFF,DEA) AND OZ=1,333,0)COLORFFFF00,LINETHICK4;

LSS:=IF(CROSS(DEA,DIFF) AND DIFF>0

AND DEA>0,0.4,0)COLORGREEN,LINETHICK2;

中国领土:=REF(EXIST(LSS,12),1)

AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>4.5/100 AND LB>2.2;

钓鱼岛:IF((LS=333 OR REF(LS=333,1))

AND (REF(EXIST(LSS,7),1) OR 中国领土) AND LB>2

AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>2/100

AND C>MA1 AND C>MA2 AND C>MA3 AND MA1>MA2*0.99 AND MA1>REF(MA1,1)

AND MA1>MA5 AND MA2>MA5 AND C>MA5

AND MA3<MA5*1.2,925,0)COLORYELLOW,LINETHICK6;

DRAWTEXT((LS=333 OR REF(LS=333,1))

AND (REF(EXIST(LSS,7),1) OR 中国领土) AND LB>2

AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>2/100

AND C>MA1 AND C>MA2 AND C>MA3 AND MA1>MA2*0.995

AND MA1>MA5 AND MA2>MA5 AND C>MA5

AND MA3<MA5*1.2,500,’向解放军致敬!’),COLORRED;

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