分时冲板,一个分时冲击涨停板的副图公式
引用公式NK的源码是:
{NK}
{引用公式不要改名}
N:5;
庄A:(O+C)/2;
庄B:REF(C,1)*1.1;
庄C:REF(C,1)*0.9;
庄D:REF(L,1);
庄E:O;
庄F:(H+L)/2;
庄G:REF(C,2);
庄H:(REF(C,1)/REF(C,2)-1)*100;
庄I:REF(V,1);
庄J:AMOUNT/VOL/100;
庄K:REF(C,1);
庄L:REF(AMO.AMOW,1);
庄M:DYNAINFO(58)*DYNAINFO(37)/100;
庄N:H;
庄O:100*((DYNAINFO(5)-DYNAINFO(3))/DYNAINFO(3));
庄P:(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
庄Q:100*((DYNAINFO(6)-DYNAINFO(3))/DYNAINFO(3));
庄R:(HY_INDEXC-REF(HY_INDEXC,1))/REF(HY_INDEXC,1);
庄S:WINNER(CLOSE)*100;
庄T:(C/REF(C,4)-1)*100;
庄U:DYNAINFO(15)/DYNAINFO(4)/100;
庄V:1;
庄W:2;
庄X:REF(O,1);
庄Y:REF(H,1);
庄Z:REF((O+C)/2,1);
ZS:(INDEXC-REF(INDEXC,N))/REF(INDEXC,N);
庄ZJ:REF(AMOUNT/VOL/100,1);
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA30:MA(C,30);
MA60:MA(C,60);
MA120:MA(C,120);
MA250:MA(C,239);
ZJL:REF(MA(V,5),1);
CDT:H=ZTPRICE(REF(C,1),0.1) AND H>C;
幅度:(O/REF(C,1)-1)*100;
昨量:REF(V,1);
今量:V;
五日量均:MA(V,5);
十日量均:MA(V,10);
五日额均:MA(AMO,5);
十日额均:MA(AMO,10);
QA:REF(AMO,1)/100000000;
QB:REF(AMO,2)/10000;
QC:REF(AMO,3)/10000;
QD:REF(AMO,4)/10000;
QE:REF(AMO,5)/10000;
ROE:FINANCE(30)/FINANCE(19)*100;
ZYLTP:FINANCE(46)/10000;
攻防价位:(REF((H-L)*0.618+L,1));
GJ:=(C+H+L+O)/4;
明日阻力:=L+(GJ-L)+(C-L);
明日支撑:=L+(C-GJ);
今日阻力:REF(明日阻力, 1);
今日支撑:REF(明日支撑, 1);
总买:CUR_BUYORDER;
总卖:CUR_SELLORDER;
超B:=L2_AMO(0,2)/10000.0,NODRAW;
大B:=L2_AMO(1,2)/10000.0,NODRAW;
超S:=L2_AMO(0,3)/10000.0,NODRAW;
大S:=L2_AMO(1,3)/10000.0,NODRAW;
总成交额:=AMOUNT/10000.0,NODRAW;
大单净流入:=(超B+大B)-(超S+大S);
大单净比:100*大单净流入/总成交额;
量能饱和:100*(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20)),NODRAW;
委比:(CUR_BUYORDER-CUR_SELLORDER)/(CUR_BUYORDER+CUR_SELLORDER)*100;
主公式:分时冲板
的源码:
A1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/CAPITAL*100,IF(CLOSE<REF(CLOSE,1),-VOL/CAPITAL*100,0)),0),NODRAW;
今天额:=SUM(AMO,0)/10000,NODRAW;
成交额:=V*C/100,NODRAW;
A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
A4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
A5:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
A6:=((A2+A3)+A4)+A5;
A7:=IF((ISLASTBAR),((100*A2)/A6),0);
A8:=IF((ISLASTBAR),((100*A3)/A6),0);
A9:=IF((ISLASTBAR),((100*A4)/A6),0);
A10:=IF((ISLASTBAR),((100*A5)/A6),0);
机构买:(A2),LINETHICK6,COLORRED;
机构卖:(A3),LINETHICK6,COLORGREEN;
机构进出:=机构买-机构卖,NODRAW;
散户买:(A4),COLOR5555FF;
散户卖:(A5),COLOR55FF55;
强势:=((100*A2)/A6>50);
STICKLINE(强势,机构买*1.02,机构买*1.1,1,0),COLORYELLOW;
拉升:=((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18;
STICKLINE(拉升,机构买*1.1,机构买*1.2,1,0),COLORCC00FF;
DRAWTEXT(ISLASTBAR=1,机构买*0.95,'●'),LINETHICK2,COLORRED;
DRAWTEXT(ISLASTBAR=1,机构卖*0.95,'○'),LINETHICK2,COLORFFFF55;
DRAWTEXT(机构进出>0 AND REF(机构进出,1)<=0,机构买*1.02,'●机买'),COLORMAGENTA;
DRAWTEXT(机构进出<0 AND REF(机构进出,1)>=0,机构买*0.98,'○机卖'),COLORFFFF55;
Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95);
Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))));
DRAWICON(CROSS((C/Q2),1.03),机构买,5);
DD1:=1;
AAA1:=STRCAT(STRCAT('机构买入',CON2STR((100*A2)/A6,0)),'%');
AAA2:=STRCAT(STRCAT('机构卖出',CON2STR((100*A3)/A6,0)),'%');
AAA0:=STRCAT(STRCAT('机构总买入',CON2STR((100*(A2-A3))/A6,0)),'%');
AAA3:=STRCAT(STRCAT('散户买入',CON2STR((100*A4)/A6,0)),'%');
AAA4:=STRCAT(STRCAT('散户卖出',CON2STR((100*A5)/A6,0)),'%');
AAA5:=STRCAT(STRCAT('散户总买入',CON2STR((100*(A4-A5))/A6,0)),'%');
DRAWTEXT_FIX(DD1=1,0.350,1.00,0,AAA1),COLORRED;
DRAWTEXT_FIX(DD1=1,0.500,1.00,0,AAA2),COLORGREEN;
DRAWTEXT_FIX(DD1=1,0.650,1.00,0,AAA3),COLOR5555FF;
DRAWTEXT_FIX(DD1=1,0.800,1.00,0,AAA4),COLORGREEN;
DRAWTEXT_FIX(DD1=1,0.300,0.00,0,AAA0),LINETHICK5,COLORYELLOW;
DRAWTEXT_FIX(DD1=1,0.500,0.00,0,AAA5),LINETHICK5,COLORCYAN;
资金流入:=A2+A4,COLORRED,NODRAW;
资金流出:=A3+A5,NODRAW;
资金:=资金流入-资金流出,COLORYELLOW;
资金差:=资金流入-资金流出,COLORYELLOW;
WW:=资金>0;
QQ:=资金<0;
STICKLINE(资金 AND WW,资金,0,0.0011,0),COLORRED;
STICKLINE(资金 AND QQ,资金,0,0.0011,0),COLORCYAN;
换手:=VOL/CAPITAL*100;
主动买盘:=BUYVOL,COLORLIRED,NODRAW;
主动卖盘:=SELLVOL,COLORLIBLUE,NODRAW;
买卖总量:=BUYVOL+SELLVOL,COLORYELLOW,NODRAW;
主动买比%:BUYVOL/买卖总量*100,COLORRED;
主动卖比%:=SELLVOL/买卖总量*100,COLORGREEN;
BB:=SUM((IF(C>REF(C,1),成交额,0)),0),NODRAW,COLORGREEN;
SS:=SUM((IF(C<REF(C,1),成交额,0)),0),NODRAW;
ZZ:=SUM((IF(C=REF(C,1),成交额,0)),0),NODRAW;
总量:=BB+SS+ZZ,COLORRED,NODRAW;
买比:100*(BB)/总量,NODRAW,COLORFFFF00;
卖比:=100*(SS)/总量,NODRAW;
总买:=NK.总买#DAY,NODRAW;
总卖:=NK.总卖#DAY,NODRAW;
分布买比:100*总买/(总买+总卖),NODRAW,COLORYELLOW;
委比:NK.委比#DAY,COLORRED;
大单净比:NK.大单净比#DAY,NODRAW;
资金X:C*IF(PERIOD=0 AND MINUTE=31,VOL,0),NODRAW;{√}
冲板线:(CAPITAL/100)*1/20,COLORCYAN,LINETHICK1;
单量必板线:=资金X>1000;{分时图单量超1000万资金};
单量冲板线:=资金X>冲板线 AND 资金X<1000;{分时图单量超500万资金};
DRAWICON(单量必板线 AND DYNAINFO(4)/DYNAINFO(3)>1.01,机构买,9);{1000万处画仙人指}
DRAWICON(单量冲板线 AND DYNAINFO(4)/DYNAINFO(3)>1.01,机构买,23);{500万处画十字星,以示警戒};
VAR1:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
JJ:=DYNAINFO(11);{分析家公式网}
P:=55;
S:=8;
M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COL |