以下是通达信五彩通道主图指标公式

    C/C++Code复制内容到剪贴板

    Var2:=REF(CLOSE-OPEN,2);

    Var3:=REF(CLOSE,1);

    Var4:=REF(CLOSE,2);

    Var5:=REF(CLOSE,3);

    Var6:=REF(CLOSE,4);

    Var7:=MAX(MAX(MAX(CLOSE,Var3),Var4),Var5);

    Var8:=MIN(MIN(MIN(CLOSE,Var3),Var4),Var5);

    红持股1:STICKLINE(CLOSE=Var7AND(Var3>=Var4ORVar3>=Var5)ORVar3=Var7AND(Var4=Var8ORVar5=Var8)ANDCLOSE>=Var4ORVar4=Var7ANDVar5=Var8ANDCLOSE>=Var3ORVar5=Var7ANDCLOSE>=Var3ANDCLOSE>=Var4,Var3,CLOSE,5,1),COLORRED;

    红持股:红持股1,colorred;

    品红变盘:STICKLINE(CLOSE=Var7ANDVar3=Var8,Var4,CLOSE,5,1),COLORff00ff;{MAGENTA;}

    黄下跌:STICKLINE(CLOSE=Var8AND(Var3<Var4ORVar3<Var5)ORVar3=Var8AND(Var4=Var7ORVar5=Var7)ANDCLOSE<Var4ORVar4=Var8ANDVar5=Var7ANDCLOSE<Var3ORVar5=Var8ANDCLOSE<Var3ANDCLOSE<Var4,Var3,CLOSE,5,0),COLOryellow;

    绿买:STICKLINE(Var3=Var7ANDCLOSE=Var8,Var4,CLOSE,5,0),COLOR00ff00;{GREEN;}

    STICKLINE(Var3=Var8ANDCLOSE>=Var4OR(Var4=Var8ANDVar3<=Var5ORVar5=Var8ANDVar3<=Var4)ANDVar4

    =Var3,Var3,Var4,5,0),COLOR00ff00;{GREEN;}

    蓝卖:STICKLINE(Var3=Var7ANDCLOSE

    Var5ORVar5=Var7ANDVar3>Var4)ANDVar4>=Var6ANDCLOSE<Var3,Var3,Var4,5,1),COLORBLUE;

    Var9:=SAR(5,1,5);

    Var10:=EMA(CLOSE,30);

    Var11:=IF(CLOSE>450,8,IF(CLOSE>=20ANDCLOSE<150,0.200,IF(CLOSE

   <20and=""close="">=10,0.070,IF(CLOSE<10,0.030,0.070))));

    变色龙:STICKLINE(CLOSE>Var9,Var10,Var10+Var11,6,0),COLORff00ff;

    STICKLINE(CLOSE<Var9,Var10,Var10-Var11,6,0),COLORffcc66;

    STICKLINE(CROSS(CLOSE,Var9),Var10,Var10-Var11,6,0);

    STICKLINE(CROSS(Var9,CLOSE),Var10,Var10+Var11,6,0),COLORFF0066;

    Var22:=MA(LLV(CLOSE,9)*1.1,14)*1;

    Var33:=MA(HHV(CLOSE,26)*0.9,14)*1;

    Var55:=EMA((HIGH+LOW+CLOSE)/3,3);

    VarB:=AMOUNT/(100*VOL);

    VarC:=MA(VarB,34);

    VarD:=MA(CLOSE,26);

    通道:(VarD+VarC)/2,pointdot,coloryellow;

    阻力:VarD+2*STD(CLOSE,34),LINETHICK2,COLORGREEN;

    支持:(VarD-2*STD(CLOSE,26)),LINETHICK2,colorgreen;

    VarE:=MA(WINNER(CLOSE),34)*100;

    警:DRAWTEXT(VarE>60ANDHIGH>阻力,HIGH,'★警'),COLORYELLOW;

    突破:DRAWTEXT(VarE<15ANDCROSS(Var55,通道),LOW,'★突破'),colorwhite;

 

文章来源 :    通达信五彩通道主图(通达信)-通达信公式-公式网

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