以下是通达信展翅高飞及选股公式源码

通达信公式展翅高飞及选股

MAC5:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);
M5:=MA(MAC5,5);
AA:=PLOYLINE(CROSS(MAC5,M5),M5);
AAB:=PLOYLINE(CROSS(M5,MAC5),MAC5);
W:COUNT(CROSS(MAC5,M5),AA<REF(AA,5) AND AAB>REF(AAB,5));
STICKLINE(IF(W,-120,0),+1,0,4,0),COLOR000088;
STICKLINE(IF(W,-120,0),+1,0,3,0),COLOR0000AA;
STICKLINE(IF(W,-120,0),+1,0,2,0),COLOR0000CC;
STICKLINE(IF(W,-120,0),+1,0,1.4,0),COLOR0000EE;
STICKLINE(IF(W,-120,0),+1,0,0.9,0),COLOR0000EE;
STICKLINE(IF(W,-120,0),+1,0,0.3,0),COLORLIMAGENTA;
STICKLINE(IF(W,-120,0),+0.9,0,7,0),COLOR770077;
STICKLINE(IF(W,-120,0),+0.9,0,6,0),COLOR990099;
STICKLINE(IF(W,-120,0),+0.9,0,5,0),COLORBB00BB;
STICKLINE(IF(W,-120,0),+0.9,0,4,0),COLORDD00DD;
STICKLINE(IF(W,-120,0),+0.9,0,3,0),COLORFF00FF;
STICKLINE(IF(W,-120,0),+0.9,0,2,0),COLORDD00DD;
STICKLINE(IF(W,-120,0),+0.6,0,7,0),COLOR003300;
STICKLINE(IF(W,-120,0),+0.6,0,6,0),COLOR005500;
STICKLINE(IF(W,-120,0),+0.6,0,5,0),COLOR007700;
STICKLINE(IF(W,-120,0),+0.6,0,3.5,0),COLOR009900;
STICKLINE(IF(W,-120,0),+0.6,0,2,0),COLOR00CC00;
STICKLINE(IF(W,-120,0),+0.3,0,7,0),COLOR666666;
STICKLINE(IF(W,-120,0),+0.3,0,6,0),COLOR777777;
STICKLINE(IF(W,-120,0),+0.3,0,5,0),COLOR888888;
STICKLINE(IF(W,-120,0),+0.3,0,4,0),COLOR999999;
STICKLINE(IF(W,-120,0),+0.3,0,3,0),COLORDDDDDD;
STICKLINE(IF(W,-120,0),+0.3,0,2,0),COLORFFFFFF;
DRAWTEXT(W,0.9,”展”),COLORYELLOW;
DRAWTEXT(W,0.75,”翅”),COLORYELLOW;
DRAWTEXT(W,0.45,”高”),COLORRED;
DRAWTEXT(W,0.15,”飞”),COLORRED;

{
选股公式:

MAC5:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);
M5:=MA(MAC5,5);
AA:=PLOYLINE(CROSS(MAC5,M5),M5);
AAB:=PLOYLINE(CROSS(M5,MAC5),MAC5);
展翅高飞:COUNT(CROSS(MAC5,M5),AA<REF(AA,5) AND AAB>REF(AAB,5));
}

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