妖股王指标:=POW(10,6)+241230-DATE;
通达信:=IF(妖股王指标>0,1,0);{通达信指标公式www.gs6699.com}
khkjh3:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),10);
khkjh4:=HIGH-REF(HIGH,1);
khkjh5:=REF(LOW,1)-LOW;
khkjh6:=SUM(IF(khkjh4>0 AND khkjh4>khkjh5,khkjh4,0),20);
khkjh7:=SUM(IF(khkjh5>0 AND khkjh5>khkjh4,khkjh5,0),20);
khkjh8:=LLV(LOW,240);
khkjh9:=HHV(HIGH,240);
CD:=khkjh6/khkjh3/2*100,COLORRED;
DH:=(CLOSE-khkjh8)/khkjh8*100,COLORYELLOW;
ZH:=khkjh7/khkjh3/2*100,COLORMAGENTA;
SH:=(khkjh9-CLOSE)/CLOSE*100,COLORGREEN;
HH:=DH/SH,COLORWHITE;
妖股王指标0:=HHV(CLOSE,20);
妖股王指标1:=EMA(妖股王指标0,30)*1.03;
妖股王指标2:=EMA(妖股王指标0,120)*1.03;
妖股王指标3:=(CLOSE+HIGH+LOW)/3;
妖股王指标4:=EMA(妖股王指标3,10);
妖股王指标5:=REF(妖股王指标4,1);
看涨:=IF(DH>15 AND DH>ZH,DH,DRAWNULL),COLORYELLOW,LINETHICK3;
超强:=IF(DH>30 AND DH>SH,DH,DRAWNULL),COLORCYAN,LINETHICK2;
XG:FILTER(看涨 OR 超强 AND DH>=HHV(DH,10) AND OPEN/妖股王指标4<1.08 AND OPEN/妖股王指标1<1.1 AND OPEN/妖股王指标2<1.2 AND CLOSE>妖股王指标1 AND CLOSE>=REF(CLOSE,1)*1.05 AND SH<60 AND DH<120,30);