内容导航:
抢筹指标公式
公式解读:
一、资金抢筹指标公式
N:=10;
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
阶段卖:3.2,COLORC6C600;
3.5,COLOR0088FF;
清仓:3.5,COLORFF75FF;
动力线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
STICKLINE(动力线 REF(动力线,1),动力线,REF(动力线,1),3,1),COLORRED;
STICKLINE(动力线 =REF(动力线,1),动力线,REF(动力线,1),3,1),COLOR00FF00;
WJ:=(HIGH+LOW+CLOSE)/3;
VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
VD5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
VD6:=(VD1*VD5);
VD7:=(VD2*VD5);
VD8:=(VD3*VD5);
VD9:=(VD4*VD5);
■买入量:=(VD9+VD8),COLOR0066FF,NODRAW;
■卖出量:=(VD6+VD7),COLORCYAN,NODRAW;
■买入资金:■买入量*CLOSE/100,COLOR00FFFF,NODRAW;
■卖出资金:■卖出量*CLOSE/100,COLOR66FF00,NODRAW;
资金进出:■买入资金-■卖出资金,NODRAW;
资金比:=资金进出/(■卖出资金+■买入资金);
买卖资金:买卖资金比+REF(买卖资金比,1),NODRAW;
STICKLINE(买卖资金量比 =0,0,买卖资金量比,0.5,0),COLORRED;
STICKLINE(买卖资金量比 0,0,买卖资金量比,0.9,0),COLORCYAN;
HH0:=CONST(HHV(H,120))*1;
LL0:=CONST(LLV(L,120))*1;
MM0:=CONST((HH0+LL0)/2);
HH1:=IF(CONST(C) MM0,LL0-(HH0-LL0)*0.4,LL0-(HH0-LL0)*0.4),COLORRED;
LL1:=LL0;HLMAX:=MAX(HH1,LL1);
HLMIN:=MIN(HH1,LL1);
HLMN1:=(HLMAX+HLMIN)/2;
HLMN2:=(HLMAX-HLMIN);
HLMN3:=HHV(V,250)/2;
HLMN4:=HHV(V,250);
VZ:=(V-HLMN3)*HLMN2/HLMN4+HLMN1;
T:=V=LLV(V,20);
{显示涨跌停}
STICKLINE(C/REF(C,1) 1.099,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,0),COLORRED;
STICKLINE(C/REF(C,1) 0.901,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,0),COLORGREEN;
{资金异常动能显示}
VY:=(0-HLMN3)*HLMN2/HLMN4+HLMN1;
STICKLINE(V =2*REF(V,1),VZ,VY,0.9,0),COLORGREEN;
STICKLINE(V =3*REF(V,1),VZ,VY,0.6,0),COLOR3300CC;
VPT:SUM(VOL*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1),0);
M:=6;
MAVPT:MA(VPT,M);
V1:=MIN(REF(VOL,1),REF(VOL,2));
V2:=MIN(REF(VOL,3),REF(VOL,4));
V3:=MIN(REF(VOL,5),REF(VOL,6));
V4:=MIN(REF(VOL,7),REF(VOL,8));
V5:=MIN(REF(VOL,9),REF(VOL,10));
V6:=MIN(REF(VOL,11),REF(VOL,12));
V7:=MIN(REF(VOL,13),REF(VOL,14));
V8:=MIN(REF(VOL,15),REF(VOL,16));
W1:=MIN(MIN(V1,V2),MIN(V3,V4));
W2:=MIN(MIN(V5,V6),MIN(V7,V8));
ZM1:=MIN(W1,W2);
MAVOL7:MA(ZM1,7);
MAVOL14:MA(ZM1,14);
MAVOL90:MA(ZM1,90);
CN601:=HHV(V,5);{5日最高量}
CN602:=O C;
CN702:=C O;
CN703:=C=O;
CN704:=((SUM(V,5)/CN601));
CN705:=IF(CN704 0.3,1,0);{大资金}
CN706:=IF(CN602ANDCN705,V,0);{大资金流出}
CN707:=IF(CN702ANDCN705,V,0);{大资金流入}
CN708:=IF(CN703ANDCN705,V,0);{不明流向大资金}
累积资金流出:SUM(CN706,9),COLORCYAN;
累积资金流入:SUM(CN707,9),COLORRED;
不明流向大资金:SUM(CN708,9),COLORWHITE;
CN709:=IF((CN703ORCN602ORCN702)ANDCN705,V,0);{大资金累积}
累积大资金总和:SUM(CN709,9),COLORBLUE;
VAR1:=EMA(HHV(HIGH,500),21);
VAR2:=EMA(HHV(HIGH,250),21);
VAR3:=EMA(HHV(HIGH,90),21);
VAR4:=EMA(LLV(LOW,500),21);
VAR5:=EMA(LLV(LOW,250),21);
VAR6:=EMA(LLV(LOW,90),21);
VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);
VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21);
VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21);
VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);
VARB:=REF(LOW,1);
VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;
VARD:=EMA(IF(CLOSE*1.35 =VARA,VARC*10,VARC/10),3);
VARE:=LLV(LOW,30);
VARF:=HHV(VARD,30);
VAR10:=IF(MA(CLOSE,58),1,0);
XG:=EMA(IF(LOW =VARE,(VARD+VARF*2)/2,0),3)/618*VAR10;
STICKLINE(XG,0,8,2,0),COLORLIMAGENTA;
CJ:=(H+L+2*O+3*C)/7;
线:SMA((CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*100,3,1),colorffffff;
DK:=INTPART(276/POW(DATATYPE+0.3,2)-1.1);
DN:=if(DK 5,5,DK);
短筹:SMA(SMA((PWINNER(36,66*CJ/100)+0.618*PWINNER(18,86*CJ/100))*61.8,1.2*dn,0.41*DN),2.2*DN,2.2*DN-1),linethick2,coloryellow;
抢筹:=if(slope(短筹,0.4*DN) =0,slope(短筹,0.4*DN)*POW(0.61*DN,1.5),0);
活筹:=0.28*短筹+4.62*抢筹-3;
TT:=(HHV(atan(slope(活筹,0.6*DN)*0.58)*180/3.14159,0.6*DN)+1.11*短筹)/1.916;
屯:=SMA(TT,2.4*DN,0.6*DN);
屯筹:(2.28*HHV(屯,1.6*DN)+SMA(屯,2.4*DN,1))/2.801,COLORFFff00;
PARTLINE(屯筹,slope(屯筹,0.4*DN) 0),colorred,linethick3;
PARTLINE(屯筹,slope(屯筹,0.4*DN) =0),colorgreen,linethick3;
QL:=(抢筹*0.8+slope(短筹,0.4*DN)*(60-短筹)*0.75+slope(屯筹,0.6*DN)*(88-屯筹)*0.45+slope(屯,0.6*DN)*(屯-100)*0.2)*pow(短筹*DN/429,0.5);
潜筹:=if(slope(QL,1.6*DN) 0,0.22*SMA(QL,2.4*DN,2.4*DN-1)+0.44*HHV(QL,1.6*DN)-4,0);
潜伏期:=BARSLAST(cross(40,潜筹));
DRAWICON(CROSS(线,50),47,10);
DRAWICON(屯筹 2.5AND潜筹 1.5,0,10);
DRAWICON(屯 80AND屯筹 70AND线 88,105,11);
DRAWICON(CROSS(屯,短筹)AND短筹 15AND屯筹 15,5,1);
DRAWICON(CROSS(屯筹,线)AND屯筹 80,85,2);
DRAWICON(COUNT(潜伏期 REF(潜伏期,1),4)=4AND潜筹 屯筹AND屯筹 80ANDBETWEEN(短筹,10,90)AND短筹 REF(短筹,1)AND屯筹 10AND屯筹 REF(屯筹,1),5,8);
V1:=(HHV(HIGH,5)-LLV(LOW,5));
V2:=(HHV(HIGH,9)-CLOSE);
V3:=(CLOSE-LLV(LOW,9));
V4:=V2/V1*100-70;
V5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
V6:=(2*C+H+L)/4;
V7:=SMA((V3/V1*100),3,1);
V8:=LLV(LOW,34);
V9:=SMA(V7,3,1)-SMA(V4,9,1);
V10:=IF(V9 100,V9-100,0);
VA:=HHV(HIGH,34);
涨:STICKLINE(EMA((V6-V8)/(VA-V8)*100,8) 0ANDEMA((V6-V8)/(VA-V8)*100,8)-EMA(EMA((V6-V8)/(VA-V8)*100,8),5) =0,49,50,15,0),Color4080FF,linethick6;
中线跌:STICKLINE(EMA((V6-V8)/(VA-V8)*100,8) 0ANDEMA((V6-V8)/(VA-V8)*100,8)-EMA(EMA((V6-V8)/(VA-V8)*100,8),5) 0,49,50,15,0),ColorFF0000,linethick6;
A1:=VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN)));
A2:=IF((CLOSE OPEN),(A1*(HIGH-LOW)),(IF((CLOSE OPEN),(A1*((HIGH-OPEN)+(CLOSE-LOW))),(VOL/2))));
A3:=IF((CLOSE OPEN),(A1*((HIGH-CLOSE)+(OPEN-LOW))),(IF((CLOSE OPEN),(A1*(HIGH-LOW)),(VOL/2))));
A5:(((A2/(A2+A3))*10));
X_1:=DYNAINFO(9);
X_2:=IF(TIME =91500ANDTIME =93000,1,0);
X_3:=FINANCE(7) 30000000ANDX_1 600;
X_4:=FINANCE(7) =30000000ANDFINANCE(7) 60000000ANDX_1 =800;
X_5:=FINANCE(7) =60000000ANDFINANCE(7) 100000000ANDX_1 =1000;
X_6:=FINANCE(7) =100000000ANDFINANCE(7) 200000000ANDX_1 =1500;
X_7:=FINANCE(7) =200000000ANDFINANCE(7) 400000000ANDX_1 =2000;
X_8:=FINANCE(7) =400000000ANDFINANCE(7) 600000000ANDX_1 =2500;
X_9:=FINANCE(7) =600000000ANDFINANCE(7) 1000000000ANDX_1 =3000;
X_10:=FINANCE(7) =1000000000ANDX_1 =6000;
X_11:=CLOSE/LLV(LOW,21) 1.25;
X_12:=100*(OPEN-REF(CLOSE,1))/REF(CLOSE,1) =2;
XG:=X_11ANDX_12AND(X_3ORX_4ORX_5ORX_6ORX_7ORX_8ORX_9ORX_10);
A:=WINNER(C)*100;
:=C/REF(C,1) 1.095ANDH=C;
现手:=DYNAINFO(9);
SJ:=IF(TIME =91500ANDTIME =93000,1,0);
XG1:REF(A,1) REF(A,2)ANDA 90ANDREF(涨停,1)AND(X_3ORX_4ORX_5ORX_6ORX_7ORX_8ORX_9ORX_10)ANDO REF(H,1);
input:SW(38,11,111),BW(66,33,111);
CJ:=(H+L+2*O+3*C)/7;
DN:=INTPART(276/POW(DATATYPE+0.3,2)-1.1);
短筹:SMA(PWINNER(SW,BW*CJ/100)*100,1.8*dn,1.8*DN-1),colorred;
抢筹:=if(slope(短筹,DN/2) =0,slope(短筹,DN/2)*DN/2,0),colorgreen;
活筹:短筹/4.8+1.2*抢筹-2,colorwhite,linethick2;
xc:=BARSLAST(活筹 =短筹/2.4);
吸筹:HHV(xc,DN/2),linethick0;
上涨角:HHV(atan(slope(活筹,DN/1.5)*2.1)*180/3.14159,DN/1.5),linethick0;
输出历史天量:(手)=收盘价的有效数据周期数日内成交量(手)的最高值
M:=55;
N:=34;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
VAR1:=IF(YEAR =2038ANDMONTH =1,0,1);
VAR2:=REF(LOW,1)*VAR1;
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;
VAR5:=LLV(LOW,55)*VAR1;
VAR6:=HHV(VAR4,55)*VAR1;
VAR7:=IF(MA(CLOSE,90),1,0)*VAR1;
VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1;
低吸:IF(VAR8 100,100,VAR8)*VAR1,COLORRED;
低吸:STICKLINE(低吸 -150,0,低吸,4,0),COLORRED;
小散线:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORWHITE,LINETHICK1;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
机构线:EMA(J,6),COLORRED,LINETHICK2;
开盘:=INDEXO,NODRAW;
收盘:=INDEXC,NODRAW;
最高:=INDEXH,NODRAW;
最低:=INDEXL,NODRAW;
分:=CONST(LLV(最低,90));百:=CONST(HHV(最高,90))-分;
基点:=CONST(LLV(RSI,90));基:=CONST(HHV(RSI,90))-基点;
C比:=(收盘-分)/百;
:C比*基+基点;
LC:=REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100,COLORFF00FF,LINETHICK2;
20,DOTLINE;
50,DOTLINE,COLORWHITE;
80,DOTLINE,COLOR0099FF;
STICKLINE(RSI 80,80,RSI,2,0),COLORGREEN;
STICKLINE(RSI 20,20,RSI,2,0),COLORRED;
五十集中:=(COST(75)-COST(25))/(COST(75)+COST(25))*100;
成本价1:=COST(五十成本集中),COLORGREEN;
五十成本集中1:=100-五十成本集中;
成本价2:=COST(五十成本集中1),COLORBLUE;
单峰密集价:=成本价2/成本价1*100,STICK;
红:=REF(单峰密集价,1) 单峰密集价AND成本价2 REF(成本价2,1);
绿:=REF(单峰密集价,1) 单峰密集价;
STICKLINE(红,单峰密集价,50,2.8,0),COLOR000055;
STICKLINE(红,单峰密集价,50,2,0),COLOR000088;
STICKLINE(红,单峰密集价,50,1.5,0),COLOR0000AA;
STICKLINE(红,单峰密集价,50,1,0),COLOR0000CC;
STICKLINE(红,单峰密集价,50,0.5,0),COLOR0000EE;
N:=7;
M:=5;
VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
B:=SMA(VAR1,N,1);
VAR2:=SMA(B,M,1);
STICKLINE(B VAR2,B,VAR2,0.8,1),COLORRED;
STICKLINE(B VAR2,B,VAR2,0.8,0),COLORGREEN;
MAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
短高:90,COLORGREEN;
高抛:80,DOTLINE,COLORYELLOW;
MAR2:=LLV(LOW,34);
MAR3:=HHV(HIGH,34);
SK:=EMA((MAR1-MAR2)/(MAR3-MAR2)*100,13);
SD:=EMA(SK,3);
STICKLINE(SK SD,SK,SD,0.8,0),COLORCYAN;
STICKLINE(SK SD,SK,SD,0.8,1),COLORMAGENTA;
低吸:20,DOTLINE,COLORYELLOW;
短底:10,COLORRED;
中值:B,NODRAW;
短值:SK,NODRAW,COLORMAGENTA;
STICKLINE(SK =90ORB =90,96,101,4,1),COLORYELLOW;
STICKLINE(B =90ANDSK =90,96,101,4,0),COLORYELLOW;
STICKLINE(SK =10ORB =10,-1,4,4,1),COLORBLUE;
STICKLINE(B =10ANDSK =10,-1,4,4,0),COLORBLUE;
STICKLINE((SK =10ORB =10)ANDB REF(B,1)ANDSK REF(SK,1),-1,4,4,1),COLOR7F00FF;
STICKLINE(B =10ANDSK =10ANDB REF(B,1)ANDSK REF(SK,1),-1,4,4,0),COLOR7F00FF;
STICKLINE((SK =90ORB =90)ANDB REF(B,1)ANDSK REF(SK,1),96,101,4,1),COLORWHITE;
STICKLINE(B =90ANDSK =90ANDB REF(B,1)ANDSK REF(SK,1),96,101,4,0),COLORWHITE;
股票公式编写要求:
KDJ在20以下后首次20以上金叉的公式。
股票公式编写结果:
AA:=CROSS(KDJ.K,KDJ.D);
T:=BARSLAST(AA);
REF(REF(KDJ.K 20 AND KDJ.D 20,T),1) AND AA AND (KDJ.K 20 AND KDJ.D