涨幅研究:=(((C-REF(C,1))/REF(C,1))-((INDEXC-REF(INDEXC,1))/REF(INDEXC,1)))*100>=0.07;{必须做收盘数据下载}
跌幅研究:=(((C-REF(C,1))/REF(C,1))-((INDEXC-REF(INDEXC,1))/REF(INDEXC,1)))<=-0.07;
振幅研究:=(H-L)/L>=0.15;{振幅大于15个点}
换手研究:=DYNAINFO(37)>=0.20;
三天涨幅:=(SUM((C-REF(C,1))/REF(C,1)*100,3))>=20;
三天跌幅:=(SUM((C-REF(C,1))/REF(C,1)*100,3))<=-20;
MX:=EMA(C,2);
MXA:=EMA(SLOPE(C,21)*20+C,42);
AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);
趋势线:=DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLORRED;
CC:=(CLOSE/趋势线);
MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);
MAAA:=((MA1-趋势线)/趋势线)/3;
TMP:=MA1-MAAA*MA1;
JJ:=IF(TMP<=趋势线,趋势线,DRAWNULL),LINETHICK3,COLORGREEN;
XJ:=IF(TMP<=趋势线,TMP,DRAWNULL),LINETHICK2,COLORBLUE;
建仓:=CROSS(MX,MXA),NODRAW;
SEL:=CROSS(MXA,MX);
{DRAWICON(建仓,L-0.8,9);}
{DRAWICON(SEL,H+0.1,2);}
CP:=MA(CLOSE,9),COLORCYAN,LINETHICK1;
JD:=MA(CLOSE,18),COLORMAGENTA;
{DRAWICON(CROSS(CP,JD) AND MX>=MXA,JD-0.1,1);}
BL:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;
XG:=SUMBARS(FILTER(BL,3),1);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
AAAB:=(DIF-DEA)*2*60;
起爆:=CROSS(AAAB-REF(AAAB,1),15);
;
{DRAWTEXT(起爆,(O+H)/2,'↖起爆'),COLORCYAN,LINETHICK2;}
MA5:=MA(C,5);
MA10:=MA(C,10);
MA21:=MA(C,21);
MA60:=MA(C,60);
操盘线:=MA(C,4);
安全线:=MA(C,19);
空:=EMA(CLOSE,5);
均衡:=EMA(空,0),COLORFFFFFF;
下趋势双线持币:=HHV(MA(HIGH,3),2);
上趋势单线持股:=LLV(MA(HIGH,3),1);
VAR5:=FILTER(均衡>REF(均衡,1) AND 下趋势双线持币<REF(下趋势双线持币,1) AND CLOSE>REF(CLOSE,1),11);
FF:=RANGE(C/MA21,0.97,1.15)OR RANGE(O/MA21,0.97,1.15);
金股:= VAR5 AND C>MA(C,21) AND EVERY(MA21>REF(MA21,1),7) AND FF;
{IF( 金股>=1,L*0.996,DRAWNULL);}
Q1:=MA((L+H+C)/3,5);
压力:=HHV(Q1,60);
AHC1:=CLOSE*VOL;
AHC2:=EMA((EXPMA(AHC1,3)/EXPMA(VOL,3)+EXPMA(AHC1,6)/EXPMA(VOL,6)+EXPMA(AHC1,12)/EXPMA(VOL,12)+EXPMA(AHC1,24)/EXPMA(VOL,24))/4,13);
上轨:=1.06*AHC2;
顶:=1.13*AHC2;
ZT:=REF(C,1)*1.1-C<0.01 AND H=C;
量化:=CROSS(C,上轨) AND ZT;
DRAWICON(量化,L*0.90,24);
DRAWICON(量化,L*0.92,25);
DRAWICON(量化,L*0.94,26);
超牛:=CROSS(C,顶) AND ZT;
BOLL:=MA(C,20);
UPPER:=BOLL+2*STD(C,20);
LOWER:=BOLL-2*STD(C,20);
大黑马:=CROSS(C,UPPER) AND C/REF(C,1)>1.05;
{DRAWTEXT(大黑马,L-1.15,'大黑马'),COLORYELLOW;}
敢死队:=大黑马 AND C>MA(C,60) AND C>MA(C,90) AND C>MA(C,120) AND C>MA(C,250);
DRAWTEXT(大黑马 AND C>MA(C,60) AND C>MA(C,90) AND C>MA(C,120) AND C>MA(C,250),L*1.03,'敢死队'),COLORYELLOW;
单阳:=C/REF(C,1)>=1.09 ;
龙大:=REF(C,BARSLAST(单阳));
LS0:=BARSLAST(单阳);
LS11:=IF(1,LS0=1,单阳);
LS21:=IF(1,LLV(L,1)>REF(L,1),1);
量化阳:=LS11 AND LS21;
LS12:=IF(2,LS0=2,单阳);
LS22:=IF(2,LLV(L,2)>REF(L,2),1);
量化阳2:=LS12 AND LS22;
LS13:=IF(3,LS0=3,单阳);
LS23:=IF(3,LLV(L,3)>REF(L,3),1);
量化阳3:=LS13 AND LS23;
LS14:=IF(4,LS0=4,单阳);
LS24:=IF(4,LLV(L,4)>REF(L,4),1);
量化阳4:=LS14 AND LS24;
LS15:=IF(5,LS0=5,单阳);
LS25:=IF(5,LLV(L,5)>REF(L,5),1);
量化阳5:=LS15 AND LS25;
LS16:=IF(6,LS0=6,单阳);
LS26:=IF(6,LLV(L,6)>REF(L,6),1);
量化阳6:=LS16 AND LS26;
LS17:=IF(7,LS0=7,单阳);
LS27:=IF(7,LLV(L,7)>REF(L,7),1);
量化阳7:=LS17 AND LS27;
LS18:=IF(8,LS0=8,单阳);
LS28:=IF(8,LLV(L,8)>REF(L,8),1);
量化阳8:=LS18 AND LS28;
LS19:=IF(9,LS0=9,单阳);
LS29:=IF(9,LLV(L,9)>REF(L,9),1);
量化阳9:=LS19 AND LS29;
LS110:=IF(10,LS0=10,单阳);
LS210:=IF(10,LLV(L,10)>REF(L,10),1);
量化阳10:=LS110 AND LS210;
C2:=REF(C,1),NODRAW;
涨停1:=REF(C,11)*1.1-C<0.01 AND H=C,NODRAW;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2) AND L=C,1,0),NODRAW;