大智慧公式源码概况:
指标类别:大智慧公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 主图
公式解读:
一、大智慧收阴第二天低开公式
VA1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VA2:=SMA(ABS(LOW-VA1),13,1)/SMA(MAX(LOW-VA1,0),10,1);
VA3:=EMA(VA2,10);
VA4:=LLV(LOW,33);
VA5:=EMA(IF(LOW =VA4,VA3,0),3);
VA6:0;
抄底:IF(VA5 REF(VA5,1),VA5,0),COLORRED,NODRAW;
STICKLINE(VA5 REF(VA5,1),0,VA5,1,0),COLORRED;
主力洗盘:IF(VA5 REF(VA5,1),VA5,0),COLORGREEN,NODRAW;
STICKLINE(VA5 REF(VA5,1),0,VA5,1,0),COLORGREEN;
{VAA1:=100-3*SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);
VAA2:=100-3*SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);
VAA3:=VAA1 REF(VAA2,1)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1);
A:=WINNER(CLOSE+CLOSE*15/100)*100;
B:=WINNER(CLOSE+CLOSE*0/100)*100;
{逃顶:=CROSS(82,RSI);
STICKLINE(逃顶,逃顶,10,3.5,0),COLORFF5500;
STICKLINE(逃顶,逃顶,15,2.5,0),COLORFF8800;
STICKLINE(逃顶,逃顶,20,1.5,0),COLORFFAA00;
STICKLINE(逃顶,逃顶,25,0.5,0),COLORFFCC00;
STICKLINE(逃顶,逃顶,30,0.1,0),COLORFFFF00;
D1:=(C+L+H)/3;
D2:=EMA(D1,6);
D3:=EMA(D2,5);
BBUY:=CROSS(D2,D3);
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARR1),10,15);
DRAWTEXT(CROSS(82,VARR1),35, 出 ),COLORYELLOW;}
趋势线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
抄底:IF(CROSS(趋势线,6),50,0),COLORMAGENTA,LINETHICK1;
DRAWTEXT(FILTER(抄底,10)=1,35, ---抄底 ),COLORYELLOW,LINETHICK1;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW =VAR4,VAR3,0),3);
主力进场:IF(VAR5 REF(VAR5,1),VAR5,0),COLORRED,NODRAW;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,3,0),COLORRED;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,3,0),COLORGREEN;
VAR21:=SMA(ABS(HIGH-VAR1),13,1)/SMA(MIN(HIGH-VAR1,0),10,1);
VAR31:=EMA(VAR21,10);
VAR41:=HHV(HIGH,33);
VAR51:=EMA(IF(HIGH =VAR41,VAR31,0),3);
主力出货:IF(VAR51 REF(VAR51,1),VAR51,0),COLORCYAN,NODRAW;
STICKLINE(VAR51 REF(VAR51,1),0,-VAR51,3,0),COLORCYAN;
主力拉升:IF(VAR51 REF(VAR51,1),VAR51,0),COLORYELLOW,NODRAW;
STICKLINE(VAR51 REF(VAR51,1),0,-VAR51,3,0),COLORYELLOW;
LONG:=26;
SHORT:=12;
M:=9;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,M),COLORBLUE,LINETHICK3;
MACD:2*(DIF-DEA),COLORSTICK;
A4:=BARSLAST(ref(cross(dif,dea),1));
B1:=ref(c,A4+1) candref(dif,A4+1) difandcross(dif,dea);
DRAWTEXT(FILTER(B1 0,5),dif+0.2, ),COLORyellow;
VAR1C:=(HIGH-MIN(OPEN,CLOSE));
VAR2C:=(CLOSE-OPEN);
VAR3C:=(MIN(OPEN,CLOSE)-LOW);
VAR4C:=(HIGH-LOW);
VAR5C:=((VOL*VAR1C)/VAR4C);
VAR6C:=((VOL*VAR2C)/VAR4C);
VAR7C:=((VOL*VAR3C)/VAR4C);
VAR8C:=((VAR5C-VAR6C)-VAR7C);
VAR4:=MA(CLOSE,5);
VAR5:=MA(CLOSE,10);
VAR6:=MA(CLOSE,30);
VAR7:=MA(CLOSE,60);
VAR8:=EMA(COST(85),7);
VAR9:=EMA(COST(15),7);
VARA:=(SUM(((CLOSE*VOL)*10),4)/SUM((VOL*200),4));
VARB:=(INTPART((VARA*10))/10);
VARC:=(SUM(((CLOSE*VOL)*10),7)/SUM((VOL*200),7));
VARD:=(INTPART((VARC*10))/10);
VARE:=(SUM(((CLOSE*VOL)*10),28)/SUM((VOL*200),28));
VARF:=(INTPART((VARE*10))/10);
短线趋势:(EMA(CLOSE,5)-EMA(CLOSE,10)),COLORMAGENTA,LINETHICK2;
趋势:EMA(短线趋势,9),COLORMAGENTA,LINETHICK3;
VAR10:=((0-((10*(HHV(CLOSE,5)-CLOSE))/(HHV(CLOSE,5)-LLV(LOW,5))))+10);
VAR11:=((0-((10*(HHV(CLOSE,10)-CLOSE))/(HHV(CLOSE,10)-LLV(LOW,10))))+10);
VAR12:=((0-((10*(HHV(CLOSE,20)-CLOSE))/(HHV(CLOSE,20)-LLV(LOW,20))))+10);
VAR13:=((0-((10*(HHV(CLOSE,30)-CLOSE))/(HHV(CLOSE,30)-LLV(LOW,30))))+10);
VAR14:=REF(中线趋势,1);
VAR15:=中线趋势;
VAR16:=(VAR15-VAR14);
VAR17:=REF(短线趋势,1);
VAR18:=短线趋势;
VAR19:=(VAR18-VAR17);
VAR1A:=OPEN;
VAR1B:=CLOSE;
短线指标:IF(((((CROSS(短线趋势,中线趋势)AND(短线趋势 0))AND(中线趋势 (0-0.2)))AND(VAR11 45))AND(VAR16 0)),0.3,0.1),COLOR66FF00;
XG:=O MIN(REF(C,1),REF(O,1))*0.98AND((C-O)/O)*100 2ANDREF(C,1) MA(C,20)ANDO MA(C,60)ANDKDJ.D 80ANDKDJ.D REF(KDJ.D,1)ANDKDJ.J REF(KDJ.J,1);
选:FILTER(XG,10),LINETHICK2COLORYELLOW;
DRAWICON(选,1.1,34);
公式解读:
公式编写要求:
当日振幅是30天内最小的公式。
公式编写方法:
ZF:=(H-L)/REF(C,1)*1