CC:=Abs((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
EE:=(1-14/100)*DD;
抄底用:=BETWEEN(C,EE*0.98,EE*1.01);
TJ1:=C/MA(C,40)<0.74;
TJ2:=(H-L)/REF(C,1)>0.05;
TJ3:=COUNT(TJ2,5)>1;
宝石底:=TJ1 AND TJ2 AND TJ3;
K:=100;
VAR1C:=DMA(CLOSE,vol/MA(VOL,4)/4);
VAR2C:=DMA(CLOSE,VOL/MA(VOL,33)/33);
VAR3C:=(CLOSE-VAR1C)/VAR1C*100<-11/K*100;
VAR4C:=(VAR1C-VAR2C)/VAR2C*100<-22.3/K*100;
VAR5C:=VAR3C AND VAR4C AND (OPEN>CLOSE OR OPEN
(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)(REF(OPEN,2)>REF(CLOSE,2) OR REF
(OPEN,2)REF(CLOSE,3) OR REF(OPEN,3)(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)REF(CLOSE,5) OR REF(OPEN,5)
REF(CLOSE,6) OR REF(OPEN,6)REF
(CLOSE,7) OR REF(OPEN,7)VAR6C:=DMA(CLOSE,VOL/MA(VOL,3)/3);
VAR7C:=DMA(CLOSE,VOL/MA(VOL,33)/33);
VAR8C:=(CLOSE-VAR6C)/VAR6C*100<-5;
VAR9C:=(VAR6C-VAR7C)/VAR7C*100<-18;
VARac:=(INDEXC-LLV(INDEXL,250))/(HHV(INDEXH,250)-LLV(INDEXL,250))*100;
VARBC:=SMA(VARAC,30,1);
VARCC:=SMA(VARBC,50,1);
VARDC:=VAR8C AND VAR9C AND (OPEN>CLOSE OR OPEN
(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)VAREC:=VARDC AND COUNT(VARDC,2)=1 ;
短线黑马:=VAR5C OR VAREC;
N1:=9;
mtm:=C-REF(C,1);
VAR1:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
VAR2:=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);
LC := REF(CLOSE,1);
rsi:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
EEA:=(C-REF(C,26))/REF(C,26)*10;
子墨抄底:=crOSS(RSI,20) AND VAR1<-45 AND VAR2<12 AND EEA<-2;
昨收:=REF(CLOSE,1);
趋势:=SMA(MAX(CLOSE-昨收,0),8,1)/SMA(ABS(CLOSE-昨收),8,1)*100;
黑马:=CROSS(趋势,15);
底部黑马1:=抄底用 AND 宝石底;
底部黑马2:=抄底用 AND 短线黑马;
底部黑马3:=宝石底 AND 短线黑马;
底部黑马4:=子墨抄底 AND 黑马;
底部黑马5:=短线黑马 AND 黑马;
XG:底部黑马1 OR 底部黑马2 OR 底部黑马3 OR 底部黑马4 OR 底部黑马5;