大智慧纯金MACD顶公式:
DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
STICKLINE(MACD =0,MACD,0,4,1),COLORF00FF0;
STICKLINE(MACD 0,MACD,0,4,1),COLORWHITE;
STICKLINE(MACD ref(MACD,1)andMACD 0,0,MACD,4,0),COLOR00aaff;
STICKLINE(MACD ref(MACD,1)andMACD 0,0,MACD,3.3,0),COLOR00bbff;
STICKLINE(MACD ref(MACD,1)andMACD 0,0,MACD,2.2,0),COLOR00ccff;
STICKLINE(MACD ref(MACD,1)andMACD 0,0,MACD,1.65,0),COLOR00ddff;
STICKLINE(MACD ref(MACD,1)andMACD 0,0,MACD,1.1,0),COLOR00eeff;
STICKLINE(MACD ref(MACD,1)andMACD 0,0,MACD,0.55,0),COLOR00ffff;
STICKLINE(MACD =ref(MACD,1)andMACD 0,0,MACD,4,0),COLOR0000aa;
STICKLINE(MACD =ref(MACD,1)andMACD 0,0,MACD,3.3,0),COLOR0011bb;
STICKLINE(MACD =ref(MACD,1)andMACD 0,0,MACD,2.2,0),COLOr0022cc;
STICKLINE(MACD =ref(MACD,1)andMACD 0,0,MACD,1.65,0),COLOR0033dd;
STICKLINE(MACD =ref(MACD,1)andMACD 0,0,MACD,1.1,0),COLOR0044ee;
STICKLINE(MACD =ref(MACD,1)andMACD 0,0,MACD,0.55,0),COLOR0055ff;
STICKLINE(MACD ref(MACD,1)andMACD 0,0,MACD,4,0),COLOraa00bb;
STICKLINE(MACD ref(MACD,1)andMACD 0,0,MACD,3.3,0),COLORbb11bb;
STICKLINE(MACD ref(MACD,1)andMACD 0,0,MACD,2.2,0),COLOrcc22bb;
STICKLINE(MACD ref(MACD,1)andMACD 0,0,MACD,1.65,0),COLORdd33bb;
STICKLINE(MACD ref(MACD,1)andMACD 0,0,MACD,1.1,0),COLORee44bb;
STICKLINE(MACD ref(MACD,1)andMACD 0,0,MACD,0.55,0),COLORff55bb;
STICKLINE(MACD =ref(MACD,1)andMACD 0,0,MACD,4,0),COLOrffaa00;
STICKLINE(MACD =ref(MACD,1)andMACD 0,0,MACD,3.3,0),COLORffbb11;
STICKLINE(MACD =ref(MACD,1)andMACD 0,0,MACD,2.2,0),COLOrffcc22;
STICKLINE(MACD =ref(MACD,1)andMACD 0,0,MACD,1.65,0),COLORffdd33;
STICKLINE(MACD =ref(MACD,1)andMACD 0,0,MACD,1.1,0),COLORffee44;
STICKLINE(MACD =ref(MACD,1)andMACD 0,0,MACD,0.55,0),COLORffff55;
if(diff 0,diff,0),colorred,linethick1;
if(diff 0,0,diff),coloryellow,linethick1;
if(diff dea,diff,dea),COLOR00ff00,linethick1;
if(diff dea,dea,dea),COLORwhite,linethick1;
低位:=CROSS(DIFF,DEA)ANDDIFF -0.1;
STICKLINE(低位金叉,0,-0.18,6,0),COLORYELLOW;DRAWTEXT(低位金叉,-0.1, #39;低位金叉 #39;),COLORYELLOW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA =0));
二次金叉:=CROSS(DIFF,DEA)ANDDEA 0ANDCOUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,-0.18,6,0),ColorFF00FF;
DRAWICON(二次金叉,dea*1.04,13);
DRAWTEXT(二次金叉,-0.1, #39;二次金叉 #39;),ColorFF00FF;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1) CLOSEANDDIFF REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);
STICKLINE(底背离,0,0.13,6,0),Color00FF00;
DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,linethick2;
DRAWTEXT(底背离,0.1, #39;底背离 #39;),Color00FF00;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1) CLOSEANDREF(DIFF,A2+1) DIFFANDCROSS(DEA,DIFF);
DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,linethick2;
大智慧出水芙蓉公式:
Var1:=REF(CLOSE,1);
Var2:=SMA(MAX(CLOSE-Var1,0),6,1)/SMA(ABS(CLOSE-Var1),6,1)*100;
DRAWTEXT(Var2 92ANDREF(Var2,1) 92,100, #39;☆胜利! #39;);
Var3:=EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16);
Var4:=1/WINNER(CLOSE);
Var5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
Var6:=100-ABS(Var5);
Var7:=(CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100;
Var8:=SMA(Var7,20,1);
Var9:=SMA(Var8,15,1);
VarA:=100-3*Var8+2*Var9;
VarB:=((EMA(IF(VarA REF(VarA,1),VarA,VarA-3),3)-50)*(-1)*2/2+50)/10;
VarC:=EMA(AMOUNT,13)/EMA(,13);
VarD:=(VarC/REF(VarC,1)-1)*100;
VarE:=VOL/CAPITAL*100;
VarF:=(HIGH-LOW)/((HIGH+LOW)/2)*100;
Var10:=(VarB+VarE)*VarF*VarD;
Var11:=VOL/CAPITAL;
Var12:=VOL/700000000;
Var13:=IF(Var11=0,Var12,Var11);
Var14:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
Var15:=2.5*MAX(Var13,Var14);
Var16:=DMA(CLOSE,Var15);
Var17:=SMA(20*(Var16/REF(Var16,1)-1),2,1);
Var18:=EMA(Var17,2);Var19:=0.17;
Var1A:=CLOSE =REF(CLOSE,1);Var1B:=VOL/CAPITAL;
Var1C:=VOL/700000000;
Var1D:=IF(Var1B=0,Var1C,Var1B);
Var1E:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
Var1F:=2.5*MAX(Var1D,Var1E);
Var20:=DMA(CLOSE,Var1F);
Var23:=20*(Var20/REF(Var20,1)-1);
Var21:=SMA(Var23*20,2,1);
Var22:=EMA(Var21,2);
介入:IF(Var17 Var19ANDVar18 =0.005ANDVar1A,70,0),stick,linethick3,coloryellow;
买入:IF(Var10 100ANDVar10 200,130,0),stick,linethick3,colormagenta;
加码:IF(Var10 200,200,0),color3366cc,stick,linethick3;
止盈:IF(Var3 1.15ANDVar3 REF(Var3,1),-200,0),colorff6633;
卖出:IF(Var3 1.1ANDVar3 1.15ANDVar3 REF(Var3,1),-100,0),colorgreen,linethick3;
STICKLINE(Var22 =0.003,-0.05,0.05,10,0),linethick5,colorred;
STICKLINE(BETWEEN(Var22,0.003,-0.003),-0.05,0.05,10,0),linethick5,colorwhite;
STICKLINE(Var22 =-0.003,-0.05,0.05,10,0),linethick5,colorgreen;
公式解读:
大智慧千钧DDZ大单差分公式:
jj:=(HIGH+LOW+CLOSE)/3;qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);
qj1:=IF(CAPITAL=0,qj0*(jj-MIN(CLOSE,OPEN)),qj0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
qj2:=IF(CAPITAL=0,qj0*(MIN(OPEN,CLOSE)-LOW),qj0*IF(HIGH=LOW,1,(jj-MIN(CLOSE,OPEN))));
qj3:=IF(CAPITAL=0,qj0*(HIGH-MAX(OPEN,CLOSE)),qj0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
qj4:=IF(CAPITAL=0,qj0*(MAX(CLOSE,OPEN)-jj),qj0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-jj)));
qj5:=qj1+qj2;qj6:=qj3+qj4;DD:=(qj5-qj6)/(qj5+qj6)*100;
DDZ:DD*17,LINETHICK0;DDZ1:DD*13,LINETHICK0;
FILLRGN(DDZ,DDZ1,DDZ =DDZ1,RGB(255,0,0),DDZ DDZ1,RGB(0,130,250));
DRAWTEXTREL(10,0, #39;大单分差 #39;),Color00EEFF;
DRAWTEXTREL(600,900, #39;证券代码: #39;+STKLABEL+ #39;证券名称: #39;+STKNAME+ #39; #39;),ColorEEBB88;