均线上涨下跌变色指标公式

ZJ:EMA(C,13),COLOR0000FF;  

HY:EMA(C,20),COLORFF00FF;  

ZJ升:IF(ZJREF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK2;  

ZJ降:IF(ZJ=REF(ZJ,1),ZJ,DRAWNULL),COLORBLUE,LINETHICK2;  

HY升:IF(HYREF(HY,1),HY,DRAWNULL),COLORFF00FF,LINETHICK2;  

HY降:IF(HYREF(HY,1),HY,DRAWNULL),COLORFFAA00,LINETHICK2;  

STICKLINE(CZJ,H,L,0,0),COLORRED;  

STICKLINE(CZJ,C,O,-1,1),COLORRED;  

STICKLINE(C=ZJ,H,L,0,0),COLORFFFFFF;  

STICKLINE(CZJ,H,L,0,0),COLOR00FFFF;  

STICKLINE(CZJ,O,C,-1,1),COLOR00FFFF;  

STICKLINE(CHY,O,C,-1,1),COLORFFFF00;  

STICKLINE(CHY,H,L,0,0),COLORCYAN;  

DRAWTEXT(CROSS(C,ZJ),L,'B'),COLOR00FFFF;  

DRAWTEXT(CROSS(C,HY),L*0.99,'B'),COLORFFFF00;  

DRAWTEXT(CROSS(ZJ,C),H,'S'),COLOR00FFFF;  

DRAWTEXT(CROSS(HY,C),H*1.01,'S'),COLORFFFF00;  

P1:=5;P2:=30;  

A1:=MA(CLOSE,P1);A2:=REF(A1,1);J1:(A1-A2)/A2*100;MJ1:MA(J1,3);  

A3:=MA(CLOSE,P2);A4:=REF(A3,1);J2:(A3-A4)/A4*100;MJ2:=MA(J2,10);  

A5:=MA(C,10);A6:=REF(A5,1);  

J3:=(A5-A6)/A6*100;MJ3:=MA(J3,5);  

向上拐点:IF(COUNT(CROSS(J1,0),3)=1ANDMJ1MJ3ANDMJ3REF(MJ3,1)ANDJ3=0ANDJ1REF(J1,1),5,0),COLORRED,LINETHICK2;  

向下拐点:IF(CROSS(0,J1)=1ANDMJ3REF(MJ3,1)ANDMJ2REF(MJ2,2)ANDMJ3MJ2,-5,0),COLORGREEN,LINETHICK2;  

0,COLORWHITE;  

STICKLINE(J10ANDJ20,J1,0,2,0),COLORRED;  

STICKLINE(J10ANDJ20,0,J1,2,0),COLORYELLOW;  

STICKLINE(J10ANDJ20,J1,0,2,0),COLORMAGENTA;  

STICKLINE(J10ANDJ20,0,J1,2,0),COLORGREEN;  

DRAWICON(CROSS(J1,MJ1)ANDCOUNT(MJ1-3,3)=1,J1*1.5,1);  

DRAWICON(CROSS(MJ1,J1)ANDCOUNT(MJ13,3)=1,J1*1.8,2);  

选股:IF(CROSS(J1,MJ1)ANDCOUNT(MJ1-2,3)=1,2,0),COLORYELLOW,LINETHICK2;  

B1:=BARSLAST(REF(CROSS(J1,MJ1)ANDMJ10,1));  

背离:=REF(CLOSE,B1+1)CLOSEANDJ1REF(J1,B1+1)ANDCROSS(J1,MJ1);  

DRAWLINE(B1=0,MJ1,底背离,MJ1,0),COLORRED,LINETHICK3;  

B2:=BARSLAST(REF(CROSS(MJ1,J1)ANDMJ20,1));  

顶背离:=REF(CLOSE,B2+1)CLOSEANDREF(MJ1,B2+1)J1ANDCROSS(MJ1,J1);  

DRAWLINE(B2=0,MJ1,顶背离,MJ1,0),COLORWHITE,LINETHICK2;  

image.png

均线涨停跌停变色指标

  

M1:=5;M2:=10;M3:=20;M4:=120;  

VOLUME:VOL,VOLSTICK;  

MAVOL1:MA(VOLUME,M1),LINETHICK2;  

MAVOL2:MA(VOLUME,M2),LINETHICK0;  

MAVOL3:MA(VOLUME,M3),LINETHICK0;  

MAVOL4:MA(VOLUME,M4),LINETHICK2,COLORYELLOW;  

IF(MA(VOL,5)=REF(MA(VOL,5),1),MA(VOL,5),DRAWNULL),COLORRED,LINETHICK2;  

VAR2:=(HIGH-LOW);  

VAR3:=ABS((OPEN-CLOSE));  

VAR4:=(HIGH-IF((CLOSEOPEN),CLOSE,OPEN));  

VAR5:=(IF((CLOSEOPEN),OPEN,CLOSE)-LOW);  

VAR6:=((VAR3/VAR2)*VOL);  

VAR7:=((VAR4/VAR2)*VOL);  

VAR8:=((VAR5/VAR2)*VOL);  

VAR9:=IF(((VOL/CAPITAL)0.001),1,EXP(ABS(LOG(((VOL/CAPITAL)*100)))));  

VARA:=(((CLOSE-MA(CLOSE,5))/MA(CLOSE,5))*100);  

VARB:=(((MA(CLOSE,5)MA(CLOSE,10))AND(MA(CLOSE,10)MA(CLOSE,30)))AND(MA(CLOSE,30)MA(CLOSE,60)));  

VARC:=((MA(CLOSE,5)MA(CLOSE,10))AND(MA(CLOSE,10)MA(CLOSE,30)));  

DRAWTEXT(CROSS(MA(VOL,5),MA(VOL,10)),MA(VOL,5),'○'),LINETHICK2,COLORYELLOW;  

DRAWTEXT(CROSS(MA(VOL,10),MA(VOL,20)),MA(VOL,10),'◎'),LINETHICK2,COLORYELLOW;  

DRAWTEXT(CROSS(MA(VOL,20),MA(VOL,60)),MA(VOL,20),'●'),LINETHICK2,COLORYELLOW;  

相对地量:STICKLINE(((VAR92)AND(VOL(MA(VOL,5)/2))),0,VOL,2.2,0),,COLORYELLOW;  

地量:DRAWTEXT(((VAR92)AND(VOL(MA(VOL,5)/2))),VOL,'地量'),,COLORYELLOW;  

放量:STICKLINE((VOL(MA(VOL,5)*2.5)),0,VOL,2.2,0),,COLORYELLOW;  

高出:DRAWTEXT(((((((((VAR7VAR6)AND(VARA2))AND(VAR7VAR8))AND(CLOSEMA(CLOSE,5)))AND(CLOSEMA(CLOSE,30)))AND(HIGHMA(CLOSE,60)))AND(VOLMA(VOL,5)))AND(VAR7=MA(VOL,5))),VOL,'高出'),COLORYELLOW;  

低进:DRAWTEXT(((((((VAR8VAR6)AND(VAR8VAR7))AND(VARA(0-2)))AND(CLOSEMA(CLOSE,30)))AND(VAR8(MA(VOL,5)/2)))AND(MA(VOL,5)MA(VOL,10))),VOL,'低进'),,COLORYELLOW;  

强势参与:DRAWTEXT((((((VAR6(MA(VOL,5)*2))AND(VAR6=VAR7))AND(VAR6=VAR8))AND(CLOSEOPEN))OR((VOL(MA(VOL,5)*3))ANDVARB)),VOL,'参与'),,COLORYELLOW;  

空头释放:DRAWTEXT(((((((VAR6=VAR7)AND(VAR6=VAR8))AND(CLOSEOPEN))AND((VAR6/VOL)0.7))ANDVARC)AND(VAR6MA(VOL,5))),(VAR6*2),'空头释放'),,COLORYELLOW;  

MA5:MA(CLOSE,5),COLORRED,LINETHICK2;  

MA13:MA(CLOSE,13),COLOR00FF00;  

MA21:MA(CLOSE,21),COLORFF0000,LINETHICK1;  

MA34:MA(CLOSE,34),COLORFFFFFF;  

VAR1:=EMA(C,1);  

VAR2:=MA5;  

AA:=VAR1=VAR2;  

BB:=VAR2VAR1;  

买入:DRAWICON(CROSS(AA,BB),L*0.98,1);  

卖出:DRAWICON(CROSS(BB,AA),H*1.02,2);  

STICKLINE(AA,C,O,3,0),COLORFFBBFF;  

STICKLINE(AA,H,L,0,0),COLOR00FFFF;  

STICKLINE(BB,C,O,3,0),COLOR00FF00;  

STICKLINE(BB,H,L,0,0),COLORFF0000;  

STICKLINE(AA,CLOSE,OPEN,3.0,0),COLORFF00FF;  

STICKLINE(AA,CLOSE,OPEN,2.6,0),COLORFF22FF;  

STICKLINE(AA,CLOSE,OPEN,2.2,0),COLORFF44FF;  

STICKLINE(AA,CLOSE,OPEN,1.8,0),COLORFF66FF;  

STICKLINE(AA,CLOSE,OPEN,1.4,0),COLORFF88FF;  

STICKLINE(AA,CLOSE,OPEN,1,0),COLORFF99FF;  

STICKLINE(AA,CLOSE,OPEN,0.5,0),COLORFFAAFF;  

STICKLINE(AA,CLOSE,OPEN,0.1,0),COLORFFBBFF;  

STICKLINE(BB,CLOSE,OPEN,3,0),COLOR008800;  

STICKLINE(BB,CLOSE,OPEN,2.6,0),COLOR009900;  

STICKLINE(BB,CLOSE,OPEN,2.2,0),COLOR00AA00;  

STICKLINE(BB,CLOSE,OPEN,1.8,0),COLOR00BB00;  

STICKLINE(BB,CLOSE,OPEN,1.4,0),COLOR00CC00;  

STICKLINE(BB,CLOSE,OPEN,1,0),COLOR00DD00;  

STICKLINE(BB,CLOSE,OPEN,0.6,0),COLOR00EE00;  

STICKLINE(BB,CLOSE,OPEN,0.2,0),COLOR00FF00;  

STICKLINE(买入,O,(C-O)/2+O,3,0),COLOR335555;  

STICKLINE(买入,O,(C-O)/2+O,2.2,0),COLOR338888;  

STICKLINE(买入,O,(C-O)/2+O,1.5,0),COLOR33AAAA;  

STICKLINE(买入,O,(C-O)/2+O,1,0),COLOR33CCCC;  

STICKLINE(买入,O,(C-O)/2+O,0,0),COLOR33EEEE;  

STICKLINE(卖出,O,(C-O)/2+O,3,0),COLOR550055;  

STICKLINE(卖出,O,(C-O)/2+O,2.2,0),COLOR880088;  

STICKLINE(卖出,O,(C-O)/2+O,1.5,0),COLORAA00AA;  

STICKLINE(卖出,O,(C-O)/2+O,1,0),COLORCC00CC;  

STICKLINE(卖出,O,(C-O)/2+O,0.5,0),COLOREE00EE;

image.png

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