大智慧公式源码概况:
指标类别:大智慧公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 主图
公式解读:
一、大智慧搏击指标公式
N:=13;M1:=3;M2:=8;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*3,VAR2/10),3);
VAR4:=LLV(LOW,38);
VAR5:=HHV(VAR3,38);
VAR6:=IF(LLV(LOW,90),1,0);
VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR9:=SMA(VAR8,13,8);
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
红K:IF(K REF(K,1),K,DRAWNULL),COLORRED,LINETHICK3;
绿K:IF(K REF(K,1),K,DRAWNULL),COLORLICYAN,LINETHICK3;
DRAWICON(CROSS(K,D)ANDK 20,20,1);
DRAWICON(CROSS(D,K)ANDK 80,80,2);
吸货:EMA(IF(LOW =VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
STICKLINE(主力吸货 REF(主力吸货,1),0,主力吸货,2,0),COLORRED;
STICKLINE(主力吸货 REF(主力吸货,1),0,主力吸货,2,0),COLOR009000;
主力资金线:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLOR0099FF;
红主力:IF(主力资金线 REF(主力资金线,1),主力资金线,DRAWNULL),COLORMAGENTA;
绿主力:IF(主力资金线 REF(主力资金线,1),主力资金线,DRAWNULL),COLOR00FF00;
清仓:100,POINTDOT,COLORGREEN,LINETHICK2,DOTLINE;
顶部:80,COLORGREEN,LINETHICK1,DOTLINE;
50,COLORWHITE,LINETHICK1,DOTLINE;
20,COLORGREEN,LINETHICK1,DOTLINE;
底部:0,COLORRED,LINETHICK2,DOTLINE;
主线:=(MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,36))/4,COLORFF00FF,LINETHICK2;
股价重心:=DMA(AMOUNT/VOL/100,VOL/CAPITAL),COLORGREEN,LINETHICK2;
MA14:=EMA(CLOSE,14);
MA34:=EMA(CLOSE,26);
MA54:=EMA(CLOSE,54);
MA90:=EMA(CLOSE,90);
MA120:EMA(CLOSE,120),POINTDOT,LINETHICK2,COLORWHITE;
年线:EMA(C,250),COLORYELLOW,LINETHICK2;
HZ:=EMA(CLOSE,13);
短波:EMA(HZ,1),COLOR00DD00,LINETHICK1;
中波:EMA(HZ,26),COLORRED,LINETHICK1;
148天:=EMA(C,148),POINTDOT,LINETHICK1,COLORGREEN;
:=SUM(AMOUNT,0)/SUM(VOL,0)/100,COLORYELLOW,LINETHICK2;
HZ2:EMA(HZ,8),COLORGREEN,LINETHICK2;
HZ4:EMA(HZ,39),COLORFF00FF,LINETHICK2;
A1:STICKLINE(HZ2 HZ4,短波,HZ4,0.1,0),COLORBLUE;
A2:STICKLINE(短波 HZ2,短波,HZ2,0.1,0),COLORGREEN;
A3:STICKLINE(中波 HZ4,中波,HZ4,0.1,0),COLORFF00FF;
{慢速KDJ}
RSV:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
FASTK:=SMA(RSV,12,1);
K:=SMA(FASTK,9,1),COLORYELLOW;
D:=SMA(K,3,1),LINETHICK2,COLORBLUE;
J:=3*K-2*D,LINETHICK1,COLORGREEN;
{中波}
VAR11:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))
/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR22:=100-VAR11;
中势线:=(-1)*(EMA(VAR22,1)-50)+42,COLORYELLOW,LINETHICK2;
TZ:=(CLOSE-LLV(LOW,331))/(HHV(HIGH,331)-LLV(LOW,331))*100;
强势线:=SMA(TZ,5,1),LINETHICK2,COLORRED;
线:=70*(HHV(HIGH,39)-CLOSE)/(HHV(HIGH,39)-LLV(LOW,39)),COLOR009900,LINETHICK1;
{量选}
AA:=VOL/SUM(VOL,13);
BB:=DMA(C,AA);
CC:=VOL/SUM(VOL,34);
DD:=DMA(C,CC);
{}
VAR00:=WINNER(CLOSE);
VAR1:=FORCAST(VAR00,10);
VAR2:=MA(VAR1,3);
VAR3:=MA(VAR2,12);
VAR4:=MA(VAR3,16);
VAR5:=MA(VAR4,31);
VAR6:=MA(VAR5,55);
VAR7:=VAR5;
VAR8:=VAR4 VAR2*1.11ANDVAR3 VAR2*1.095;
A:=VAR4/VAR2;
B:=VAR3/VAR2;
VAR9:=VAR2 VAR1*0.95;
TD:=VAR2/VAR1;
VAR1H:=INDEXC;
VAR2H:=MA(VAR1H,6);
VAR3H:=MA(VAR1H,24);
VAR4H:=MA(VAR1H,32);
VAR5H:=MA(VAR1H,62);
VAR6H:=MA(VAR1H,105);
VAR7H:=VAR5H;
VAR8H:=VAR4H VAR2H*1.11ANDVAR3H VAR2H*1.095;
VAR9H:=VAR2H VAR1H*0.95;
PT:=(IF(H=LANDC=OANDL=CANDC 0ANDREF(H,1)=REF(L,1)ANDREF(C,1)=REF(O,1)
ANDREF(H,1)=REF(C,1)ANDREF(C,1) 0,0,1))
G:=(VAR7HANDVAR8HANDVAR9HANDCLOSE/COST(8) =0.7985
AND(COUNT(C=L,4) 3ORC REF(C,1)))ANDPTOR
VAR7ANDVAR8ANDVAR9ANDCLOSE/COST(5) =0.8AND
((VAR1 OPENORVAR1 REF(OPEN,1)OR
REF(VAR1,1)));
背离:=VAR2 REF(VAR2,1)ANDA REF(A,1);
买入信号1:=VAR1 AANDVAR2
买入信号2:=B AAND1 BANDA 1ANDH=HHV(H,21);
BUY:=COUNT(背离,20) 1AND买入信号2=1ANDC OORCROSS(BB,DD);
DRAWICON(CROSS(短波,HZ2),中波-0.08,9);
DRAWTEXT(CROSS(短波,HZ2)ANDC OANDJ KANDJ DAND大盘线 36ANDC HZ4,L*1.09, ● ),COLORYELLOW;
DRAWTEXT(CROSS(短波,HZ2)ANDC OANDJ KANDJ DAND大盘线 36ANDC HZ4,L*1.12, 做 ),COLORYELLOW;
DRAWTEXT(CROSS(短波,HZ2),C, ♂
DRAWTEXT(CROSS(中波,HZ4),C, ♂
DRAWTEXT(CROSS(中波,MA120),C, ♂
DRAWTEXT(CROSS(HZ4,MA120),C, ♂
公式解读:
公式编写要求:
写个用于分笔周期的3分钟涨速指标(不要引用其他周期)
公式编写方法:
A1:=BARSLAST(MINUTE REF(MINUTE,1));{第1分钟}
A2:=REF(A1,A1+1);{第2分钟}
A3:=REF(REF(A1,A1+1),A1+1);{第3分钟}
涨速3:C/REF(C,A1+A2+A3+2)*100-100;