以下是放大的公式源码和使用说明
成交量放大的选股公式源码:
VOLUME:VOL,VOLSTICK;
VAR1:=VOL/((H-L)*2-ABS(C-O));
主买:IF(C O,VAR1*(H-L),IF(C O,VAR1*((H-O)+(C-L)),VOL/2)),COLORRED,LINETHICK0;
主卖:IF(C O,0-VAR1*((H-C)+(O-L)),IF(C O,0-VAR1*(H-L),0+V/2)),COLOR00FF00,LINETHICK0;
DDX:=主买+主卖;
DX:=MA(DDX,5)*5;
DDX1:SMA(DX,3,1),COLORRED,LINETHICK1;
DDX2:SMA(DDX1,3,1),COLORYELLOW,LINETHICK1;
DDX3:EMA(DDX2,5),COLORF0F000,LINETHICK1;
X1:=(3*C+L+H+O)/6;
F:=(EMA(CLOSE,5)-EMA(CLOSE,21))*4;
VAR10:=C=HHV(C,4)ANDREF(C,1)=LLV(C,4);
VAR20:=C=LLV(C,4)AND(REF(C,1) REF(C,2)ORREF(C,1) REF(C,3))ORREF(C,1)=LLV(C,4)ANDC REF(C,2)ORREF(C,2)=LLV(C,4)ANDREF(C,1)=HHV(C,4)ANDC REF(C,1)ORREF(C,3)=LLV(C,4)ANDC REF(C,1)ANDC REF(C,2);
VAR30:=REF(C,1)=LLV(C,4)ANDC =REF(C,2)ORREF(C,2)=LLV(C,4)ANDREF(C,1) =REF(C,3)ANDREF(C,2) REF(C,4)ANDC =REF(C,1);
VAR40:=(20*X1+19*REF(X1,1)+18*REF(X1,2)+17*REF(X1,3)+16*REF(X1,4)+15*REF(X1,5)+
14*REF(X1,6)+13*REF(X1,7)+12*REF(X1,8)+11*REF(X1,9)+10*REF(X1,10)+9*REF(X1,11)+8*REF(X1,12)
+7*REF(X1,13)+6*REF(X1,14)+5*REF(X1,15)+4*REF(X1,16)+3*REF(X1,17)+2*REF(X1,18)+REF(X1,20))/210;
MTM:=C-REF(C,1);
DX1:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
CB:=EMA(VAR40,13);
卖1:=HHV(DX1,2)=HHV(DX1,7)ANDCOUNT(DX1 50,2)ANDCROSS(MA(DX1,2),DX1);
DRAWTEXT(FILTER(卖1=1,1),VOLUME*-0.1,'卖'),COLOR00C800;
买1:=LLV(DX1,2)=LLV(DX1,7)ANDCOUNT(DX1 0,2)ANDCROSS(DX1,MA(DX1,2));
DRAWTEXT(FILTER(DDX1 =DDX2AND买1=1,5),VOLUME*-0.1,'买'),COLORYELLOW;
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE-LC),0),5,1)/SMA(ABS((CLOSE-LC)),5,1))*100);
HD:=(HIGH-REF(HIGH,1));
LD:=(REF(LOW,1)-LOW);
DMP:=SUM(IF(((HD 0)AND(HD LD)),HD,0),10);
DMM:=SUM(IF(((LD 0)AND(LD HD)),LD,0),10);
PDI:=((DMP*100)/TR);
MDI:=((DMM*100)/TR);
ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI))*100),5);
WR10:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));
线:=(2*RSI5+ADX-WR10);
X_1:=MA(CLOSE,5);
X_2:=IF(X_1 REF(X_1,1),X_1,DRAWNULL);
X_3:=IF(CLOSE REF(CLOSE,1),88,0);
X_4:=IF(CLOSE/REF(CLOSE,1) 1.095ANDHIGH/CLOSE 1.035ANDX_3 0,91,0);
X_5:=CLOSE/REF(CLOSE,1) 1.048ANDCLOSE=HIGHANDBETWEEN(FORCAST(VOL,5),0.3*FORCAST(VOL,12),2.1*FORCAST(VOL,12));
X_6:=FILTER(X_4 90,30)=1;
X_7:=FILTER(X_5,60);
X_8:=X_2ANDX_7ANDX_6;
X_10:=X_5ANDCOUNT(X_5,9)=1;
X_11:=(CLOSE-EMA(CLOSE,5))/EMA(CLOSE,5)*100;
X_12:=EMA(EMA(EMA(CLOSE,50),50),50)*1.1;
X_13:=EMA(EMA(EMA(CLOSE,10),10),10)*1.09;
X_14:=CROSS(X_11,5)ANDCROSS(CLOSE,X_12)ANDCROSS(CLOSE,X_13);
X_15:=IF(CLOSE REF(CLOSE,1),88,0);
X_16:=IF(CLOSE/REF(CLOSE,1) 1.05ANDHIGH/CLOSE 1.01ANDX_15 0,91,0);
X_18:=FILTER(X_16 90,35);
X_19:=MA(CLOSE,10);
X_20:=MA(CLOSE,54);
X_21:=(CLOSE-X_20)/X_20
X_22:=(CLOSE-X_19)/X_19
X_23:=(X_21=1ANDX_22=1)*0.2;
X_24:=(X_23=0ANDREF(X_23,1)=0.2ANDREF(COUNT(X_23=0.2,10)=10,1)=1)*(-0.1);
X_25:=X_24=(-0.1);
X_26:=X_14ORX_25ORX_18ORX_8ORX_10;
STICKLINE(X_8,3,(-20),2,0),COLORMAGENTA;
STICKLINE(X_10,26,3,2,0),COLORFFCC00;
STICKLINE(X_14,49,26,2,0),COLORYELLOW;
STICKLINE(X_18,72,49,2,0),COLORGREEN;
STICKLINE(X_25,95,72,2,0),COLOR0000CC;
成交量放大的选股公式截图