大智慧纯金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,'低位金叉'),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,'二次金叉'),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,'底背离'),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,'☆胜利!');
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(vol,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;
大智慧出手就赢抄底买入公式:
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);
STICKLINE(VAR9>-150,0,VAR9,3,0),COLORFF00FF;
底部吸筹指标:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00;
STICKLINE(CROSS(底部吸筹指标,-24),100,0,6,0),COLORFFFFFF;
先知:(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100,COLORFF00FF;
可能放量拉升:IF(CROSS(底部吸筹指标,-24),1,0),COLORFFFFFF;
短线获利:STICKLINE(REF("KDJ.J",1)<0AND"KDJ.J">0,60,0,2,0),COLOR0000FF;
VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VARK2:=REVERSE(VARK1);
VARK3:=SMA(VARK1,3,1);
波段王:SMA(VARK3,3,1),COLORRED,LINETHICK1;
波段鬼:SMA(波段王,2.5,1),COLORYELLOW,LINETHICK1;
趋势线: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),COLORFFFF33,LINETHICK1;
RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:SMA(RSV9,3,1);
DK1:K1-REF(K1,1),COLORSTICK;
出手就赢:IF(DK1>7ANDREF(DK1,1)<0AND(DK1-REF(DK1,1))>9,50,0),STICK,COLORYELLOW;DRAWICON(出手就赢>0,50,1);
买点准备:IF(趋势线<=10,0,10),COLORFF9933,LINETHICK1;
STICKLINE(CROSS(趋势线,10),0,73,6,0),COLOR3366FF;
DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,'抄底'),COLORWHITE;
DRAWTEXT(IF(CROSS(10,趋势线),1,0),10,'$备钱'),COLOR33FFCC;
DRAWTEXT(REF("KDJ.J",1)<0AND"KDJ.J">0,30,'短买'),COLORRED;
DRAWTEXT(CROSS(底部吸筹指标,-24),80,'抄底'),COLORWHITE;
大智慧千钧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,'大单分差'),Color00EEFF;
DRAWTEXTREL(600,900,'证券代码:'+STKLABEL+'证券名称:'+STKNAME+''),ColorEEBB88;
大智慧乾坤线公式:
Var1:=(HIGH+LOW+OPEN+CLOSE)/4;
Var3:=2*EMA(LLV(Var1,7),10)-Var1;
黄金线:MA(3*Var1-2*SMA(Var1,2,1),12),coloryellow;
乾坤线:3*Var3-2*SMA(Var3,10,1),COLORGREEN;
x2:=C;
x3:=黄金线;
stickline(x2>=x3,low,high,0.1,0),colorred;
stickline(x2>=x3,close,open,4.5,0),color0000AA;
stickline(x2>=x3,close,open,3,0),color0000CC;
stickline(x2>=x3,close,open,2,0),color0000DD;
stickline(x2>=x3,close,open,1,0),color0000FF;
stickline(x2stickline(x2stickline(x2stickline(x2stickline(x2stickline(cross(C,乾坤线),open,close,3.5,0),coloryellow;
stickline(cross(乾坤线,C),open,close,3.5,0),color00ff00;
评论(0)