均线选股公式:=EMA(CLOSE,12) - EMA(CLOSE,26);
VVVDD1:=EMA(均线选股公式,9);
CCDDD:=2*(均线选股公式-VVVDD1),STICK;
AAAWW:=EMA(CCDDD,3);
STICKLINE(CCDDD>AAAWW AND CCDDD>0,0,CCDDD,3.2,0),COLOR000055;
STICKLINE(CCDDD>AAAWW AND CCDDD>0,0,CCDDD,2.7,0),COLOR000077;
STICKLINE(CCDDD>AAAWW AND CCDDD>0,0,CCDDD,2.1,0),COLOR000099;
STICKLINE(CCDDD>AAAWW AND CCDDD>0,0,CCDDD,1.5,0),COLOR0000BB;
STICKLINE(CCDDD>AAAWW AND CCDDD>0,0,CCDDD,0.9,0),COLOR0000DD;
STICKLINE(CCDDD>AAAWW AND CCDDD>0,0,CCDDD,0.3,0),COLOR0000FF;
STICKLINE(CCDDD>AAAWW AND CCDDD<0,0,CCDDD,3.2,0),COLOR555555;
STICKLINE(CCDDD>AAAWW AND CCDDD<0,0,CCDDD,2.7,0),COLOR777777;
STICKLINE(CCDDD>AAAWW AND CCDDD<0,0,CCDDD,2.1,0),COLOR999999;
STICKLINE(CCDDD>AAAWW AND CCDDD<0,0,CCDDD,1.5,0),COLORBBBBBB;
STICKLINE(CCDDD>AAAWW AND CCDDD<0,0,CCDDD,0.9,0),COLORDDDDDD;
STICKLINE(CCDDD>AAAWW AND CCDDD<0,0,CCDDD,0.3,0),COLORFFFFFF;
STICKLINE(CCDDD<AAAWW,0,CCDDD,3.2,0),COLORB20000;
STICKLINE(CCDDD<AAAWW,0,CCDDD,2.7,0),COLOREC0000;
STICKLINE(CCDDD<AAAWW,0,CCDDD,2.1,0),COLORFF4600;
STICKLINE(CCDDD<AAAWW,0,CCDDD,1.5,0),COLORFF6300;
STICKLINE(CCDDD<AAAWW,0,CCDDD,0.9,0),COLORFF8B00;
STICKLINE(CCDDD<AAAWW,0,CCDDD,0.3,0),COLORFFAB00;
STICKLINE(CCDDD>=0 OR CCDDD<=0,0,0,50,1),COLORWHITE;
DIF:均线选股公式,COLOR33FF33,LINETHICK1;
DEA:VVVDD1,COLORYELLOW,LINETHICK1;
MACD:CCDDD,NODRAW,COLORMAGENTA;
N:=7; N2:=8; N3:=9;
WWW11:=REF(MA(C,20),10);WWW1:=O-WWW11;WWW2:=H-WWW1;WWW3:=L-WWW1;WWW4:=C-WWW1;MID:=MA(C,20);
UPPER:=MID+2*STD(C,20);LOWER:=MID-2*STD(C,20);
EEED1:=(C-LOWER)/(UPPER-LOWER)*100;
EEED2:=EEED1-EMA(EEED1,5);K1:=SUM(LLV(EEED2,4),4)/4;V3:=EMA(EEED2,64)*10;V4:=EMA(0.4*EEED2*(-1),3);
EEED3:=-1*EMA(EEED2,39)*10;A:=V3>10;B:=EEED2>V4;D:=EEED3>10;E:=V3<=10 OR EEED2<=V4 OR EEED3<=10;
CCCC1:MA(WWW4, N);
CCCC2:MA(WWW4, N2);
CCCC3:MA(WWW4, N3);
STICKLINE(C,0,0,6,0),COLORD9D919;
STICKLINE(WWW4>=WWW1 AND E,WWW2,WWW3,0,0), COLORYELLOW;
STICKLINE(WWW4>=WWW1 AND E,WWW4,WWW1,2,0) ,COLORYELLOW;
STICKLINE(WWW4< WWW1 AND E,WWW2,WWW3,0,0) ,COLORYELLOW;
STICKLINE(WWW4< WWW1 AND E,WWW4,WWW1,2,0) ,COLORYELLOW;
STICKLINE(WWW1> WWW4 AND A ,WWW3,WWW2,0,0),COLORFF0000;
STICKLINE(WWW1> WWW4 AND A ,WWW4,WWW1,2,0),COLORFF0000;
STICKLINE(WWW1<=WWW4 AND A,WWW3,WWW2,0,0),COLORYELLOW;
STICKLINE(WWW1<=WWW4 AND A,WWW4,WWW1,2,1),COLORYELLOW;
STICKLINE(WWW1> WWW4 AND B,WWW3,WWW2,0,0),COLORRED;
STICKLINE(WWW1> WWW4 AND B,WWW4,WWW1,2,0),COLORRED;
STICKLINE(WWW1<=WWW4 AND B,WWW3,WWW2,0,0),COLORRED;
STICKLINE(WWW1<=WWW4 AND B,WWW4,WWW1,2,1),COLORRED;
STICKLINE(WWW1> WWW4 AND D,WWW3,WWW2,0,0),COLORGREEN;
STICKLINE(WWW1> WWW4 AND D,WWW4,WWW1,2,0),COLORGREEN;