大智慧公式源码概况:
指标类别:大智慧公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 主图
公式解读:
一、大智慧低位十字星公式
二:=COST(20)/COST(10);
三:=COST(30)/COST(20);
四:=COST(40)/COST(30);
五:=COST(50)/COST(40);
低位密三:=三 二AND三 四AND三 五;
低位密四:=四 二AND四 三AND四 五;
低位密五:=五 二AND五 三AND五 四;
STICKLINE(低位密三 0ANDC COST(50),COST(30),COST(30)-0.11,COST(30)-0.12,-1),COLOR00C0C0;
STICKLINE(低位密四 0ANDC COST(50),COST(40),COST(40)-0.11,COST(40)-0.12,-1),COLORGREEN;
STICKLINE(低位密五 0ANDC COST(50),COST(50),COST(50)-0.11,COST(50)-0.12,-1),COLORYELLOW;
DRAWKLINE(H,O,L,C);
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:IF(VAR8 100,100,VAR8);
VARX:=VAR9 7;
REF(C O,1)ANDVAR9 10ANDREF(C O,2)ANDVAR9 REF(VARX,1);
STICKLINE(VAR9 -150,0,VAR9,0.3,0),COLORFF00FF;
A:=SUMBARS(V,CAPITAL*1);
A1:=SUM(COST(10),A)/A;
A2:=SUM(COST(20),A)/A;
A3:=SUM(COST(30),A)/A;
A4:=SUM(COST(40),A)/A;
A5:=SUM(COST(50),A)/A;
E:=LLV(L,250)=L;
E1:=BARSLAST(E);
OK:=(5*A1+4*A2+3*A3+2*A4+A5)/15;
OK1:IF(CROSS(C,OK)ANDE1 =40,1,0);
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,47);
VAR5:=EMA(IF(LOW =VAR4,VAR3,0),3);
进场:IF(VAR5 REF(VAR5,1),1,0);
DRAWTEXT_FIX(BARSTATUS=2,0.36,0.01,0, 底部、金针探底或连跌数天情况下,
股价低位出现信号时考虑买入 ),COLORLIRED;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
获利比例:IF(C COST(1)ANDRSI1 15,1,0);LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
获利比例:IF(C COST(1)ANDRSI1 15,1,0);
安全线:EMA(CLOSE,55),COLORLIGREEN,LINETHICK2;
VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
A1:=(EMA(VAR1,3)+EMA(VAR1,6)+EMA(VAR1,12)+EMA(VAR1,24))/4;
A2:=EMA(A1,2);
A3:=EMA(A2,2);
A4:=EMA(A3,2);
A5:=EMA(A4,2);
A6:=EMA(A5,2);
A7:=EMA(A6,2);
A8:EMA(VAR1,2.78)*1.028,COLORMAGENTA;
A9:MA(OPEN,3.2)*1.028,COLORYELLOW,DOTLINE;
A:=(3*C+H+L+O)/6;
XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2.382,COLORMAGENTA;
MAA:=MA(XJ,3),COLORYELLOW,DOTLINE;
PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*REF(A,6)+3*REF(A,7)+
2*REF(A,8)+REF(A,9))/55;
A2I:=SUM(IF(C REF(C,1),V*C,0),0);
A3I:=SUM(IF(C REF(C,1),V*C,0),0);
A4I:=SUM(IF(C=REF(C,1),V*C,0),0);
B1万元:=DVOL*DCLOSE/100;
B1差:=B1万元-REF(B1万元,1);
净流入万元:=(A2I-A3I-0.5*A4I),COLOR0088FF,NODRAW;
PM:=MA(净流入万元,1);
PMA:=PM/REF(PM,1) 1;
PMB:=REF(PMA,1) 1ANDPMA;
密码:=(EMA(MA(B1万元,2),2))/100000;
二日比:=密码/REF(密码,1);
选股:PMBAND密码 REF(密码,1)AND二日比 1,COLORWHITE,NODRAW;
均价:=AMOUNT/V/100;
均价2:=MA(均价,3);
均价5:=MA(均价,5);
均价10:=MA(均价,10);
均价30:=MA(均价,30);
:C 均价2AND均价2 REF(均价2,1)ANDREF(均价2,1) REF(均价2,2)AND
REF(均价2,2) REF(均价2,3)AND选股,COLORYELLOW,NODRAW;
选票:REF(MA(C,5) MA(C,10),1)ANDCROSS(C,MA(C,5))ANDCROSS(二日比,1.01),COLORMAGENTA,NODRAW;
高:=REF(HHV(XJ,80),3);
顶点:REFDATE(高,DATE),COLORBROWN,NODRAW;
低:=REF(LLV(XJ,80),3);
低点:REFDATE(低,DATE),COLORGRAY,DOTLINE;
中:(顶点+低点)/2,COLORGRAY,DOTLINE;
流入:=BARSLAST(PM/REF(PM,1) 1);
入:=EMA(EMA(流入,2),2);
入MA:=MA(入,3);
流入强度:(入-入MA),NODRAW;
STICKLINE(流入强度 0,中,中+流入强度/4,0,0),COLORRED;
STICKLINE(流入强度 0,中,中+流入强度/4,0,0),COLORCYAN;
STICKLINE(流入强度 0AND流入强度 REF(流入强度,1),中,中+流入强度/4,0,0),COLORLIRED;
A05:=EMA(PJ,11),COLORWHITE;
XJ:REF(XJ A05,1)ANDCROSS(XJ,MAA),COLORRED,NODRAW;
{低位金叉}
OA:=VOL*C;
OB:=SUM(OA,1)/SUM(VOL,1);
B1:=EMA(OB,17);
资金:=(OB-B1)/OB*100;
FA:=EMA(资金,5)-EMA(资金,34);
AA:=EMA(FA,9);
资低金叉:(CROSS(FA,AA)ANDFA -0.1),COLORWHITE,NODRAW;
DI:=EMA(C,6)-EMA(C,13),;
DE:=EMA(DI,5),;
MACD:=2*(DI-DE),;
OA1:=BARSLAST(REF(CROSS(DI,DE),1));
底:=REF(C,OA1+1) CANDDI REF(DI,OA1+1)ANDCROSS(DI,DE);
STICKLINE(底背离,中,中+流入强度/4,0.1,0),COLORLIRED;
DRAWTEXT(底背离,中+流入强度/4, 底背离 ),COLORLIRED;
OA2:=BARSLAST(REF(CROSS(DE,DI),1));
顶背离:=REF(C,OA2+1) CANDREF(DI,OA2+1) DIANDCROSS(DE,DI);
STICKLINE(顶背离,中,中+流入强度/4,0.1,0),COLORLIBLUE;
DRAWTEXT(顶背离,中+流入强度/4, 顶背离 ),COLORCYAN;
DRAWTEXT(CROSS(85,RSI),XJ, 落袋 ),COLORCYAN;
{DRAWTEXT(CROSS(DE,DI)ANDDI 0,中+流入强度/3, 死叉 ),COLORCYAN;}
STICKLINE(资低金叉,低点,中,0,0),COLORWHITE;
DRAWTEXT(资低金叉,低点+0.02, 资金叉 ),COLORWHITE;
STICKLINE(突破=1,C,O,2,0),COLORYELLOW;
STICKLINE(选票=1,C,O,2,0),COLORMAGENTA;
STICKLINE(选股=1,C,O,2,0),COLORWHITE;
LX:=REF(XJ,1);
ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;
KX1:=C =OANDZD =50;
KX2:=C OANDZD =50;
KX3:=C =OANDZD 50;
KX4:=C OANDZD 50;
STICKLINE(KX1,A8,A9,1,0),COLOR0000CC;
STICKLINE(KX2,A8,A9,1,0),COLOR008888;
STICKLINE(KX3,A8,A9,1,0),COLORLIRED;
STICKLINE(KX4,A8,A9,1,0),COLORLICYAN,;
R1:IF(A1 REF(A1,1),A1,A1),COLOR008200,LINETHICK1;
Q1:IF(A1 REF(A1,1),A1,DRAWNULL),COLORRED,LINETHICK1;
R2:IF(A2 REF(A2,1),A2,DRAWNULL),COLOR008C00,LINETHICK1;
Q2:IF(A2 REF(A2,1),A2,DRAWNULL),COLOR000085,LINETHICK1;
R3:IF(A3 REF(A3,1),A3,DRAWNULL),COLOR009B00,LINETHICK1;
Q3:IF(A3 REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;
R4:IF(A4 REF(A4,1),A4,DRAWNULL),COLOR00BB00,LINETHICK1;
Q4:IF(A4 REF(A4,1),A4,DRAWNULL),COLOR00007D,LINETHICK1;
R5:IF(A5 REF(A5,1),A5,DRAWNULL),COLOR00CC00,LINETHICK1;
Q5:IF(A5 REF(A5,1),A5,DRAWNULL),COLOR00009F,LINETHICK1;
R6:IF(A6 REF(A6,1),A6,DRAWNULL),COLOR00CC00,LINETHICK1;
Q6:IF(A6 REF(A6,1),A6,DRAWNULL),COLOR00009F,LINETHICK1;
R7:IF(A7 REF(A7,1),A7,DRAWNULL),COLOR00CC00,LINETHICK1;
Q7:IF(A7 REF(A7,1),A7,DRAWNULL),COLOR00009F,LINETHICK1;
DRAWTEXT(突破=1,L, 突破 ),COLORYELLOW;
DRAWTEXT(选票=1,C, 选票 ),COLORMAGENTA;
DRAWTEXT(选股=1,A8, 选股 ),COLORWHITE;
DRAWICON(XJ金叉=1,L-0.02,1);
短期线:EMA(CLOSE,6);
持股线:EMA(CLOSE,14),LINETHICK2;
双月线:EMA(CLOSE,56);
牛熊线:EMA(CLOSE,166);
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
DRAWTEXT(FILTER(BB13 1ANDEMA(X1,13) REF(EMA(X1,8),1),10),
EMA8, ∠35上升 ),COLORYELLOW;
支撑:MA(REF(LLV(C,30),1),2);
C1:=(CLOSE+LOW+HIGH)/3;
C2:=EMA(C1,6);
C3:=EMA(C2,5);
C4:=CROSS(C2,C3);
DRAWTEXT(C4,LOW/1.01, ★买 ),COLORRED;
X:=EMA(((SLOPE(CLOSE,21)*20)+CLOSE),68);
Y:=EMA(CLOSE,10);
LL:=REF(CLOSE,2);
MM:=((SMA(MAX((CLOSE-LL),0),6,1)/SMA(ABS((CLOSE-LL)),6,1))*100);
DB:=IF(((MM REF(MM,1))AND(MM 79)),MM,0);
DRAWTEXT(CROSS(Y,X),(LOW*0.985), ▲加仓 ),LINETHICK2,COLORRED;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
STICKLINE(C =O,C,O,7.2,0),COLORRED;
STICKLINE(C =O,C,O,1.7,0),COLOR7040FF;
STICKLINE(C =O,C,O,0.5,0),COLORYELLOW;
STICKLINE(C =O,C,O,7.2,0),COLORCC0000;
STICKLINE(C =O,C,O,1.7,0),COLORFF4411;
STICKLINE(C =O,C,O,0.5,0),COLORFFCC33;
M1:=3;
N:=9;
M2:=3;
{黄金柱}
M:=30;
N1:=15;
AJ:=HHV(H,M)=H;
AJT:=BARSLAST(AJ);
AJ1:=LLV(L,N1)=L;
AJ1T:=BARSLAST(AJ1);
TJ:=HHV(H,M)=H;
TJT:BARSLAST(TJ)NODRAW;
TJ1T:=BARSLAST(AJ1);
{STICKLINE((TJT=0,H,TJ1T=0)ANDAJ1ANDFILTERX(AJ1,TJT+1),REF(L,TJ1T)
,REF(H,TJT),0,0)COLORBLUE,LINETHICK3;}
OUT:=STICKLINE((TJT=0,H,TJ1T=0)ANDAJ1ANDFILTERX(AJ1,TJT+1),REF(L,TJ1T)
,REF(H,TJT),0,0),COLORBLUE,LINETHICK3;
STICKLINE(OUT -100,100,80,4,0),COLORGRAY,LINETHICK2;{深灰色柱}
{DRAWTEXT(OUT,82, ----底 ),COLORYELLOW;}
{SVAR1:= SM波段王.NOTEXTVBR4#DAY =1;
VBR3:=SVAR1;
VBR4:=SVAR1;}
YK: KDJ.K#MONTH NODRAW;
YD: KDJ.D#MONTH NODRAW;
ZK: KDJ.K#WEEK NODRAW;
ZD:= KDJ.D#WEEK NODRAW;
{YY:= 三强引用.KK#MONTH NODRAW;
ZZ:= 三强引用.KK#WEEK NODRAW;}
日买:= KDJ.K#DAY KDJ.D#DAY
ZXG:=1;
YXG:=1;
多:FILTER(CROSS(日买ANDZXGANDYXGANDREF(ZK,1) 50,0.5),5)COLORYELLOW,NODRAW;
{XGH:STICKLINE(多共振=1,92,100,4,0)COLORLIRED;
DRAWTEXT(XGH,96, 底 ),COLORCYAN;}
{KDJ日金}
日K:= KDJ.K#DAY (9,3,3);{9/3/3}
日D:= KDJ.D#DAY (9,3,3);
DRAWICON(日K 日D,0.1,32);
DRAWICON(日K 日D,0.1,2);
DRAWTEXT(ISLASTBAR=1,0.1, 日K
日DIF:= MACD.DIF#DAY (12,26,9);{12/26/9}
日DEA:= MACD.DEA#DAY (12,26,9);
{DRAWICON(日DIF 日DEA,0.2.1,32);
DRAWICON(日DIF 日DEA,0.2,2);
DRAWTEXT(ISLASTBAR=1,0.2, 日M
{RSI日}
日RSI:= RSI.RSI1#DAY (5);{5}
{DRAWICON(日RSI 50,0.3,32);
DRAWICON(日RSI 50,0.3,2);
DRAWTEXT(ISLASTBAR=1,0.3, 日R }
周K:= KDJ.K#WEEK (9,3,3);
周D:= KDJ.D#WEEK (9,3,3);
DRAWICON(周K 周D,0.4,13);
DRAWICON(周K 周D,0.4,2);
DRAWTEXT(ISLASTBAR=1,0.4, 周K
周DIF:= MACD.DIF#WEEK (12,26,9);{12/26/9}
周DEA:= MACD.DEA#WEEK (12,26,9);
DRAWICON(周DIF 周DEA,0.5,13);
DRAWICON(周DIF 周DEA,0.5,2);
DRAWTEXT(ISLASTBAR=1,0.5, 周M
{RSI周}
周RSI:= RSI.RSI1#WEEK (9);{9}
{DRAWICON(周RSI 50,0.6,13);
DRAWICON(周RSI 50,0.6,2);
DRAWTEXT(ISLASTBAR=1,0.6, 周R }
{KDJ月金}
月K:= KDJ.K#MONTH (9,3,3);
月D:= KDJ.D#MONTH (9,3,3);
{DRAWICON(月K 月D,0.7,33);
DRAWICON(月K 月D,0.7,2);
DRAWTEXT(ISLASTBAR=1,0.7, 月K }
{MACD月金}
月DIF:= MACD.DIF#MONTH (12,26,9);{12/26/9}
月DEA:= MACD.DEA#MONTH (12,26,9);
{DRAWICON(月DIF 月DEA,0.8,33);
DRAWICON(月DIF 月DEA,0.8,2);
DRAWTEXT(ISLASTBAR=1,0.8, 月M }
{RSI月}
月RSI:= RSI.RSI1#MONTH (9);{9}
{DRAWICON(月RSI 50,0.9,33);
DRAWICON(月RSI 50,0.9,2);
DRAWTEXT(ISLASTBAR=1,0.9, 月R }
月RSI1:= RSI.RSI1#MONTH (9),COLORWHITE;
A:=月RSI1 50;
首月R:=CROSS(A REF(A,1),0.5),COLORLIGRAY,LINETHICK3;
STICKLINE(首月R,100,63,5,0),COLORLIGRAY,LINETHICK3;
{DRAWTEXT(首月R,70.11, --月振底 ),COLORCYAN;}
月DIF1:= MACD.DIF#MONTH (12,26,9)COLORYELLOW;
月DEA1:= MACD.DEA#MONTH (12,26,9)COLORYELLOW;
AA:=月DIF1 月DEA1;
首月M:=CROSS(AA REF(AA,1),0.5)COLORYELLOW;
{DRAWTEXT(首月M,86, --月共振 ),COLORWHITE;}
月K1:= KDJ.K#MONTH (9,3,3),COLORMAGENTA;
月D1:= KDJ.D#MONTH (9,3,3),COLORMAGENTA;
AAA:=月K1 月D1;
首月K:=CROSS(AAA REF(AAA,1),0.5),COLORMAGENTA,LINETHICK3;
周RSI1:= RSI.RSI1#WEEK (9),COLORGREEN;
AAAA:=周RSI1 50;
首周R:=CROSS(AAAA REF(AAAA,1),0.5),COLORRED,LINETHICK4;
STICKLINE(首周R,10.05,21,5,0),COLORRED,LINETHICK4;
MA1:MA(CLOSE,15)LINETHICK3,COLORMAGENTA;
MA2:MA(CLOSE,20)COLORYELLOW;
MA3:MA(CLOSE,25)COLORRED;
MA4:MA(CLOSE,30)COLORGREEN;
BDGD:=C=HHV(C,20);
GDSJ:=BARSLAST(BDGD);
GJ:=(C+H+L+O)/4;
明阻:=L+(GJ-L)+(C-L);
明支:=L+(C-GJ);
今阻:REF(明阻,1),COLORGREEN,NODRAW;
今支:REF(明支,1),COLORFF00FF,NODRAW;
STICKLINE(ISLASTBARANDC =今阻,今阻*1.0001,今阻*0.9999,15,0),COLOR0000FF;
STICKLINE(ISLASTBARANDC 今阻,今阻*1.0001,今阻*0.9999,15,0),COLOR00FF00;
STICKLINE(ISLASTBARANDC =今支,今支*1.0001,今支*0.9999,15,0),COLORFF00FF;
STICKLINE(ISLASTBARANDC 今支,今支*1.0001,今支*0.9999,15,0),COLORFF8800;
剑:=(2*CLOSE+LOW+HIGH)/4;
刘:=EMA(剑,40)*0.85;
DI:=EMA(C,12)-EMA(C,13);
DE:=EMA(DI,3);
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
DRAWTEXT(CROSS(DE,DI),H*1.03, . ),COLOR00FF00;
TJ:=VOL =REF(V,1)*1.91ANDC REF(C,1)*1.01;
DRAWTEXT(CROSS(DI,DE),L*0.94, . ),COLORFF33FF;
DRAWTEXT(TJ,LOW*0.986, ★ ),COLORYELLOW;
STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORYELLOW;
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD 0 amp; amp;HD LD,HD,0),14);
DMM:=EXPMEMA(IF(LD 0 amp; amp;LD HD,LD,0),14);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:=EXPMEMA(ADX,6);
A:=PDI 30ANDADX 25ANDMDI 15;
M1:=MA(V,55);日比55:=V/M1;
发财:AAND日比55 1.5;
公式解读:
公式编写要求:
DIF1:=EMA(DCLOSE,2)-EMA(DCLOSE,3);DEA1:=EMA(DIF1,4);AAA1:=(DIF1-DEA1)*2*60;起爆点:=AAA1-REF(AAA1,1);DRAWICON(CROSS(起爆点,18),LOW,1);
公式编写方法:
DIF1:=EMA(DCLOSE,2)-EMA(DCLOSE,3);
DEA1:=EMA(DIF1,4);
AAA1:=(DIF1-DEA1)*2*60;
起爆点:=AAA1-REF(AAA1,1);
XG:CROSS(起爆点,18);