{妖股之王主图源码如下}
妖股之王:(EMA(CLOSE,10)*7+EMA(CLOSE,20)*3)/10;
妖股启动:DMA(EMA(CLOSE,20),MAX(1,100*(SUM(VOL,5)/(3*CAPITAL)))),COLORWHITE ,DOTLINE;
启动线:IF(妖股之王>妖股启动,妖股之王,DRAWNULL),COLORRED,LINETHICK2;
妖王线:IF(妖股之王< 妖股启动,妖股之王,DRAWNULL),COLORGREEN,LINETHICK2;
MA10:=MA(CLOSE,5);
MA54:=MA(CLOSE,60);
ABC8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
ABC9:=FILTER(ABC8,10);
ABC10:=BARSLAST(ABC9);
ABC11:=REF(HIGH,ABC10+2);
ABC12:=REF(HIGH,ABC10+1);
ABC13:=REF(HIGH,ABC10);
ABC14:=MAX(ABC11,ABC12);
ABC15:=MAX(ABC14,ABC13);
ABC16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
ABC17:=ABC10< 150;
ABC18:=(OPEN-ABC15)/ABC15*100< 30;
ABC19:=(CLOSE-LLV(LOW,ABC10))/LLV(LOW,ABC10)*100< 50;
ABC20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100< 30;
ABC21:=VOL/MA(VOL,5)< 3.5;
ABC22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100< 80;
ABC25:=ABC16 AND ABC17 AND ABC18 AND ABC19 AND ABC20 AND ABC21 AND ABC22;
暴利:=FILTER(ABC25,15);
ACB1:=(((CLOSE-MA54)/MA54)< 0.1);
ACB2:=(((CLOSE-MA10)/MA10)< 0.3);
偏离率:=(((ACB1=1) AND (ACB2=1))*0.2);
平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);
妖股突破:=平台突破=-0.1;
XDF:=(暴利 OR 妖股突破);
AAC:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
AACA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05);
指标汇集:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
妖股王:=XDF AND C/REF(C,1)>1.095 AND 指标汇集 AND AACA,COLORRED;
DRAWICON(妖股王,L,9);
DRAWTEXT(妖股王,L*0.99,'★妖股王'),COLORYELLOW;
STICKLINE(妖股王,O,C,1,0),COLORMAGENTA;
{妖股之王副图源码如下}
MA10:=MA(CLOSE,10);
MA54:=MA(CLOSE,54);
ABC8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
ABC9:=FILTER(ABC8,10);
ABC10:=BARSLAST(ABC9);
ABC11:=REF(HIGH,ABC10+2);
ABC12:=REF(HIGH,ABC10+1);
ABC13:=REF(HIGH,ABC10);
ABC14:=MAX(ABC11,ABC12);
ABC15:=MAX(ABC14,ABC13);
T:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
MP:=SUM(IF(HD>0&&HD>LD,HD,0),14);
MM:=SUM(IF(LD>0&&LD>HD,LD,0),14);
PD:=MP*100/T;
MD:=MM*100/T;
A:=PD-MD>=0;
B:=PD-MD< 0;
D:=(PD-MD);
妖股之王:=D>=0;
STICKLINE(妖股之王,0,D,3,0),COLOR000055;
STICKLINE(妖股之王,0,D,2.8,0),COLOR000066;
STICKLINE(妖股之王,0,D,2.5,0),COLOR000077;
STICKLINE(妖股之王,0,D,2.2,0),COLOR000088;
STICKLINE(妖股之王,0,D,1.7,0),COLOR000099;
STICKLINE(妖股之王,0,D,1.2,0),COLOR0000AA;
STICKLINE(妖股之王,0,D,0.7,0),COLOR0000CC;
STICKLINE(妖股之王,0,D,0.2,0),COLOR0000FF;
F:=(PD-MD);
妖股启动:=F< 0;
STICKLINE(妖股启动,0,F,3,0),COLOR009900;
STICKLINE(妖股启动,0,F,2,0),COLOR00BB00;
STICKLINE(妖股启动,0,F,1,0),COLOR00DD00;
STICKLINE(妖股启动,0,F,0.3,0),COLOR00FF00;
ABC16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
ABC17:=ABC10< 150;
ABC18:=(OPEN-ABC15)/ABC15*100< 30;
ABC19:=(CLOSE-LLV(LOW,ABC10))/LLV(LOW,ABC10)*100< 50;
ABC20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100< 30;
ABC21:=VOL/MA(VOL,5)< 3.5;
ABC22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100< 80;
ABC25:=ABC16 AND ABC17 AND ABC18 AND ABC19 AND ABC20 AND ABC21 AND ABC22;
暴利:=FILTER(ABC25,15);
ACB1:=(((CLOSE-MA54)/MA54)< 0.1);
ACB2:=(((CLOSE-MA10)/MA10)< 0.3);
偏离率:=(((ACB1=1) AND (ACB2=1))*0.2);
平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);
妖股突破:=平台突破=-0.1;
XDF:=(暴利 OR 妖股突破);
AAC:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
AACA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05);
指标汇集:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
妖股王:=XDF AND C/REF(C,1)>1.095 AND 指标汇集 AND AACA,COLORRED;
STICKLINE(妖股王,0,16,0.6,0),COLORMAGENTA;
DRAWICON(妖股王,0,9);
DRAWTEXT(妖股王,0.68,' ★妖股王'),COLORYELLOW;