M1(1 10 5)
M2(5 30 10)
M3(10 60 20)
VOL;
n1:MA(VOL,M1);
n2:MA(VOL,M2);
DRAWGBK(n1>=n2,RGB(150,0,0),RGB(100,50,0),1);
DRAWGBK(n1<=n2,RGB(0,150,0),RGB(0,80,0),1);
MA1:MA(VOL,M1);
MA2:MA(VOL,M2);
MA3:=MA(VOL,M3);
ABC:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买:IF(CLOSE>OPEN,ABC*(HIGH-LOW),IF(CLOSE<OPEN,ABC*((HIGH-OPEN)+(CLOSE-LOW)),VOL /2)),colorred;
卖:IF(CLOSE>OPEN,ABC*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,ABC*(HIGH-LOW),VOL /2)),colorcyan;
STICKLINE(C>=REF(C,1) ,0,VOL,8.5,0),colorred;
STICKLINE(C<REF(C,1),0,VOL,8.5,0),colorcyan;
主进:VOL/MA(VOL,55)*100,coloryellow;
STICKLINE(主进>100 ,0,VOL,6.8,0),coloryellow;
N:=90;
VARB1:=HHV(HIGH,N);
VARB2:=LLV(LOW,N);
阻力线:=EMA((CLOSE-VARB2)/(VARB1-VARB2),21)-0.5;
操作线:=EMA((CLOSE-VARB2)/(VARB1-VARB2),5)-0.5;
突破:=CROSS(操作线,阻力线) AND 阻力线<0.1;
VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;
VAR4:=EMA(VAR3,5);
VAR5:=3*VAR3-2*VAR4;
牛:=CROSS(VAR5,VAR3) AND VAR3<2.1 AND C>O;
DRAWTEXT(牛,V*1.45,'牛'),coloryellow;
股价趋势:= 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部警戒:=10;
底1:=CROSS(股价趋势,底部警戒);
A1:=(2*CLOSE+HIGH+LOW)/4;
A2:=LLV(LOW,27);
A3:=HHV(HIGH,27);
A4:=EMA((A1-A2)/(A3-A2)*100,13);
A5:=EMA(0.618*REF(A4,1)+0.382*A4,3);
底2:=CROSS(A4,A5) AND A4<16;
波底:=底1 AND 底2;
底:=波底;
DRAWTEXT(底,V*1.35,'底'),colorred;
总手:=VOL;
zz:=IF(REF(C,1)>REF(O,1) AND O>REF(C,1)*1.014 AND C<O*1.02,1,3);
v5:=MA(V,5);
v12:=MA(V,12);
V34:=MA(V,34);
C6:=MA(C,6);
吸:=CROSS(C,C6) AND V>v5*1.2 AND V>v12*1.2 AND zz>2 AND C>H*0.975;
DRAWTEXT(吸,V*1.25,'吸'),colormagenta;
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
上升:=FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);
DRAWTEXT(上升,V*1.15,'45度上升'),colorbrown;
小巫见大巫选股:
A:=HHV(H,45)=HHV(H,60) AND LLV(L,60)=LLV(L,90);
B:=HHV(H,15)=HHV(H,30);
D:=HHV(H,15)*1.15<HHV(H,45) AND C>REF(C,1) AND C>O;
SELECT A AND B AND D;
|