大智慧指标公式源码概况:
指标类别: 大智慧公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、大智慧成交量公式
{VOL成交量N20P132M17}
A股:CAPITAL/1000000,LINETHICK0,COLORWHITE;
实际量:=VOL,LINETHICK0;
{VAR1:=DYNAINFO(17)*REF(MA(VOL,5),1);
VAR2:=DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT;
预测:=IF(DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT,VAR1,VAR2)/10000;
预测量:STICKLINE(IF(DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT,VAR1,VAR2),VAR1,0,7,1),COLORGRAY;}
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),POINTDOT,COLORRED;
主卖:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;
主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF;
主力筹码集中度:WINNER(C)*100,COLORRED;
NDDX:=10;
JJDDX:=(HIGH+LOW+CLOSE)/3;
QJ0DDX:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1DDX:=IF(CAPITAL=0,QJ0DDX*(JJDDX-MIN(CLOSE,OPEN)),QJ0DDX*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2DDX:=IF(CAPITAL=0,QJ0DDX*(MIN(OPEN,CLOSE)-LOW),QJ0DDX*IF(HIGH=LOW,1,(JJDDX-MIN(CLOSE,OPEN))));
QJ3DDX:=IF(CAPITAL=0,QJ0DDX*(HIGH-MAX(OPEN,CLOSE)),QJ0DDX*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4DDX:=IF(CAPITAL=0,QJ0DDX*(MAX(CLOSE,OPEN)-JJDDX),QJ0DDX*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJDDX)));
大单流向:((QJ1DDX+QJ2DDX)-(QJ3DDX+QJ4DDX))/IF(CAPITAL=0,1000000,10000),COLORRED;
STICKLINE(C>=REF(C,1),0,VOL,2.5,1),COLORRED;
STICKLINE(C<REF(C,1),0,VOL,2.5,1),COLORGREEN;
STICKLINE(主买>0,0,主买,2.5,0),COLORRED;
STICKLINE(主卖<0,0,主卖,2.5,0),COLORGREEN;
资金异动:VOL/MA(VOL,55)*100,COLORYELLOW;
STICKLINE(资金异动>100,0,VOL,0.6,0),COLORYELLOW;
MA5:MA(V,5),COLORWHITE,LINETHICK2;
MA60:=MA(V,60),COLORLIBLUE,LINETHICK2;
MA3:MA(V,3),COLORYELLOW,LINETHICK2;
MA40:MA(V,40),COLORBLUE,LINETHICK3;
DRAWTEXT(CROSS(MA5,MA60),(V*1.05),'★关注'),COLORYELLOW;
DRAWTEXT(CROSS(MA3,MA40),(V*1.05),'★关注'),COLORWHITE;
{主力资金流量}
AACJL:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,AACJL*(HIGH-LOW),IF(CLOSE<OPEN,AACJL*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;
卖量:=IF(CLOSE>OPEN,0-AACJL*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AACJL*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;
进出量:=买量+卖量,COLOR00FFFF;STICKLINE(进出量<0,0,进出量,1,0),COLORFF6600;
STICKLINE(进出量<0,0,进出量,1.5,0),COLORFFCC00;
STICKLINE(进出量<0,0,进出量,0.5,0),COLORCYAN;
N:=1;QJ0:=(HIGH+LOW+CLOSE)/3;
QJ1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
QJ2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-QJ0);
QJ3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
QJ4:=IF(HIGH=LOW,1,QJ0-MIN(CLOSE,OPEN));
QJ5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));
QJ6:="MACD.DIF">"MACD.DEA"AND"MACD.DEA"<0;
QJ7:="KDJ.K">"KDJ.D"AND"KDJ.D"<30;
QJ8:="MACD.DIF"<"MACD.DEA";
QJ9:="KDJ.K"<"KDJ.D"AND"KDJ.K">80;
特大:=QJ4*QJ5,NODRAW;大单:=QJ3*QJ5,NODRAW;
中单:=QJ1*QJ5,NODRAW;小单:=QJ2*QJ5,NODRAW;
W1:=SUM(大单,N)+SUM(特大,N);W2:=SUM(小单,N)+SUM(中单,N);
量振1:=特大>大单AND大单>小单;
量振2:=特大<小单AND大单<小单;
标振1:=QJ6ANDQJ7;
标振2:=QJ8ANDQJ9;
A:=W1-W2;A0:=IF(A>0,A,0);B0:=IF(A<0,A,0);
STICKLINE(A0,0,A0,1,0),COLOR000044;
DRAWICON(REF(V,2)>=REF(V,3)*1.99ANDREF(C,2)>REF(O,2)AND
REF(V,2)=HHV(V,3)ANDC/REF(C,2)>=1.0995ANDREF(L,2)=LLV(L,3),V,1);
量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE<OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1;
总量:=买量+卖量,LINETHICK0;
净量:=买量-卖量,LINETHICK0;
五日净量:SUM(净量,5),LINETHICK2,COLORFFFFFF;
十日净量:SUM(净量,10),LINETHICK2,COLORGREEN;
六十日净量:SUM(净量,60),LINETHICK2,COLORLIBLUE;
0;
-1000000,COLORFFFFFF;
DRAWICON(CROSS(五日净量,六十日净量),五日净量,1);
DRAWICON(CROSS(六十日净量,0),六十日净量,23);
二、大智慧成交量选股公式
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,COLORFF00FF;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1),COLORWHITE;
D:=SMA(K,3,1),COLORYELLOW;
XG:BIAS3<-6ANDCROSS(K,D)ANDD<16;
VOL,VOLSTICK;
STICKLINE(V>=3*REF(V,1),V/3,V/2.5,3.9,0),COLORWHITE;
STICKLINE(V>=2*REF(V,1),V/2,V/1.7,3.9,0),COLORYELLOW;
流通〖亿〗:CAPITAL/1000000,LINETHICK0;
内外比:DYNAINFO(51),COLORYELLOW,LINETHICK0;
单日量比:V/REF(V,1),COLORWHITE,LINETHICK0;
五日量比:V/(REF(MA(V,5),1)/240),COLORYELLOW,LINETHICK0;
5换:SUM(100*V/CAPITAL,5),LINETHICK0;
10换:SUM(100*V/CAPITAL,10),LINETHICK0;
20换:SUM(100*V/CAPITAL,20),LINETHICK0;
H1:=VOL<REF(LLV(VOL,13),1);
H2:=VOL<REF(LLV(VOL,55),1);
STICKLINE(H1,0,V,1.5,0),COLORBLUE;
STICKLINE(H2,0,V,1.5,0),COLORMAGENTA;
量能突变:V+REF(V,1)>=(REF(V,2)+REF(V,3)+REF(V,4)+REF(V,5)+REF(V,6))/5*3ANDV<2*REF(V,1)ANDC>OANDC>MA(C,21),COLORGREEN;
STICKLINE(量能突变,2*V/3,V,3,0),COLORFF00FF;
量价配合:REF(V,1)<MAX(MA(V,5),MAX(MA(V,10),MA(V,20)))ANDV>MAX(MA(V,5),MAX(MA(V,10),MA(V,20)))ANDV<2*REF(V,1)ANDCROSS(C,MA(C,21));
STICKLINE(量价配合,V/3,2*V/3,3,1),LINETHICK5;
量价突破:C>=HHV(C,15)ANDV>=HHV(V,15),COLORGREEN;
STICKLINE(量价突破,0,V/3,2,0),COLORGREEN;
T1:=COUNT(V>REF(V,1)*2,4)=1;
T2:=COUNT(V<REF(V,1)ANDL>MIN(L,4)ANDL>REF(L,1),3)=3;
T3:T1ANDT2;
倍量:V/REF(V,1)>=2ANDC-REF(C,1)>0;
DRAWTEXT(倍量,H,'倍'),COLORYELLOW;
缩倍量:V/REF(V,1)<=0.5;
DRAWTEXT(缩倍量,L,'半'),COLORYELLOW;
连跌:LAST(V<REF(V,1),2,1);
STICKLINE(倍量,0,VOL,1.8,0),COLORYELLOW;
STICKLINE(缩倍量,0,VOL/2,2,0),COLORWHITE;
{20日量布林线}
MID:MA(VOL,20),COLORWHITE;
饱和:MID+2*STDP(V,20),COLORYELLOW;
LLW:=MID-2*STDP(V,20);
成交量:VOL,VOLSTICK;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
卖盘:-IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLORCYAN,POINTDOT;
成交量比%:买盘/VOL*100,COLORWHITE,NODRAW;
STICKLINE(VOL>0,VOL,0,2.5,0),COLORCYAN;
STICKLINE(买盘>0,0,买盘,2.5,0),COLORRED;
FZ:=REF(C,1)*1.1-C<0.01;
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:=MA(OBV,13);
箱底:=LLV(OBV,20);
UPPER:=MAOBV+2*STD(OBV,20);
A1:=CAPITAL/1000000<20;
ST:=EXIST(C/REF(C,1)>1.055,60);
停牌:=DYNAINFO(4)>0;
XG:(OBV=箱底ORCROSS(MAOBV,OBV))ANDA1ANDSTAND停牌ANDCOUNT(FZ,10)>0;
[源码注释]大智慧公式动态翻译结果
LS赋值:收盘价/1日前的收盘价>1.028 AND 收盘价=最高价 AND 成交量(手)的4日线性回归预测值位于0.2*成交量(手)的12日线性回归预测值和2.1*成交量(手)的12日线性回归预测值之间
输出拉升:LS的28日过滤*100 AND 最低价>1日前的收盘价*0.93
每日公式解答:
公式编写要求:
前五日出现两连板(公式不含当天的选股,开盘当天涨跌都不要求),只要是五日前出现过两连板即可。
公式编写方法:
REF(COUNT(C/REF(C,1)>=1.092 AND C=H,2)=2,5);
评论(0)