最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 双均线变色主图指标 (源码)

    正文概述    2024-04-07 07:13:56  
    STICKLINE(AA,CLOSE,OPEN,3,0),COLOR000099;
    STICKLINE(AA,CLOSE,OPEN,2.2,0),COLOR0000CC;
    STICKLINE(AA,CLOSE,OPEN,1.5,0),COLOR0000FF;
    STICKLINE(AA,CLOSE,OPEN,0.5,0),COLORCC66FF;
    STICKLINE(BB,CLOSE,OPEN,3,0),COLORFF7700;
    STICKLINE(BB,CLOSE,OPEN,2.2,0),COLORFF9900;
    STICKLINE(BB,CLOSE,OPEN,1.5,0),COLORFFBB00;
    STICKLINE(BB,CLOSE,OPEN,0.5,0),COLORCYAN;
    MAA:MAR1,COLOR00FF00,LINETHICK2;
    {www.9m8.cn 九毛八公式指标网 股票软件下载网_通达信股票指标公式}
    IF(MAA =REF(MAA,1),MAA,DRAWNULL),COLORRED,,LINETHICK2;
    IF(MAA REF(MAA,1),MAA,DRAWNULL),COLORFFFFFF,LINETHICK2;
    MAB:MA(CLOSE,P2),COLOR00FF00,LINETHICK2;
    IF(MAB =REF(MAB,1),MAB,DRAWNULL),COLORMAGENTA,LINETHICK2;
    IF(MAB REF(MAB,1),MAB,DRAWNULL),COLORGREEN,LINETHICK2;
    DRAWICON(MAA =REF(MAA,1) AND CROSS(MAA,MAB),MAA*0.98,1);
    DRAWICON(CROSS(MAB,MAA),MAB*1.02,2);
    VAR2:=(2*CLOSE+HIGH+LOW)/4;
    VAR3:=IF(YEAR =2099 AND MONTH 2,0,1);
    VAR4:=LLV(LOW,5);
    VAR5:=HHV(HIGH,4);
    VAR6:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
    VAR7:=EMA(0.667*REF(VAR6,1)+0.333* VAR6,2)*VAR3;
    DRAWTEXT(CROSS(VAR6, VAR7) AND VAR6 30,L-0.05,' 低吸'),COLOR00FFFF;
    DRAWTEXT(CROSS(VAR7, VAR6) AND VAR6 70,H+0.05,' 高抛'),COLOR00FFFF;
    DRAWICON(CROSS(VAR6, VAR7) AND VAR6 30,L-0.05,13);
    DRAWICON(CROSS(VAR7, VAR6) AND VAR6 70,H+0.05,14);
    AAA:= MAA =REF(MAA,1);{C =MAA;}
    BBB:= MAA REF(MAA,1);{ C }
    DDD:=MAB =REF(MAB,1);
    EEE:=MAB REF(MAB,1);
    TT:=IF(ISLASTBAR,240/FROMOPEN,1);
    NN:=120;
    HH:=HHV(V*TT,NN);
    LL:=LLV(V,NN);
    最高:=CONST(HH);
    最低:=CONST(LL);
    最高2:=CONST(HHV(H,NN));
    最低2:=CONST(LLV(L,NN));
    PP:=IF((最高2*0.9-(最高2-最低2)*0.5) CONST(LLV(L,20)),0.9,IF((最高2*0.9-(最高2-最低2)*0.5) CONST(LLV(L,50)),0.7,0.6)),NODRAW;
    RCC1:=最高2*0.9-(最高2-最低2)*PP;
    最低3:=MIN(RCC1,最低2);
    AA1:=最低3;
    STICKLINE(AAA,AA1-0.000*AA1,AA1-0.040*AA1,4,0),COLOR0000FF;
    STICKLINE(BBB,AA1-0.000*AA1,AA1-0.040*AA1,4,1),COLOR686868;
    STICKLINE(DDD,AA1-0.050*AA1,AA1-0.090*AA1,4,0),COLORFF00FF;
    STICKLINE(EEE,AA1-0.050*AA1,AA1-0.090*AA1,4,1),COLOR686868;
    DRAWTEXT_FIX(1,0.5,0.84,0,'★★ 红色--均线A持股★★粉色--均线B持股★★'),COLOR00FFFF;

    通达信双均线变色主图指标公式


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 双均线变色主图指标 (源码) 加入收藏