【股票指标公式下载】-【大智慧】分时画线(自动画线、主图)
自动画线股票主图指标公式
自动画线股票主图指标公式指标公式:HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY: =0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055 FF,POINTDOT;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYEL LOW,POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L*0.98,1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2;ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORF F55BB,LINETHICK2;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAG ENTA,POINTDOT,;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCY A N,POINTDOT;EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;V AR2:=(2*CLOSE+HIGH+LOW)/4;V AR3:=IF(YEAR>=2099 AND MONTH>2,0,1);V AR4:=LLV(LOW,5); V AR5:=HHV(HIGH,4);散户:=EMA((VAR2-V AR4)/(V AR5-VAR4)*100,4)*V AR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*V AR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN; DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);V AR9:=CLOSE-REF(CLOSE,5);V ARA:=EMA(EMA(V AR9,5),5)/EMA(EMA(ABS(V AR9),5),5);V ARC:=EMA(EMA(V AR9,20),20)/EMA(EMA(ABS(V AR9),20),20);卖出:=IF(VARA>0 AND CROSS(V ARC,V ARA),90,100);DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24 )*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;A0:=(L+H+C*2)/4;A1:EMA(A0,14)COLORBLUE,LINETHICK2;A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;看多:IF(A1X>=0 ANDBARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),C OLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 ANDBARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),C OLORCY AN,{LINETHICK2};买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3; STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;。
【股票指标公式下载】-【大智慧】筹码主图(成本、筹码分布)
【大智慧】筹码主图(成本、筹码分布)-指标公式源码input:N(130,1,10000),M(50,0,100);Var1:="[email=XWUS@COSTL]XWUS@COSTL"(N,M[/email]);成本: Var1,colorgreen ;Var6:="[email=XWUS@CMBL]XWUS@CMBL"(n,5[/email]);Var7:="[email=XWUS@CMBL]XWUS@CMBL"(n,6[/email]);Var8:="[email=XWUS@CMBL]XWUS@CMBL"(n,7[/email]);Var9:="[email=XWUS@CMBL]XWUS@CMBL"(n,8[/email]);VarA:="[email=XWUS@CMBL]XWUS@CMBL"(n,9[/email]);VarB:="[email=XWUS@CMBL]XWUS@CMBL"(n,10[/email]);VarC:="[email=XWUS@CMBL]XWUS@CMBL"(n,11[/email]);VarD:="[email=XWUS@CMBL]XWUS@CMBL"(n,12[/email]);VarE:="[email=XWUS@CMBL]XWUS@CMBL"(n,13[/email]);VarF:="[email=XWUS@CMBL]XWUS@CMBL"(n,14[/email]);Var10:="[email=XWUS@CMBL]XWUS@CMBL"(n,15[/email]);Var11:="[email=XWUS@CMBL]XWUS@CMBL"(n,16[/email]);Var12:="[email=XWUS@CMBL]XWUS@CMBL"(n,17[/email]);Var13:="[email=XWUS@CMBL]XWUS@CMBL"(n,18[/email]);Var14:="[email=XWUS@CMBL]XWUS@CMBL"(n,19[/email]);Var15:="[email=XWUS@CMBL]XWUS@CMBL"(n,20[/email]);Var16:="[email=XWUS@CMBL]XWUS@CMBL"(n,21[/email]);Var17:="[email=XWUS@CMBL]XWUS@CMBL"(n,22[/email]);Var18:="[email=XWUS@CMBL]XWUS@CMBL"(n,23[/email]);Var19:="[email=XWUS@CMBL]XWUS@CMBL"(n,24[/email]);Var1A:="[email=XWUS@CMBL]XWUS@CMBL"(n,25[/email]);Var1B:="[email=XWUS@CMBL]XWUS@CMBL"(n,26[/email]);Var1C:="[email=XWUS@CMBL]XWUS@CMBL"(n,27[/email]);Var1D:="[email=XWUS@CMBL]XWUS@CMBL"(n,28[/email]);Var1E:="[email=XWUS@CMBL]XWUS@CMBL"(n,29[/email]);Var1F:="[email=XWUS@CMBL]XWUS@CMBL"(n,30[/email]);Var20:="[email=XWUS@CMBL]XWUS@CMBL"(n,31[/email]);Var21:="[email=XWUS@CMBL]XWUS@CMBL"(n,32[/email]);Var22:="[email=XWUS@CMBL]XWUS@CMBL"(n,33[/email]);Var23:="[email=XWUS@CMBL]XWUS@CMBL"(n,34[/email]);Var24:="[email=XWUS@CMBL]XWUS@CMBL"(n,35[/email]);Var25:="[email=XWUS@CMBL]XWUS@CMBL"(n,36[/email]);Var26:="[email=XWUS@CMBL]XWUS@CMBL"(n,37[/email]);Var27:="[email=XWUS@CMBL]XWUS@CMBL"(n,38[/email]);Var28:="[email=XWUS@CMBL]XWUS@CMBL"(n,39[/email]);Var29:="[email=XWUS@CMBL]XWUS@CMBL"(n,40[/email]);Var2A:="[email=XWUS@CMBL]XWUS@CMBL"(n,41[/email]); POLYLINE(Var6>0,Var6),Color008364,LAYER7;POLYLINE(Var7>0,Var7),Color008364,LAYER7;POLYLINE(Var8>0,Var8),Color008364,LAYER7;POLYLINE(Var9>0,Var9),Color008364,LAYER7{,color808080}; POLYLINE(VarA>0,VarA),Color008364,LAYER7;POLYLINE(VarB>0,VarB),Color008364,LAYER7;POLYLINE(VarC>0,VarC),Color008364,LAYER7;POLYLINE(VarD>0,VarD),Color008364,LAYER7{,color808080}; POLYLINE(VarE>0,VarE),Color008364,LAYER7;POLYLINE(VarF>0,VarF),Color008364,LAYER7;POLYLINE(Var10>0,Var10),Color008364,LAYER7;POLYLINE(Var11>0,Var11),Color008364,LAYER7{,color808080}; POLYLINE(Var12>0,Var12),Color008364,LAYER7;POLYLINE(Var13>0,Var13),Color008364,LAYER7;POLYLINE(Var14>0,Var14),Color008364,LAYER7;POLYLINE(Var15>0,Var15),Color008364,LAYER7{,color808080}; POLYLINE(Var16>0,Var16),Color008364,LAYER7;POLYLINE(Var17>0,Var17),Color008364,LAYER7;POLYLINE(Var18>0,Var18),Color008364,LAYER7;POLYLINE(Var19>0,Var19),Color008364,LAYER7{,color808080}; POLYLINE(Var1A>0,Var1A),Color008364,LAYER7;POLYLINE(Var1B>0,Var1B),Color008364,LAYER7;POLYLINE(Var1C>0,Var1C),Color008364,LAYER7;POLYLINE(Var1D>0,Var1D),Color008364,LAYER7{,color808080}; POLYLINE(Var1E>0,Var1E),Color008364,LAYER7;POLYLINE(Var1F>0,Var1F),Color008364,LAYER7;POLYLINE(Var20>0,Var20),Color008364,LAYER7;POLYLINE(Var21>0,Var21),Color008364,LAYER7{,color808080}; POLYLINE(Var22>0,Var22),Color008364,LAYER7;POLYLINE(Var23>0,Var23),Color008364,LAYER7;POLYLINE(Var24>0,Var24),Color008364,LAYER7;POLYLINE(Var25>0,Var25),Color008364,LAYER7{,color808080}; POLYLINE(Var26>0,Var26),Color008364,LAYER7;POLYLINE(Var27>0,Var27),Color008364,LAYER7;POLYLINE(Var28>0,Var28),Color008364,LAYER7;POLYLINE(Var29>0,Var29),Color008364,LAYER7{,color808080};{}空:=EMA(C,5);均衡:EMA(空,5),COLORWHITE;趋势:LLV(MA(H,13),1),COLORred;{}现价: if (DYNAINFO(4)=0,C,DYNAINFO(7)),colorwhite,POINTDOT;k1:=l>ref(h,1);k2:=barslast(k1);k4:=h<REF(L,1);k5:=barslast(k4);k7:=k2<K5;k3:=backset(BARSTATUS=2 and k7,k2+1);k6:=backset(BARSTATUS=2 and not(k7),k5+1);k8:=filter(backset(BARSTATUS=2 ,if(k7,k2+1,k5+1)),1000);STICKLINE((k3 and (llv(l,k2)>ref(h,k2+1) or k1)) or (BARSTATUS=2 and k1),ref(h,k2+1),ref(l,k2),28,0),ColorC0C0C0,ALIGN1,LAYER7; STICKLINE((k6 and (hhv(h,k5)<REF(L,K5+1) ork4)),ref(l,k5+1),ref(h,k5),28,0),ColorC0C0C0,ALIGN1,LAYER7; DRAWTEXT(k1,ref(h,1),''+ref(h,1)),Color0000FF,VALIGN0,ALIGN2,LINETHIC K2;DRAWTEXT(k1,ref(h,1),'-'+l),Color0000FF,VALIGN0,LINETHICK2; DRAWTEXT(k4,ref(l,1),'-'+h),Color00FF00,VALIGN2,LINETHICK2; DRAWTEXT(k4,ref(l,1),''+ref(l,1)),Color00FF00,VALIGN2,ALIGN2,LINETHIC K2;DRAWTEXTABS(0,40,'上涨家数:'+NUMTOSTRN(DYNAINFO(69),0)+' 家'),COLOR0000FF;DRAWTEXTABS(0,55,'下跌家数:'+NUMTOSTRN(DYNAINFO(70),0)+' 家'),COLOR00FF00;DRAWTEXTABS(0,69,'平盘家数:'+NUMTOSTRN(DYNAINFO(71),0)+' 家'),COLORFFFFFF;【大智慧】筹码主图(成本、筹码分布)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】主黄金线(最高价、最低价、市场成本、压力)
【大智慧】主黄金线(最高价、最低价、市场成本、压力)-指标公式源码input:K(1,1,3);T:=BARSLAST(DISPSTATUS=1)+1;A:=DISPSTATUS=2;HH:=HHV(H, T);LL:=LLV(L, T);HL:=HH-LL;wH:=HHVBARS(H, T);wL:=LLVBARS(L, T);KK:=wH-wL;mHL:=HH-HL*0.5;if K=1 then beginHL191:=(HH-LL)*0.191;HL382:=(HH-LL)*0.382;HL618:=(HH-LL)*0.618;HL809: =(HH-LL)*0.809;if KK<0 then begina1:=HH-HL191;a2:=HH-HL382;a3:=HH-HL618;a4:=HH-HL809;end else begina1:=LL+HL191;a2:=LL+HL382;a3:=LL+HL618;a4:=LL+HL809;end endif k=1 then beginHL125:=(HH-LL)*0.125;HL250:=(HH-LL)*0.25;HL375:=(HH-LL)*0.375;HL625:= (HH-LL)*0.625;HL750:=(HH-LL)*0.75;HL875:=(HH-LL)*0.875;if kk<0 then beginb1:=HH-HL125;b2:=HH-HL250;b3:=HH-HL375;b4:=HH-HL625;b5:=HH-HL750;b6:= HH-HL875;end else beginb1:=LL+HL125;b2:=LL+HL250;b3:=LL+HL375;b4:=LL+HL625;b5:=LL+HL750;b6:= LL+HL875;end endDRAWTEXT(A and K<>3,HH, '最高价:'+HH),ALIGN2,ColorFF00FF; DRAWTEXT(A and K<>3,LL, '最低价:'+ll),ALIGN2,VALIGN2,Color00FF00; DRAWTEXT(A and K<>3,mHL,'50%:'+mHL),ALIGN2,ColorFF8000;DRAWTEXT(A and K=1, a1, '0.191:'+NUMTOSTRN(a1,2)),ALIGN2,Color4080FF; DRAWTEXT(A and K=1, a2, '0.382:'+NUMTOSTRN(a2,2)),ALIGN2,Color4080FF; DRAWTEXT(A and K=1, a3, '0.618:'+NUMTOSTRN(a3,2)),ALIGN2,Color4080FF; DRAWTEXT(A and K=1, a4, '0.809:'+NUMTOSTRN(a4,2)),ALIGN2,Color4080FF; DRAWTEXT(A and K=1, b1, '1/8:'+NUMTOSTRN(b1,2)),ALIGN2,ColorC0C0C0; DRAWTEXT(A and K=1, b2, '1/4:'+NUMTOSTRN(b2,2)),ALIGN2,ColorC0C0C0;DRAWTEXT(A and K=1, b5, '3/4:'+NUMTOSTRN(b5,2)),ALIGN2,ColorC0C0C0; DRAWTEXT(A and K=1, b6, '7/8:'+NUMTOSTRN(b6,2)),ALIGN2,ColorC0C0C0; DRAWTEXT(A and K<>3,HH, ' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),ALIGN2,colorred,linethick7;DRAWTEXT(A and K<>3,LL, ' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),ALIGN2,colorred,linethick7;DRAWTEXT(A and K<>3,mHL,' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),ALIGN2,ColorFF8000,linethick7; DRAWTEXT(A and K=1, a1, '﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊'),ALIGN2,color208FFF,linethick0; DRAWTEXT(A and K=1, a2, '﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊'),ALIGN2,color208FFF,linethick0; DRAWTEXT(A and K=1, a3, '﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊'),ALIGN2,color208FFF,linethick0;DRAWTEXT(A and K=1, a4, '﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊'),ALIGN2,color208FFF,linethick0;DRAWTEXT(A and K=1, b1, '﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉'),ALIGN2,ColorC0C0C0; DRAWTEXT(A and K=1, b2, '﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉'),ALIGN2,ColorC0C0C0; DRAWTEXT(A and K=1, b5, '﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉'),ALIGN2,ColorC0C0C0;DRAWTEXT(A and K=1, b6, '﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉'),ALIGN2,ColorC0C0C0;市场成本:DMA(AMOUNT/V/100,V/CAPITAL),Color0080FF,LINETHICK1; DRAWICON(CROSS(C,市场成本),L,1),ALIGN1;PT:= REF(HIGH,1)-REF(LOW,1);重心:=(HIGH + LOW + CLOSE)/3;压力Ⅰ:=2*重心-LOW;压力Ⅱ:= 重心 + PT;支撑Ⅰ:=2*重心-HIGH;支撑Ⅱ:= 重心 - PT;DRAWTEXTABS(50,68,' 重心:'+重心),Color208FFF;DRAWTEXTABS(20,87,' 支撑'),Color00FF00;DRAWTEXTABS(20,104,' '+支撑Ⅰ),Color00FF00;DRAWTEXTABS(20,122,' '+支撑Ⅱ),Color00FF00;DRAWTEXTABS(25,87,' 压力'),ColorFF00FF; DRAWTEXTABS(25,104,' '+压力Ⅰ),ColorFF00FF; DRAWTEXTABS(25,122,' '+压力Ⅱ),ColorFF00FF; DRAWTEXTABS(25,65,'│'),Color00FFFF;DRAWTEXTABS(25,77,'│'),Color00FFFF;DRAWTEXTABS(25,89,'│'),Color00FFFF;DRAWTEXTABS(25,101,'│'),Color00FFFF;DRAWTEXTABS(25,113,'│'),Color00FFFF;DRAWTEXTABS(25,125,'│'),Color00FFFF;DRAWTEXTABS(170,65,'│'),Color00FFFF;DRAWTEXTABS(170,77,'│'),Color00FFFF;DRAWTEXTABS(170,89,'│'),Color00FFFF;DRAWTEXTABS(170,101,'│'),Color00FFFF;DRAWTEXTABS(170,113,'│'),Color00FFFF;DRAWTEXTABS(170,125,'│'),Color00FFFF;DRAWTEXTABS(96,85,'│'),Color00FFFF;DRAWTEXTABS(96,89,'│'),Color00FFFF;DRAWTEXTABS(96,101,'│'),Color00FFFF;DRAWTEXTABS(96,113,'│'),Color00FFFF;DRAWTEXTABS(96,125,'│'),Color00FFFF;DRAWTEXTABS(30,60,'──────────'),Color00FFFF;DRAWTEXTABS(30,80,'──────────'),Color00FFFF; DRAWTEXTABS(30,97,'──────────'),Color00FFFF; DRAWTEXTABS(30,114,'──────────'),Color00FFFF; DRAWTEXTABS(30,131,'──────────'),Color00FFFF;G:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);X:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);ED:=barslast(G);EF:=barslast(X);DRAWTEXTREL(25,410,'买入:'+NUMTOSTR(ED) +'天'+' 卖出:'+NUMTOSTR(EF) +'天' ),colorFfff00;{K线优化}STICKLINE(close>=open,open,close,8,1),colorred;STICKLINE(open>close,close,open,8,0 ),ColorFFFF00;STICKLINE(close>=open,close,HIGH,0.5 ,0 ),colorred;STICKLINE(close>=open,open,low,0.5 ,0),colorred;STICKLINE(open>close,close,low,0.5 ,0 ),ColorFFFF00;STICKLINE(open>close,open,HIGH,0.5 ,0 ),ColorFFFF00;C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,8,0),Color00FFFF;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,8,0),ColorFF8000;{粉兰色K线};F:=100*(C-REF(C,1))/REF(C,1);今小昨:=IF(C<REF(O,1) AND f<0,1,0);p1:=今小昨;今小前:=IF(C<REF(O,2) AND f<0,1,0);p2:=今小前;stickline(P1=0 AND REF(P1,1)=1 AND P2=0 ANDREF(P2,1)=1,open,CLOSE,6,0),COLORMAGENTA;stickline(P1=1 AND REF(P1,1)=0 AND P2=1 ANDREF(P2,1)=0,open,CLOSE,3,0),COLORBLUE;DRAWTEXT(G,L*0.997,'△'),ALIGN1,VALIGN0,Color00FF00;DRAWTEXT(G,L,' ̄'),ALIGN1,VALIGN0,Color00ff00;DRAWTEXT(X,H*1.002,'▽'),ALIGN1,VALIGN2,ColorFF00FF;DRAWTEXT(X,H,' ̄'),ALIGN1,VALIGN0,ColorFF00FF;DRAWTEXTREL(130,25,'所属板块:'+BKNAME),COLORFFFFFF;今市上涨家数:=INDEXADV;平盘家数:=DYNAINFO(68);今市下跌家数:=INDEXDEC;DRAWTEXTABS(30,10,'今市上涨:'+今市上涨家数+' 家'),ColorFFFF00,linethick2;DRAWTEXTABS(65,25,'平盘:'+平盘家数+' 家'),ColorFFFF00,linethick2; DRAWTEXTABS(65,40,'下跌:'+NUMTOSTRN(今市下跌家数,0)+' 家'),ColorFFFF00,linethick2;【大智慧】主黄金线(最高价、最低价、市场成本、压力)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】四区主图(压力、支撑、低吸、低涨)
【大智慧】四区主图(压力、支撑、低吸、低涨)-指标公式源码MA5:MA(CLOSE,5),COLORFFFFFF,PRECIS2,LAYER0;MA10:MA(CLOSE,10),COLOR00FFFF,PRECIS2,LAYER0;MA20:MA(C,20),COLORFF00FF,PRECIS2,LAYER0;W:=BARSLAST(DISPSTATUS=1);P:=BACKSET(DISPSTATUS=2,W/2+1);K:=BARSLAST(CROSS(P,0.5));KJ:=HHVALL(HIGH)-LLVALL(LOW);VERTLINE(CROSS(P,0.5),4),COLOR00FFFF;平衡:LLVALL(LOW)+KJ/2,COLOR00FFFF,DOTLINE,PRECIS2;FILLRGN(平衡,HHVALL(HIGH),W>K,RGB(0,0,200)),PRECIS2;{该行设置背景色} 压力:IF(K>=0,HHVALL(HIGH)-KJ*0.191,平衡),COLORFF00FF,DOTLINE,PRECIS2; 支撑:IF(K>=0,LLVALL(LOW)+KJ*0.191,平衡),COLOR00FF00,DOTLINE,PRECIS2; 低吸:K>=0 and CROSS(平衡,LOW),COLORFF8899,LINETHICK0,PRECIS2;低涨:(C/LLV(LOW,W)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;天:BARSLAST(L=LLV(LOW,W)),COLOR00FFFF,LINETHICK0,PRECIS0; DRAWTEXT(HIGH=HHVALL(HIGH) and K>=0,HIGH*1.01,'←'+NUMTOSTRN(HIGH,2)),COLORFFFFFF;DRAWICON(低吸,LOW,6);{以下设置提示文字部分}DRAWTEXT(DISPSTATUS=2,压力,'0.809'),COLOR0000FF,ALIGN0;DRAWTEXT(DISPSTATUS=2,平衡,'0.500'),COLORFFFFFF,ALIGN0;DRAWTEXT(DISPSTATUS=2,支撑,'0.191'),COLOR00FFFF,ALIGN0;DRAWTEXT(K=0,HHVALL(HIGH)-KJ/12,'★强势区域--急拉减仓!'),COLOR00FFFF,ALIGN1;DRAWTEXT(K=0,HHVALL(HIGH)-KJ/3,'●震荡整理--寻机低吸!'),COLOR00FF00,ALIGN1;DRAWTEXT(K=0,LLVALL(LOW)+KJ/3,'◆反弹中轨--逢高休息!'),COLORFFFFFF,ALIGN1;DRAWTEXT(K=0,LLVALL(LOW)+KJ/10,'■弱势区域--暂不参与!'),COLORFFFF00,ALIGN1;{以下设置个股信息}DRAWTEXTREL(10,50,'所属板块:'+BKNAME),COLORFFFFFF;DRAWTEXTREL(10,120,'股票名称:'+'【'+STKLABEL+' '+STKNAME+'】'),COLOR00FF00;DD:=FINANCE2(35);SS:=FINANCE2(37);DRAWTEXTREL(10,190,'总股本:'+NUMTOSTRN(DD,0)+'万' +' 流通A 股:'+NUMTOSTRN(SS,0)+'万'),COLOR00FFFF;DRAWTEXTREL(10,300,'■低点至今上涨:'+NUMTOSTRN(低涨,2)+'%'+NUMTOSTRN(天,0)+'天'),COLOR0000FF;DRAWTEXTREL(10,360,'■目前可见K线:'+NUMTOSTRN(W+1,0)+'天'),COLOR00FF00;DRAWTEXTREL(10,420,'■建议查阅K线:短线30天,中长线120天!'),COLORFF8899;DRAWTEXTREL(10,920,'====【若水】===='),COLOR889999;{以下设置五彩立体K线}STICKLINE(CLOSE>OPEN or CLOSE=OPEN andCLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;STICKLINE(CLOSE>OPEN or CLOSE=OPEN andCLOSE>REF(CLOSE,1),OPEN,CLOSE,7,0),colorred;STICKLINE(CLOSE<OPEN or CLOSE=OPEN andCLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan;STICKLINE(CLOSE<OPEN or CLOSE=OPEN andCLOSE<=REF(CLOSE,1),OPEN,CLOSE,7,0),colorcyan;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;【大智慧】四区主图(压力、支撑、低吸、低涨)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】数字主图(预测、明日支撑、撑压位共9页文档
【大智慧】数字主图(预测、明日支撑、撑压位)-指标公式源码预测1:=(C+H+L)/3;预测2:=H-L;预测4:=预测1+预测2;预测5:=预测1-预测2;预测6:=2*预测1-L;预测7:=2*预测1-H;预测9:=BARSTATUS=2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测4,预测5,1,1000),COLOR102070,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测4,预测5,0,1000),COLOR1020E0,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,8,1000),COLOR102070,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,7,1000),COLOR102080,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,6,1000),COLOR102090,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,5,1000),COLOR1020A0,LINETHICK2;7,4,1000),COLOR1020B0,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,3,1000),COLOR1020C0,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,2,1000),COLOR1020D0,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,1,1000),COLOR1020E0,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测4,预测5,1,1000),COLOR105510,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测4,预测5,0,1000),COLOR10CC10,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,8,1000),COLOR105510,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,7,1000),COLOR106610,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,6,1000),COLOR107710,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,5,1000),COLOR108810,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,4,1000),COLOR109910,LINETHICK2;7,3,1000),COLOR10AA10,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,2,1000),COLOR10BB10,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,1,1000),COLOR10CC10,LINETHICK2;gj:=if(c=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(v+0.01) /100);明日阻力:=l+(gj-l)+(c-l);明日支撑:=l+(c-gj);明日阻力:=l+(gj-l)+(c-l);明日支撑:=l+(c-gj);今日阻力:=REF(明日阻力, 1);今日支撑:=REF(明日支撑, 1);STICKLINE(DISPSTATUS=2 and c>=今日阻力,今日阻力,今日阻力,30,0),Color0000FF;STICKLINE(DISPSTATUS=2 and c<今日阻力,今日阻力,今日阻力,30,0),Color00FF00;STICKLINE(DISPSTATUS=2 and c>=今日支撑,今日支撑,今日支撑,30,0),ColorFF00FF;STICKLINE(DISPSTATUS=2 and c<今日支撑,今日支撑,今日支撑,30,0),ColorFF0000;DRAWTEXTREL(406,117,'---------------------------------------'), ColorFFFFFF;IF BARSTATUS=2 and c>=今日支撑 THENDRAWTEXTREL(408,147,'今日支撑:'+NUMTOSTRN(今日支撑,2)),colorred;IF BARSTATUS=2 and c<今日支撑 THENDRAWTEXTREL(408,147,'今日支撑:'+NUMTOSTRN(今日支撑,2)),colorred;IF BARSTATUS=2 and c>=今日阻力 THENDRAWTEXTREL(408,187,'今日阻力:'+NUMTOSTRN(今日阻力,2)),Color0000FF;IF BARSTATUS=2 and c<今日阻力 THENDRAWTEXTREL(408,187,'今日阻力:'+NUMTOSTRN(今日阻力,2)),Color00FF00;IF BARSTATUS=2 and c>=明日支撑 THENDRAWTEXTREL(510,147,' 明日支撑:'+NUMTOSTRN(明日支撑,2)),Color00FFFF;IF BARSTATUS=2 and c<明日阻力 THENDRAWTEXTREL(510,187,' 明日阻力:'+NUMTOSTRN(明日阻力,2)),Color00FFFF;DRAWTEXTREL(406,217,'===================='),ColorFFFFFF;下档线:=(((CLOSE - LLV(LOW,13))/(HHV(HIGH,13) - LLV(LOW,13))) * 100);aRSV:=SMA(下档线,3,1);aK:=SMA(aRSV,3,1);aD:=((3 * aRSV) - (2 * aK));aJ12:=(((CLOSE - LLV(LOW,55))/(HHV(HIGH,55) - LLV(LOW,55))) * 100);aRSV24:=SMA(aJ12,3,1);aK24:=SMA(aRSV24,3,1);aD24:=((3 * aRSV24) - (2 * aK24));撑压位:=IF(CROSS(aD24,aD),HIGH,REF(HIGH,BARSLAST(CROSS(aD24,aD))));底:=LLV(HIGH,30){,COLOR00FF00,LINETHICK2};STICKLINE(BARSTATUS=2,撑压位,撑压位,30,1),LINETHICK1,COLORFFFFFF;DRAWTEXT(BARSTATUS=2,撑压位,'撑压'),COLORFFFFFF,VALIGN1; STICKLINE(BARSTATUS=2,底,底,30,1),COLOR00FF00,LINETHICK1; DRAWTEXT(BARSTATUS=2,底,'底线'),COLOR00FF00,VALIGN0;AA05:MA(C,5),colorff00ff,linethick1;五日乖离率:=(c-AA05)/AA05*100;BB05:=atan((aa05/ref(aa05,1)-1)*100)*180/3.1416;速度5:=sma(ema((AA05-ref(AA05,1))/ref(AA05,1),3)*100,3,1);加速度5:ema((速度5-ref(速度5,1)),3),linethick0;{STICKLINE(BB05>30 andAA05>ref(AA05,1),AA05,REF(AA05,1),8,1),colorff00ff;}AA10:MA(C,10),coloryellow;AA20:=MA(c,20);BB10:=atan((aa10/ref(aa10,1)-1)*100)*180/3.1416;{STICKLINE(BB05<0 andAA05<ref(AA05,1),AA05,REF(AA05,1),3,1),colorcyan;}AA30:MA(C,30),colorwhite;三拾日乖离率:(c-AA30)/AA30*100,linethick0;Var1:=(AA20-AA30)>ref((AA20-AA30),1) and AA20>ref(aa20,1) and AA30>ref(AA30,1);Var2:=(AA30-AA20)<ref((AA30-AA20),1) and AA20<ref(aa20,1) and AA30<ref(AA30,1);BB30:=atan((aa30/ref(aa30,1)-1)*100)*180/3.1416;{STICKLINE(BB30>15 andAA30>ref(AA30,1),AA30,REF(AA30,1),8,1),colorff00ff;}强势狙击:=filter(BB30>30 and BB10>45 and cross(BB05,60),10);加仓:=filter(count(cross(BB05,30),5)>=1 and AA05>ref(aa05,1) and 三拾日乖离率>ref(三拾日乖离率,1) and AA10>ref(AA10,1)and 加速度5>ref(加速度5,1) and 速度5>ref(速度5,1),10) ;清仓:=filter(count(cross(30,BB05),5)>=1 and (c>AA30 or O>AA30) and AA05<ref(aa05,1) and 三拾日乖离率<ref(三拾日乖离率,1) andAA10<ref(AA10,1),10);drawtext(加仓,low*0.98,'←加仓'),colorred;JC:=cross(0,五日乖离率) and 三拾日乖离率<ref(三拾日乖离率,1) and AA10>ref(AA10,1) ;减仓:=filter(JC,10);MR:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and AA05>ref(AA05,1) and (c/ref(c,1)-1)*100>5 andref(c,1)<AA30;买入:=filter(MR,10);drawtext(减仓,high*1.02,'←减仓'),colorcyan;drawtext(买入,low*0.98,'←买入'),coloryellow;drawtext(强势狙击,LOW*0.98,'←强势狙击'),coloryellow;Var21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));Var3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(Var21+Var3)/AMOUNT*VOL*100*50;DRAWTEXT(MV>6 and l<=llv(l,10),l*0.96,'←异动'),colorcyan;aa:=if(c>=ref(c,3),1,0);bb:=if(c>=ref(c,5),1,0);cc:=if(c>=ref(c,7),1,0);dd:=if(c>=ref(c,8),1,0);ee:=if(c>=ref(c,13),1,0);ff:=if(c>=ref(c,21),1,0);gz2:=aa+bb+cc+dd+ee+ff;Var11:=EMA(CLOSE,3)-EMA(CLOSE,6)-(EMA(CLOSE,6)-EMA(CLOSE,12))*( -100);Var12:=EMA(Var11,3);Var5:=CROSS(Var11,Var12);Var6:=CROSS(Var12,Var11);STICKLINE(C>=O,l,H,0,0),COLOR0000FF,LAYER2;STICKLINE(C<O,l,H,0,0),COLORFFFF00,LAYER2;STICKLINE(C>=O,O,C,10,1),COLOR0000FF,LAYER2;STICKLINE(C<O,O,C,8,0),COLORFFFF00,LAYER2;STICKLINE(Var6,OPEN,CLOSE,8,0),COLORBLUE,LAYER0;{兰色熊K} STICKLINE(Var5,OPEN,CLOSE,5,0),COLORYELLOW,LAYER0;{彩色牛K} STICKLINE(Var5,OPEN,CLOSE-(CLOSE-OPEN)*0.33,5,0),COLORaaccdd,LA YER0;{彩色牛K}STICKLINE(Var5,OPEN,CLOSE-(CLOSE-OPEN)*0.66,5,0),COLORRED,LAYER 0;{彩色牛K}DRAWTEXT(c>0,(O+C)/2,NUMTOSTRN(gz2,0 )),coloryellow,LAYER0,ALIG N1,VALIGN0,LINETHICK1;{彩色牛K};【大智慧】数字主图(预测、明日支撑、撑压位)-指标公式效果图(文档来源:若水财经社区)希望以上资料对你有所帮助,附励志名言3条:1、理想的路总是为有信心的人预备着。
大智慧缺口画线主图指标公式
大智慧缺口画线主图指标公式大智慧缺口画线主图指标公式2011-01-14 股旁网分类:大智慧公式标签: 主图画线缺口n:=5;{缺口}LL:=REF(L,1);HH:=REF(H,1);SQK:=L>HH;XQK:=H<LL;DRAWTEXT(SQK,L*0.92,' 向上跳空'),COLORRED; DRAWTEXT(XQK,H*1.08,' 逃命跳空'),COLORYELLOW; STICKLINE(SQK,L,HH,4*N,1),COLORRED;STICKLINE(XQK,H,LL,4*N,2),COLORYELLOW;MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA60:MA(CLOSE,60);BB:=REF(INDEXC,1)<REF(INDEXC,2) ANDREF(C,2)*0.95>=REF(C,1) ANDREF(O,1)/REF(C,1)>=1.05AND REF(C,1)<REF(O,1) AND C>O ANDC/O>=1.05 AND C>REF(O,1)AND REF(VOL,1)<REF(VOL,2);STICKLINE(BB,O,C,4,0),COLORRED;STICKLINE(BB,O,H,0,0),COLORRED;STICKLINE(BB,L,C,0,0),COLORRED;DRAWTEXT(BB,L*0.98,'○追'),COLORYELLOW;V AR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV( LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);V AR2:=8;CC:=CROSS(V AR1,V AR2);DRAWTEXT(CC,L*0.98,'◎买'),COLOR0099FF;TYP:=(H+L+C)/3;TYP1:=(TYP-MA(TYP,14))/(0.015*A VEDEV(TYP,14))<=2 0 ANDREF(MA(C,21),1)<MA(C,21);TJ1:=O<MAX(REF(C,1),REF(O,1));TJ2:=REF(C,1)>=MA(C,21) AND L/MA(C,21)>=1.015 ANDMA(C,144)>MA(C,250) AND V<MA(V,10) ANDTJ3:=REF(MA(C,250),90)<REF(MA(C,144),90) ANDMA(C,144)>MA(C,250) AND O>MA(C,250);TJ4:=MAX(REF(H,10)AND REF(H,9)AND REF(H,8)AND REF(H,7), REF(H,6));TOUJI:=TYP1 AND TJ1 AND TJ2 ANDREF(C,2)/REF(O,2)<1.06 AND C/O<=1.05 ANDHHV(H,5)/LLV(L,30)>=1.65 ANDREF(H,5)/REF(L,1)>=1.15 ANDREF(C,1)/REF(O,1)<=0.995 AND (L<REF(L,2) OR (REF(H,2)-REF(L,2))/(H-L)>=2) ANDO/REF(L,1)<=1.04OR TYP1 AND TJ1 AND O/REF(L,1)<1.05 ANDREF(L,1)/REF(O,4)<=0.85 ANDREF(C,1)/REF(O,1)<=1.03 AND O<REF(C,1) AND HHV(H,5)/LLV(L,35)>1.35 AND V<MA(V,10);TOUJI2:=TYP1 AND TJ1 AND TJ2 AND O/REF(L,1)<1.05 AND O/LLV(L,3)<1.1 AND REF(C,1)/REF(0,1)<=1.05 AND HHV(H,4)/LLV(L,16)>=1.35 ANDREF(O,4)/REF(C,2)>=1.08 ANDREF(C,2)/REF(O,2)<=0.995 AND (REF(L,2)<REF(L,3) OR (REF(H,3)-REF(L,3))/(REF(H,1)-REF(L,1))>=2) ANDOR TYP1 AND TJ1 AND HHV(H,10)/LLV(L,25)>=1.3 AND REF(C,5)<REF(H,5) AND REF(C,4)<REF(C,5) AND REF(C,3)<REF(C,4) AND REF(C,2)<REF(C,3) AND REF(C,1)<REF(C,2) AND L<REF(L,1) ANDMA5/O<1.1;DATOUJI:=TYP1 AND TJ3 AND O<REF(C,5) ANDO<=REF(C,1) AND REF(H,10)/O>=1.17 ANDHHV(H,10)/LLV(L,30)>1.4 AND(MA(V,10)/HHV(V,10)>0.5 AND V/HHV(V,10)>0.2 AND V/HHV(V,10)<0.4 OR REF(V,3)>REF(V,2) AND REF(V,2)>REF(V,1)) AND REF(C,1)/REF(C,2)<=1.02; DATOUJI1:=TYP1 AND TJ3 AND O<REF(L,6) ANDO<MIN(REF(C,5)AND REF(O,5),5) ;DRAWTEXT(TOUJI OR TOUJI2 OR DATOUJI ORDATOUJI1,L*0.98,'△'),COLORYELLOW;DRAWTEXT(CROSS(MA(VOL,10),MA(VOL,20)) AND MA(VOL,5)>MA(VOL,10) AND L<MA(C,20) ANDC>=MA(C,20),L*0.98,'量托'),COLORWHITE;卖出:=CROSS(90,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/S MA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100);DRAWTEXT(卖出,H*1.05,'◎短卖'),COLORGREEN; C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN; W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));突破盘整:=W4 AND COUNT(W4,5)=1; DRAWICON(突破盘整,L-0.10,1);{画线高低}A1:=ref(h,N)=hhv(h,2*N+1);B1:=filter(A1,N);C1:=backset(B1,N+1);D1:=filter(C1,n);{高点}A2:=ref(l,N)=llv(l,2*N+1);B2:=filter(A2,N);C2:=backset(B2,N+1);D2:=filter(C2,N);{低点} DRAWTEXTABS(5,5,'股旁网。
【股票指标公式下载】-【大智慧】BSMA主图(均线、支撑压力线、K线)
【大智慧】BSMA主图(均线、支撑压力线、K线)-指标公式源码a:="[email=LTFunc6@FORLT2]LTFunc6@FORLT2[/email]";s1:="[email=LTFunc6@LT_S1]LTFunc6@LT_S1[/email]";hs:="[email=LTFunc6@LT_HS]LTFunc6@LT_HS[/email]";ls:="[email=LTFunc6@LT_LS]LTFunc6@LT_LS[/email]";p1:="[email=LTFunc6@LT_P1]LTFunc6@LT_P1[/email]";upp:="[email=LTFunc6@LT_UPP]LTFunc6@LT_UPP[/email]";udd:="[email=LTFunc6@LT_UDD]LTFunc6@LT_UDD[/email]";{hs;ls;hhs;lls;us;ds;s1;p1;p0;upp;udd};d1:=ema(abs("ddx.ddx"),60);d2:=max("ddx.ddx"/d1+7.5,7.5);d3:=min("ddx.ddx"/d1,10);fb:=if(s1=0,hs,ls);tr0:=ifs(p1=1,'明日收盘价<'+numtostrn(udd,2)+',出现S点\n','若明日收盘价>'+numtostrn(upp,2)+',出现B点\n');tr1:=ifs(s1=1,'明日收盘价<'+numtostrn(ls,2)+',短线卖出机会','若明日收盘价>'+numtostrn(hs,2)+'短线买入机会');tr2:=ifs(p1=1,ifs(cross(p1,0),'B点','持股'),ifs(cross(1,p1),'S点','持币'));tr3:=ifs(s1=0,'向下,','向上,');tr4:='3.能量级别:'+numtostrn(d3,1)+'级';bs:=''+datestr(date)+'买卖点决策系统提示\n'+'1.BS点:'+tr2+','+tr0+'2.短线:'+tr3+tr1+'\n'+tr4;drawflagtext(1,fb,bs);STICKLINE(p1=1 and c>=o and o<>0,c,o,d2,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,c,o,7.5,0),colorblack;STICKLINE(p1=1 and c>=o and o<>0,c,c,7.5,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,o,o,7.5,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,o,c,7.5,1),color5454ff;STICKLINE(p1=1 and c<=o,o,c,7.5,1),color5454ff;STICKLINE(p1=1 and c<=o,l,c,0.5,1),color5454ff;STICKLINE(p1=1 and c<=o,h,o,0.5,1),color5454ff;STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,o,7.5,1),colorffff54;STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,h,0.5,1),colorffff54; STICKLINE((p1<>1 or barscount(c)<3) and c>=o,l,o,0.5,1),colorffff54; drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;drawbmp(s1=1 and ref(s1,1)=0 and(p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;drawbmp(s1=0 and ref(s1,1)=1 and(p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;{均线}MA5:MA(CLOSE,5);MA13:MA(CLOSE,13);MA21:MA(CLOSE,21);MA34:MA(CLOSE,34);MA62:MA(CLOSE,62);MA120:MA(CLOSE,120);{支撑压力线}TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);压力线:REF(C,BARSLAST(HD)),COLORRED{红色},POINTDOT;支撑线:REF(C,BARSLAST(LD)),COLORYELLOW{黄},POINTDOT;STICKLINE(C,压力线,压力线,8,0),COLORRED{红色};STICKLINE(C,支撑线,支撑线,8,0),COLORYELLOW{黄};{短期压力支撑}X1:=REF(TY,5)=HHV(TY,2*5+1); Y1:=FILTER(X1,5); Z1:=BACKSET(Y1,5+1); HA:=FILTER(Z1,5);X2:=REF(TY,5)=LLV(TY,2*5+1); Y2:=FILTER(X2,5); Z2:=BACKSET(Y2,5+1); LA:=FILTER(Z2,5);短压力:REF(C,BARSLAST(HA)),colormagenta{品红},POINTDOT;短支撑:REF(C,BARSLAST(LA)),colorgreen{绿},POINTDOT;STICKLINE(C,短压力,短压力,8,0),colormagenta{品红};STICKLINE(C,短支撑,短支撑,8,0),colorgreen{绿};{K线图左上方显示股票信息文字}DRAWTEXTREL(1,10,'■所属板块:'+BKNAME),COLORRED{红色}; DRAWTEXTREL(1,60,'■流通盘:'+CAPITAL/100+'万股'),COLORYELLOW; DRAWTEXTREL(1,110,'■流通市值:'+DYNAINFO(57)/100000000+'亿'),COLORYELLOW;DRAWTEXTREL(1,160,'■每股收益:'+FINANCE2(3)),COLORYELLOW; DRAWTEXTREL(1,210,'■每股净资:'+FINANCE2(4)),COLORYELLOW; DRAWTEXTREL(1,260,'■主营收入:'+FINANCE2(27)),COLORYELLOW; DRAWTEXTREL(1,310,'■净利润:'+FINANCE2(33)),COLORYELLOW; DRAWTEXTREL(1,360,'■利润增长:'+FINANCE2(10)+'%'),COLORYELLOW; DRAWTEXTREL(1,410,'■市盈率:'+DYNAINFO(39)),COLORYELLOW;【大智慧】BSMA主图(均线、支撑压力线、K线)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】一张主图(波段线、趋势线、天线、地线)
【大智慧】一张主图(波段线、趋势线、天线、地线)-指标公式源码VA1:=IF((CLOSE < 800),((AMOUNT / VOL) / 100),((((CLOSE * 2) + HIGH) + LOW) / 4));VA2:=((HHV(HIGH,15)) + (LLV(LOW,30))) / 2;VA3:=EMA((MA(VA1,5)),10);VA4:=EMA((MA(VA1,15)),10);VA5:=EMA((MA(VA1,13)),21);VA6:=((VA3 + VA4) + VA5) / 3;波段线:EMA((MA(CLOSE,5)),5),colorFB333F,linethick2;PARTLINE(波段线,波段线 > (REF(波段线,3)),RGB(255,255,0)),linethick2; 趋势线:((((REF(VA6,1)) + VA6) + (REF(VA6,2))) / 3);PARTLINE(趋势线,CLOSE > VA2,RGB(225,0,0),CLOSE <=VA2,RGB(66,188,255)),colorffff00,linethick3;天线:MA(REF(HHV(CLOSE,30),1),2),LINETHICK2,Color80e9ff;地线:MA(REF(LLV(CLOSE,30),1),2),LINETHICK2,Color669900;SD:=HHV(HIGH,13)=HIGH AND HIGH>REF(HIGH,1);SD1:=FILTER(SD,12);SF:=LLV(LOW,13)=LOW AND LOW<REF(LOW,1);SF1:=FILTER(SF,12);TSS1:=BARSLAST(SD1);箱顶:REF(HIGH,TSS1),LINETHICK0,COLORRED;TSS2:=BARSLAST(SF1);箱底:REF(LOW,TSS2),LINETHICK0,COLORGREEN;STICKLINE(OPEN>=CLOSE,HIGH,LOW,0.5 ,0 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR005500;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR006600;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR007700;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR009900;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00BB00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00DD00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;STICKLINE(CLOSE>OPEN,HIGH,LOW,0.5,0 ),COLOR0000FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000055;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000bb;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000dd;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff;AA1:=MA(CLOSE,20);AA2:=(CLOSE > MA(CLOSE,5));AA3:=(MA(CLOSE,5) > MA(CLOSE,10));AA4:=(CLOSE > MA(CLOSE,10));AA5:=(MA(CLOSE,5) > MA(CLOSE,20));AA6:=(CLOSE > MA(CLOSE,20));AA7:=REF(AA1,1);AA8:=(AA1 > AA7);AAX:=(((((IF(AA2,10,(0 - 10)) + IF(AA3,10,(0 - 10))) + IF(AA4,10,(0 - 10))) + IF(AA5,10,(0 - 10))) + IF(AA6,10,(0 - 10))) + IF(AA8,10,(0 - 10))); DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T := BARSLAST(DISPSTATUS=1)+1;IF BARSTATUS=2 and c<200 and ((CROSS(AAX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THENDRAWTEXTREL(500,20,'的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。
【股票指标公式下载】-【大智慧】全屏看盘(涨跌、行情、涨幅、量比)
【大智慧】全屏看盘(涨跌、行情、涨幅、量比)-指标公式源码{画矩形}DRAWRECTABS(0,420,415,0,1),COLOR00FF00,layer1;{大智慧L2排序}DRAWTEXTABS(15,5,'<<行情>>'),ColorFFff00;昨收:=DYNAINFO(3);今开:=DYNAINFO(4);最低:=DYNAINFO(6);最高:=DYNAINFO(5);最新:=DYNAINFO(7);总手:=DYNAINFO(8);现手:=DYNAINFO(9);总额:=DYNAINFO(10);均价:=DYNAINFO(11);涨跌:=DYNAINFO(12);振幅:=DYNAINFO(13);涨幅:=DYNAINFO(14)*100;委比:=DYNAINFO(15);委差:=DYNAINFO(16);量比:=DYNAINFO(17);内盘:=DYNAINFO(22);外盘:=DYNAINFO(23);涨速:=DYNAINFO(24);买一:=DYNAINFO(28);卖一:=DYNAINFO(34);委买量:=DYNAINFO(89);委卖量:=DYNAINFO(90);外内比:=DYNAINFO(23)/DYNAINFO(22)*100;盘差:=(外盘-内盘);换手率:=(100*v/capital);DRAWTEXTABS(0,20,'■昨收:'+str(昨收)+''),Color00FF00; DRAWTEXTABS(0,40,'■今开:'+str(今开)+''),ColorffFF00; DRAWTEXTABS(0,60,'■最低:'+str(最低)+''),Color00FF00;DRAWTEXTABS(0,80,'■最高:'+str(最高)+''),ColorFFff00; DRAWTEXTABS(0,100,'■最新:'+str(最新)+''),Color0000FF; DRAWTEXTABS(0,120,'■涨跌:'+str(涨跌)+''),Color00FF00; DRAWTEXTABS(0,140,'■涨幅:'+str(涨幅)+''),Color0000FF; DRAWTEXTABS(0,160,'■现手:'+str(现手)+''),Color00ffFF; DRAWTEXTABS(0,180,'■量比:'+(量比)+''),ColorFFFF00; DRAWTEXTABS(0,200,'■换手率:'+(换手率)+''),Color000FFF; DRAWTEXTABS(0,220,'■外盘:'+str(外盘)+''),Colorffff00; DRAWTEXTABS(0,240,'■内盘:'+str(内盘)+''),Color0000ff; DRAWTEXTABS(0,260,'■盘差:'+str(盘差)+''),ColorFFFF00; DRAWTEXTABS(0,280,'■外内比:'+str(外内比)+''),Color00FFFF; DRAWTEXTABS(0,300,'■委比:'+(委比)+''),Colorff0000; DRAWTEXTABS(0,320,'■买一:'+(买一)+''),Color00ffFF; DRAWTEXTABS(0,340,'■卖一:'+(卖一)+''),Colorff0000; DRAWTEXTABS(0,360,'■委卖量:'+str(委卖量)+''),Color00FF00; DRAWTEXTABS(0,380,'■委买量:'+str(委买量)+''),Color0000FF; DRAWTEXTABS(0,400,'■买卖差:'+str(委卖量-委买量)+''),ColorFFff00; DRAWTEXTABS(130,5,'<<精灵>>'),ColorFFff00;买入单数:=DYNAINFO(91);卖出单数:=DYNAINFO(92);买卖单数差:=(买入单数-卖出单数);大笔买入:=DYNAINFO(94);大笔卖出:=DYNAINFO(97);大笔差:=(大笔买入-大笔卖出);特大买入:=DYNAINFO(95);特大卖出:=DYNAINFO(98);特大差:=(特大买入-特大卖出);机构买单吃货数:=DYNAINFO(99);机构卖单吐货数:=DYNAINFO(100);机构吃吐货数差:=(机构买单吃货数-机构卖单吐货数);机构单数差:=DYNAINFO(101);机构吃货数:=DYNAINFO(102);机构吐货数:=DYNAINFO(103);机构货数差:=(机构吃货数-机构吐货数);机构吃货量:=DYNAINFO(104);机构吐货量:=DYNAINFO(105);机构货量差:=(机构吃货量-机构吐货量);机构吃货均额:=DYNAINFO(106);机构吐货均额:=DYNAINFO(107);机构均额差:=(机构吃货均额-机构吐货均额);DRAWTEXTABS(100,20,'■买入单数:'+str(买入单数)+'' ),Color0000FF; DRAWTEXTABS(100,40,'■卖出单数:'+str(卖出单数)+'' ),Color00FF00; DRAWTEXTABS(100,60,'■大笔买入:'+str(大笔买入)+'' ),ColorffFF00; DRAWTEXTABS(100,80,'■大笔卖出:'+str(大笔卖出)+'' ),Color00FF00; DRAWTEXTABS(100,100,'■特大买入:'+str(特大买入)+'' ),ColorffFF00; DRAWTEXTABS(100,120,'■特大卖出:'+str(特大卖出)+'' ),Color00FF00; DRAWTEXTABS(100,140,'■机构买单吃货数:'+str(机构买单吃货数)+'' ),ColorffFF00;DRAWTEXTABS(100,160,'■机构卖单吐货数:'+str(机构卖单吐货数)+'' ),Color00FF00;DRAWTEXTABS(100,180,'■机构单数差:'+str(机构单数差)+'' ),ColorFFff00; DRAWTEXTABS(100,200,'■机构吃货数:'+str(机构吃货数)+'' ),ColorffFF00; DRAWTEXTABS(100,220,'■机构吐货数:'+str(机构吐货数)+'' ),Colorff0000; DRAWTEXTABS(100,260,'■机构吃货量:'+str(机构吃货量)+'' ),Color00ffFF; DRAWTEXTABS(100,280,'■机构吐货量:'+str(机构吐货量)+'' ),Colorff0000; DRAWTEXTABS(100,320,'■机构吃货均额:'+str(机构吃货均额)+'' ),Color00FFff;DRAWTEXTABS(100,340,'■机构吐货均额:'+str(机构吐货均额)+'' ),Colorff0000;DRAWTEXTABS(100,240,'■机构货数差:'+str(机构货数差)+'' ),Color00ffFF; DRAWTEXTABS(100,300,'■机构货量差:'+str(机构货量差)+'' ),Color00ffFF; DRAWTEXTABS(100,360,'■机构均额差:'+str(机构均额差)+'' ),ColorffFF00; DRAWTEXTABS(100,390,STKLABEL+' '+STKNAME+' '),ColorFF00ff,LINETHICK3; DRAWTEXTREL(300,5,'<<资金>>'),COLORffff00;zlV:=(BIGORDER(1,2)-BIGORDER(2,2))*vol;jgV:=(BIGORDER(1,3)-BIGORDER(2,3))*vol;dhV:=(BIGORDER(1,2)-BIGORDER(2,2)-BIGORDER(1,3)+BIGORDER(2,3))*vol; zhV:=(BIGORDER(1,1)-BIGORDER(2,1)-BIGORDER(1,2)+BIGORDER(2,2))*vol; shV:=(BIGORDER(2,1)-BIGORDER(1,1))*vol;tD:=COUNT(BIGORDER(1,0),0);myD:=min(tD,30);主力资金:=ema(zlV,myD)*myD/capital;超级资金:=ema(jgV,myD)*myD/capital;大户资金:=ema(dhV,myD)*myD/capital;中户资金:=ema(zhV,myD)*myD/capital;散户资金:=ema(shV,myD)*myD/capital;大单买:=BIGORDER(1,2)*V/CAPITAL;大单卖:=BIGORDER(2,2)*V/CAPITAL;大单动向:=(大单买-大单卖)*100;涨跌动因:=(ORDER(2)-ORDER(1))/CAPITAL*1000;大单分差:=(ORDER(2)-ORDER(1))/(ORDER(2)+ORDER(1))*200; DRAWTEXTREL(250,40,' ■主力资金:'+主力资金),COLOR00FFff; DRAWTEXTREL(250,80,' ■超级资金:'+超级资金),COLORffFF00; DRAWTEXTREL(250,120,' ■大户资金:'+大户资金),COLOR0000FF; DRAWTEXTREL(250,160,' ■中户资金:'+中户资金),COLORFFff00; DRAWTEXTREL(250,200,' ■散户资金:'+散户资金),COLOR00FF00; DRAWTEXTREL(250,240,' ■大单动向:'+大单动向),COLOR00FFff; DRAWTEXTREL(250,280,' ■涨跌动因:'+涨跌动因),COLORFFff00; DRAWTEXTREL(250,320,' ■大单分差:'+大单分差),COLORFFff00;DRAWTEXTABS(280,205 ,'<<财务>>'),colorFFFF00;DRAWTEXTABS(100,390,STKLABEL+' '+STKNAME+' '),ColorFF00ff,LINETHICK3; BEGIN DRAWTEXTREL(0,800,'■所属板块:'+BKNAME),LINETHICK1,COLORFF00Ff;end;总股本:=FINANCE2(35)/10000;DRAWTEXTABS(250,220,'■总股本:'+总股本+'亿 '),LINETHICK2,Color0080FF; DRAWTEXTABS(250,240,'■流通盘:'+capital/1000000+'亿'),Color0080FF,LINETHICK2;每股收益:=FINANCE2(3);每股市盈率:=DYNAINFO(39);每股净资产:=FINANCE2(4);销售毛利率:=FINANCE2(12);主营收入同比:=FINANCE2(11);净利润同比增长:=FINANCE2(10);每股公积金:=FINANCE2(7);每股未分配:=FINANCE2(8);DRAWTEXTABS(250 ,260,'■每股收益:'+NUMTOSTRN(每股收益,2)+'元'),COLORYELLOW;DRAWTEXTABS(250 ,280,'■每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),Color62FFFF;DRAWTEXTABS(250 ,300,'■每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),COLORYELLOW;DRAWTEXTABS(250 ,320,'■销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),Color62FFFF;DRAWTEXTABS(250 ,340,'■主营收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),ColorACFFFF;DRAWTEXTABS(250 ,360,'■净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),ColorACFFFF;DRAWTEXTABS(250 ,380,'■每股公积金:'+NUMTOSTRN(每股公积金,2)+'元'),ColorFFFFFF;DRAWTEXTABS(250 ,400,'■每股未分配:'+NUMTOSTRN(每股未分配,2)+'元'),ColorFFFFFF;{}A3:MA(AMOUNT/(100*VOL),3);A5:MA(AMOUNT/(100*VOL),5);A10:MA(AMOUNT/(100*VOL),10);A20:MA(AMOUNT/(100*VOL),20);A30:MA(AMOUNT/(100*VOL),30);A60:MA(AMOUNT/(100*VOL),60);DRAWTEXT(CROSS(A3,A10),L-0.01,'?'),COLORYELLOW,LINETHICK4; DRAWTEXT(CROSS(A5,A3),h+0.05,'?'),COLORffffff,LINETHICK4;【大智慧】全屏看盘(涨跌、行情、涨幅、量比)-指标公式效果图(文档来源:若水财经社区)。
【指标公式源码下载】大智慧分时超赢指标分时图用(叠加大盘线、均线、超净、外盘、内盘、主增、主动率)
大智慧分时超赢指标分时图用(叠加大盘线、均线、超净、外盘、内盘、主增、主动率){分时超赢A-(分时主图.叠加超赢)}DRAWTEXTABS(0,5,'《夏卫东-自编》'),COLOR0000FF;{叠加大盘线}TC:=STRCMP(STRLEFT(MARKETLABEL,2),'SZ');DPSH:="SH000001$CLOSE"/HHV(STKINDI('SH000001','分超引用.昨收#DAY'),0); DPSZ:="399001$CLOSE"/HHV(STKINDI('399001','分超引用.昨收#DAY'),0);DPC:=IF(INBLOCK('A股板块'),DYNAINFO(3)*IF(TC=0,DPSZ,DPSH),C);POLYLINE(C>0,DPC),COLORFF00FF,LINETHICK2,LAYER0;{分时线}最新:C,COLORWHITE,LINETHICK2,PRECIS2,LAYER0;AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));BB:=BETWEEN(C/AA,C+H,C-H);均线:IF(BB=0,MA(C,BARSCOUNT(C)),AA),COLOR00FFFF,LINETHICK2,PRECIS2;{分时超赢}ZLLR:=SUM((AMOUNT*(DYNAINFO(95)+DYNAINFO(94))/10000),0);ZLLC:=SUM((AMOUNT*(DYNAINFO(98)+DYNAINFO(97))/10000),0);主净:ZLLR-ZLLC,COLOR00FFFF,LINETHICK0,PRECIS2;TDLR:=SUM((AMOUNT*DYNAINFO(95)/10000),0);TDLC:=SUM((AMOUNT*DYNAINFO(98)/10000),0);超净:TDLR-TDLC,COLORFF00FF,LINETHICK0,PRECIS2;DDLR:=SUM((AMOUNT*DYNAINFO(94)/10000),0);DDLC:=SUM((AMOUNT*DYNAINFO(97)/10000),0);大净:DDLR-DDLC,COLOR00FF00,LINETHICK0,PRECIS2;ZDLR:=SUM((AMOUNT*DYNAINFO(93)/10000),0);ZDLC:=SUM((AMOUNT*DYNAINFO(96)/10000),0);中净:ZDLR-ZDLC,COLORB5B5B5,LINETHICK0,PRECIS2;XDLR:=IF(AMOUNT*(DYNAINFO(95)+DYNAINFO(94)+DYNAINFO(93))>0,SUM(((AMO UNT-AMOUNT*(DYNAINFO(95)+DYNAINFO(94)+DYNAINFO(93)))/10000),0),0); XDLC:=IF(AMOUNT*(DYNAINFO(98)+DYNAINFO(97)+DYNAINFO(96))>0,SUM(((AMO UNT-AMOUNT*(DYNAINFO(98)+DYNAINFO(97)+DYNAINFO(96)))/10000),0),0);散净:XDLR-XDLC,COLORFF9911,LINETHICK0;外盘:=sum(if(DYNAINFO(23)*close,DYNAINFO(23),0),0)*0.003906;内盘:=sum(if(DYNAINFO(22)*close,DYNAINFO(22),0),0)*0.003906;主动率:=(外盘-内盘)/(内盘+外盘)*100;单数比:=DYNAINFO(92)/DYNAINFO(91);通吃率:= ((DYNAINFO(95)+DYNAINFO(94))-(DYNAINFO(98)+DYNAINFO(97)))*VOL/VOL*100; DRAWTEXTABS(440,5,'主动率:'+ NUMTOSTRN(主动率,2)+' 单数比:'+ NUMTOSTRN(单数比,2)+' 通吃率:'+ NUMTOSTRN(通吃率,2)),COLOR00FFFF;DRAWTEXTABS(110,5,'上涨家数:'+NUMTOSTRN(DYNAINFO(69),0)+' 家'),COLOR0000FF;DRAWTEXTABS(210,5,'下跌家数:'+NUMTOSTRN(DYNAINFO(70),0)+' 家'),COLOR00FF00;DRAWTEXTABS(310,5,'平盘家数:'+NUMTOSTRN(DYNAINFO(71),0)+' 家'),COLORFFFFFF;{五分钟资金趋势}主5:=主净-REF(主净,5);超5:=超净-REF(超净,5);大5:=大净-REF(大净,5);中5:=中净-REF(中净,5);散5:=散净-REF(散净,5);DRAWTEXTABS(110,20,'五分钟各单净买(万):'),COLORFFFF00;DRAWTEXTABS(230,20,'主力:'+ NUMTOSTRN(主5,2)),COLOR00FFFF; DRAWTEXTABS(320,20,'超大:'+ NUMTOSTRN(超5,2)),COLORFF00FF; DRAWTEXTABS(410,20,'大户:'+ NUMTOSTRN(大5,2)),COLOR00FF00; DRAWTEXTABS(500,20,'中户:'+ NUMTOSTRN(中5,2)),COLORB5B5B5; DRAWTEXTABS(590,20,'散户:'+ NUMTOSTRN(散5,2)),COLORFF9911;{画柱图};最大值:=400/(MAX(ZLLR,ZLLC,TDLR,TDLC,DDLR,DDLC,ZDLR,ZDLC,XDLR,XDLC,散净,中净,大净,超净,主净));主力买:=600-(ZLLR*最大值);主力卖:=600-(ZLLC*最大值);超大买:=600-(TDLR*最大值);超大卖:=600-(TDLC*最大值);大户买:=600-(DDLR*最大值);大户卖:=600-(DDLC*最大值);中户买:=600-(ZDLR*最大值);中户卖:=600-(ZDLC*最大值);散户买:=600-(XDLR*最大值);散户卖:=600-(XDLC*最大值);散户净买:=600-(ABS(散净)*最大值);中户净买:=600-(ABS(中净)*最大值);大户净买:=600-(ABS(大净)*最大值);超大净买:=600-(ABS(超净)*最大值);主力净买:=600-(ABS(主净)*最大值);{各单增减比例显示}ZLB:=SUM((ORDERVOL(1,2)/CAPITAL*100),0);ZLS:=SUM((ORDERVOL(2,2)/CAPITAL*100),0);主增:=ZLB-ZLS;TDB:=SUM((ORDERVOL(1,3)/CAPITAL*100),0);TDS:=SUM((ORDERVOL(2,3)/CAPITAL*100),0);超增:=TDB-TDS;DDB:=SUM(((ORDERVOL(1,2)/CAPITAL*100-ORDERVOL(1,3)/CAPITAL*100)),0); DDS:=SUM(((ORDERVOL(2,2)/CAPITAL*100-ORDERVOL(2,3)/CAPITAL*100)),0);大增:=DDB-DDS;ZDB:=SUM(((ORDERVOL(1,1)/CAPITAL*100-ORDERVOL(1,2)/CAPITAL*100)),0); ZDS:=SUM(((ORDERVOL(2,1)/CAPITAL*100-ORDERVOL(2,2)/CAPITAL*100)),0);中增:=ZDB-ZDS;XDB:=SUM(((VOL-ORDERVOL(1,1))/CAPITAL*100),0);XDS:=SUM(((VOL-ORDERVOL(2,1))/CAPITAL*100),0);散增:=XDB-XDS;DRAWRECTREL(330,主力买,350,610,RGB(200,0,0)),COLOR000000,LAYER5; DRAWRECTREL(350,主力卖,370,610,RGB(0,200,0)),COLOR000000,LAYER5; DRAWRECTREL(370,主力净买,390,610,(IF((主净>= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;DRAWRECTREL(445,超大买,465,610,RGB(200,0,0)),COLOR000000,LAYER5; DRAWRECTREL(465,超大卖,485,610,RGB(0,200,0)),COLOR000000,LAYER5; DRAWRECTREL(485,超大净买,505,610,(IF((超净>= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;DRAWRECTREL(560,大户买,580,610,RGB(200,0,0)),COLOR000000,LAYER5; DRAWRECTREL(580,大户卖,600,610,RGB(0,200,0)),COLOR000000,LAYER5; DRAWRECTREL(600,大户净买,620,610,(IF((大净>= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;DRAWRECTREL(675,中户买,695,610,RGB(200,0,0)),COLOR000000,LAYER5; DRAWRECTREL(695,中户卖,715,610,RGB(0,200,0)),COLOR000000,LAYER5; DRAWRECTREL(715,中户净买,735,610,(IF((中净>= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;DRAWRECTREL(790,散户买,810,610,RGB(200,0,0)),COLOR000000,LAYER5; DRAWRECTREL(810,散户卖,830,610,RGB(0,200,0)),COLOR000000,LAYER5;DRAWRECTREL(830,散户净买,850,610,(IF((散净>= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;DRAWRECTREL( 330,620,390,635,RGB(255,255,0));DRAWRECTREL( 445,620,505,635,RGB(255,0,255));DRAWRECTREL( 560,620,620,635,RGB(0,200,0));DRAWRECTREL( 675,620,735,635,RGB(200,200,200));DRAWRECTREL( 790,620,850,635,RGB(0,0,200));DRAWTEXTREL(310,530,'主'),ColorDDFFFF;DRAWTEXTREL(310,600,'力'),ColorDDFFFF;DRAWTEXTREL(425,530,'超'),ColorDDFFFF;DRAWTEXTREL(425,600,'大'),ColorDDFFFF;DRAWTEXTREL(540,530,'大'),ColorDDFFFF;DRAWTEXTREL(540,600,'户'),ColorDDFFFF;DRAWTEXTREL(655,530,'中'),ColorDDFFFF;DRAWTEXTREL(655,600,'户'),ColorDDFFFF;DRAWTEXTREL(770,530,'散'),ColorDDFFFF;DRAWTEXTREL(770,600,'户'),ColorDDFFFF;DRAWTEXTREL(290,660,'买入'),colorred;DRAWTEXTREL(290,720,'卖出'),Color00FF00;DRAWTEXTREL(290,780,'净买'),COLOR1199FF;DRAWTEXTREL(290,830,'增减'),COLORFFFF00;DRAWTEXTREL(330,660,NUMTOSTRN(ZLLR,2)),colorred;DRAWTEXTREL(330,720,NUMTOSTRN(ZLLC,2)),COLOR00FF00;DRAWTEXTREL(330,780,NUMTOSTRN(主净,2)),COLOR1199FF;DRAWTEXTREL(330,830,NUMTOSTRN(主增,2)+'%'),COLORFFFF00; DRAWTEXTREL(445,660,NUMTOSTRN(TDLR,2)),colorred;DRAWTEXTREL(445,720,NUMTOSTRN(TDLC,2)),COLOR00FF00;DRAWTEXTREL(445,780,NUMTOSTRN(超净,2)),COLOR1199FF;DRAWTEXTREL(445,830,NUMTOSTRN(超增,2)+'%'),COLORFFFF00; DRAWTEXTREL(560,660,NUMTOSTRN(DDLR,2)),colorred;DRAWTEXTREL(560,720,NUMTOSTRN(DDLC,2)),COLOR00FF00;DRAWTEXTREL(56 0,780,NUMTOSTRN(大净,2)),COLOR1199FF;DRAWTEXTREL(560,830,NUMTOSTRN(大增,2)+'%'),COLORFFFF00; DRAWTEXTREL(675,660,NUMTOSTRN(ZDLR,2)),colorred;DRAWTEXTREL(675,720,NUMTOSTRN(ZDLC,2)),COLOR00FF00;DRAWTEXTREL(675,780,NUMTOSTRN(中净,2)),COLOR1199FF;DRAWTEXTREL(675,830,NUMTOSTRN(中增,2)+'%'),COLORFFFF00; DRAWTEXTREL(790,660,NUMTOSTRN(XDLR,2)),colorred;DRAWTEXTREL(790,720,NUMTOSTRN(XDLC,2)),COLOR00FF00; DRAWTEXTREL(790,780,NUMTOSTRN(散净,2)),COLOR1199FF; DRAWTEXTREL(790,830,NUMTOSTRN(散增,2)+'%'),COLORFFFF00;。
大智慧分时抓涨停主图公式
大智慧分时抓涨停主图公式大智慧分时抓涨停主图指标公式BU:=BARSLAST(CLOSE=HHV(CLOSE,60)); SE:=BARSLAST(CLOSE=LLV(CLOSE,60)); KK1:=SE;KK2:=BU;LM1:=SE;LM2:=BU;OK:=KK1>KK2 AND LM1>LM2;OK1:=KK1>KK2 AND LM1<LM2; NOK:=KK2>KK1 AND LM2>LM1; NOK1:=KK2>KK1 AND LM2<LM1;DRAWICON(CROSS(KK1,KK2),OPEN*1,1);DRAWTEXT(CROSS(KK1,KK2),OPEN*0.985,'抓'),color3cb371;T:=barscount(c);均价:=DYNAINFO(11);总量:=SUM(VOL,T);总额:=SUM(AMOUNT,T);均价:=总额/(总量*100);次数:=COUNT(CLOSE>均价,T);占比:=次数/T*100;分时强势:DRAWICON(CROSS(CLOSE,均价) AND CLOSE>均价AND 占比>80 ANDT>5,CLOSE*0.99,7);DRAWTEXT(CROSS(CLOSE,均价) AND CLOSE>均价AND 占比>80 AND T>5,CLOSE*0.98,'涨价'),colorFFFF00;V AR1:=AMOUNT/VOL/100;V AR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;V AR3:=SUM(AMOUNT,5)/V AR1/100;V AR4:=SUM(AMOUNT,13)/V AR1/100;V AR5:=SUM(AMOUNT,34)/V AR1/100;CYC5:=DMA(V AR2,VOL/V AR3);CYC13:=DMA(VAR2,VOL/V AR4);CYC34:=DMA(VAR2,VOL/V AR5);CYC∞:=DMA(VAR2,VOL/CAPITAL);一剑封喉:=CROSS(CLOSE,MA(CLOSE,13)) AND CROSS(CLOSE,MA(CLOSE,34)) ANDCROSS(CLOSE,MA(CLOSE,55));A1:=(CLOSE-LLV(LOW,22))/(HHV(HIGH,22)-LLV(LOW,22) )*100;A2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27) )*100;A:=3*SMA(A1,5,1)-2*SMA(SMA(A2,5,1),3,1);YNGS:=一剑封喉AND A<30;DRAWICON(一剑封喉AND A<30,LOW*0.985,10);DRAWTEXT(一剑封喉AND A<30,LOW*0.98,'停'),colorFF0000;{明关键价位}c1:=ref(c,1);c2:=hhv(c1,2);c3:=llv(c1,1);et:=hhv(c1,2);et1:=ref(et,1);xb:=llv(c1,1);xb1:=ref(xb,1);m:=BARSLAST(c<xb and c1>=xb1);m11:=ref(m,1);n9:=BARSLAST(c>et and c1<=et1);n1:=ref(n9,1);m21:=BARSLAST(m-n9>0 and m11<=n1)+1;n2:=BARSLAST(n9-m>0 and n1<=m11)+1;et2:=hhv(et,m21);xb2:=llv(xb,n2);a:=if(m-n9>0 and m11<=n1,1,if(n9-m>0 and n1<=m11,0,2));h1:=if(m-n9>0,c,et2);h2:=if(a=1,c,c2);h3:=if(m-n9<0,c,xb2);h4:=if(a=1,c,xb2);h5:=if(m-n9>0 or a=1,c,h3);明关键价位:ref(h5,1);MA1:=MA(CLOSE,2);Var1:=MA(C, 1);Var2:=MA(C, 5);Var3:=MA(C, 10);Var4:=MA(C, 20);Var5:=MA(C, 30);Var6:=(Var1+Var2+Var3+Var4+Var5)/5;Var7:=(Var6-REF(Var6, 15))/REF(Var6,15)*100; Var8:=(Var6-REF(Var6, 15))/REF(Var6, 15)*100; Var9:=EMA(Var7, 8);平均价:=(H+4*L+C+O)/7;均价差:= EMA(平均价,13) - EMA(平均价,34);移动均价:= EMA(均价差,5);差:=(均价差-移动均价)*5;A:=IF(差>=1000 ,1000 ,if(差<=平均价,平均价,差) );分水岭:=FORCAST(FORCAST(A,31),10);涨↑:if(A>分水岭,A,分水岭),LINETHICK1,colorred;跌↓:if(A<分水岭,A,分水岭),LINETHICK1,ColorGREEN; ma6:=MA(c,6);ma18:=MA(c,18);ma55:=MA(c,55);ma125:=MA(c,125);ma250:=MA(c,250);TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=filter(A1,10); C1:=ref(B1,10+1); HD:=filter(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=filter(A2,10); C2:=ref(B2,10+1); LD:=ref(C2,10);AA:=REF(c,barslast(HD)); B:=ref(c,barslast(LD));t11:=barslast(HD)<barslast(LD) AND not(HD) ;t21:=barslast(HD)>barslast(LD) AND not(LD);波峰:if(t11,AA,AA),ColorFF00FF,pointdot;stickline(t11,AA,AA,9,0),ColorFF00FF;波谷:if(t21,B,B),Color80FF00,pointdot;stickline(t21,B,B,9,0),Color80FF00;买进价:=((c-ref(ma6,1))/6+ma6)*1.004;买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);黄点状线:if(买进条件,h,l),COLORYELLOW,linethick1,pointdot;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,8);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);DRAWTEXT(IF(B1>0,1,0),L-0.1,'MACD底背'),COLORGREEN;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))* 100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);A2:=BARSLAST(REF(CROSS(K,D),1));B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);DRAWTEXT(IF(B2>0,1,0),L-0.25,'KDJ底背'),COLORYELLOW;LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC) ,6,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-L C),12,1)*100;A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 ANDCROSS(RSI1,RSI2);DRAWTEXT(IF(B3>0,1,0),L-0.4,'RSI底背'),COLORCYAN;C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);DRAWTEXT(IF(D1>0,1,0),H*1.01,'MACD顶背'),COLORWHITE;C2:=BARSLAST(REF(CROSS(D,K),1));D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K);DRAWTEXT(IF(D2>0,1,0),H+0.15,'KDJ顶背'),COLORWHITE;C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);DRAWTEXT(IF(D3>0,1,0),H+0.1,'RSI顶背'),COLORMAGENTA;ref(h,C1),colorB48246,pointdot;KK:=DATE<1341231;PK:=VOL*(OPEN+CLOSE+HIGH+LOW)/4;PK1:=IF(VOL>0,PK/VOL,(OPEN+CLOSE+HIGH+LOW)/ 4);C11:=PK1;A01:=(C11-LLV(C11,75))/(HHV(C11,75)-LLV(C11,75));A11:=SMA(A01,13,1);A21:=SMA(A11,13,1);A31:=3*A11-2*A21;A41:=2*A31-0.5;ZS:=DYNAINFO(3)*0.95;选1:=IF(KK,C11*(1-(A41-A21)/40),0);选2:=CROSS(C11,选1) AND CLOSE/REF(CLOSE,1)<1.03; 选3:IF(选2,ZS*1.03,ZS),colorGREEN;。
【股票指标公式下载】-【大智慧】趋势主图(持股、持币、卖线、买线、看色买卖)
【大智慧】趋势主图(持股、持币、卖线、买线、看色买卖)-指标公式源码DRAWGBKLAST(CLOSE>0, STRIP(RGB(0,40,0),RGB(0,40,0),0)); DRAWTEXTREL(10,0,'白紫色持股.'),LINETHICK3,ColorFF00FF; DRAWTEXTREL(10,50,'黑绿色持币.'),LINETHICK3,Color00FF00;卖线:EMA(((SLOPE(CLOSE,25) * 25) + CLOSE),75),LINETHICK2,coloryellow; 买线:EMA(CLOSE,7),LINETHICK1,colorFFFFFF;FILLRGN(买线,卖线,买线>=卖线,RGB(128,0,128));FILLRGN(卖线,买线,卖线>=买线,RGB(0,128,0));短线:EMA(CLOSE,1),LINETHICK2,COLOR004000;FILLRGN(买线,短线,买线>=短线,RGB(1,0,2)),COLOR004000;FILLRGN(短线,买线,短线>=买线,RGB(255,255,255));BDGD:=C=HHV(C,13);GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;高点:REF(C,GDSJ),ColorFFFFFF,POINTDOT,LINETHICK2;突破:CROSS(C,REF(高点,1)),COLOR00FFFF,POINTDOT,LINETHICK0;STICKLINE(GDSJ<=6,高点,高点,8,0),COLORFF00FF;BDDD:=C=LLV(C,13);DDSJ:=BARSLAST(FILTER(CROSS(0.8,BDDD),2))+1;低点:REF(C,DDSJ),Color00FFFF,POINTDOT,LINETHICK2;STICKLINE(DDSJ<=6,低点,低点,8,0),COLOR00FF00;aa:=(ref(close,1)+ref(close,2)+open)/3;{看色买卖}STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000FF;STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR0000FF;STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLOR00FF00;{立体柱子:淡蓝色}STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLORFF6600;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLORFF7700;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORFF9900;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORFFBB00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORFFCC00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFFDD00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFFEE00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFFF00;{立体柱子:红色}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLOR000033;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000BB;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000DD;VAR9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF (C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2) =HHV(C,4) ANDREF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3) =HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);红持:var9Q,color0000ff,LINETHICK0;{立体柱子:红色}STICKLINE(VAR9Q,C,(O+C)/2,8,0),COLOR000044;STICKLINE(VAR9Q,C,(O+C)/2,7,0),COLOR000055;STICKLINE(VAR9Q,C,(O+C)/2,6,0),COLOR000066;STICKLINE(VAR9Q,C,(O+C)/2,5,0),COLOR000077;STICKLINE(VAR9Q,C,(O+C)/2,4,0),COLOR000099;STICKLINE(VAR9Q,C,(O+C)/2,3,0),COLOR0000BB;STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR0000DD;STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000FF;VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);粉变:varaQ,colorff99ff,LINETHICK0;STICKLINE(VARAQ,C,(O+C)/2,8,0),COLORFF11FF;STICKLINE(VARAQ,C,(O+C)/2,7,0),COLORFF22FF;STICKLINE(VARAQ,C,(O+C)/2,6,0),COLORFF33FF;STICKLINE(VARAQ,C,(O+C)/2,5,0),COLORFF55FF;STICKLINE(VARAQ,C,(O+C)/2,4,0),COLORFF77FF;STICKLINE(VARAQ,C,(O+C)/2,3,0),COLORFF99FF;STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORFFBBFF;STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFFDDFF;VARBQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<>HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);银灰跌:varbQ,color888888,LINETHICK0;{立体柱子:银色}STICKLINE(VARBQ,C,(O+C)/2,8,0),COLOR333333;STICKLINE(VARBQ,C,(O+C)/2,7,0),COLOR444444;STICKLINE(VARBQ,C,(O+C)/2,6,0),COLOR555555;STICKLINE(VARBQ,C,(O+C)/2,5,0),COLOR777777;STICKLINE(VARBQ,C,(O+C)/2,4,0),COLOR999999;STICKLINE(VARBQ,C,(O+C)/2,3,0),COLORBBBBBB;STICKLINE(VARBQ,C,(O+C)/2,2,0),COLORDDDDDD;STICKLINE(VARBQ,C,(O+C)/2,1,0),COLORFFFFFF;VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);绿买:varcQ,color00ff00,LINETHICK0;STICKLINE(VARCQ,O,(O+C)/2,8,0),COLOR004400;STICKLINE(VARCQ,O,(O+C)/2,6,0),COLOR005500;STICKLINE(VARCQ,O,(O+C)/2,5,0),COLOR007700;STICKLINE(VARCQ,O,(O+C)/2,4,0),COLOR009900;STICKLINE(VARCQ,O,(O+C)/2,3,0),COLOR00BB00;STICKLINE(VARCQ,O,(O+C)/2,2,0),COLOR00DD00;STICKLINE(VARCQ,O,(O+C)/2,1,0),COLOR00FF00;VARDQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF (C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);蓝抛:vardQ,colorff9900,LINETHICK0;STICKLINE(VARDQ,O,(O+C)/2,8,0),COLORFF1100;STICKLINE(VARDQ,O,(O+C)/2,7,0),COLORFF2200;STICKLINE(VARDQ,O,(O+C)/2,6,0),COLORFF3300;STICKLINE(VARDQ,O,(O+C)/2,5,0),COLORFF5500;STICKLINE(VARDQ,O,(O+C)/2,4,0),COLORFF7700;STICKLINE(VARDQ,O,(O+C)/2,3,0),COLORFF9900;STICKLINE(VARDQ,O,(O+C)/2,2,0),COLORFFBB00;STICKLINE(VARDQ,O,(O+C)/2,1,0),COLORFFDD00;ZDF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;STICKLINE(ZDF>9.8,OPEN,CLOSE,8,0),color004444;STICKLINE(ZDF>9.8,OPEN,CLOSE,7,0),color005555;STICKLINE(ZDF>9.8,OPEN,CLOSE,6,0),color006666;STICKLINE(ZDF>9.8,OPEN,CLOSE,5,0),color007777;STICKLINE(ZDF>9.8,OPEN,CLOSE,4,0),color009999;STICKLINE(ZDF>9.8,OPEN,CLOSE,3,0),color00BBBB;STICKLINE(ZDF>9.8,OPEN,CLOSE,2,0),color00DDDD;STICKLINE(ZDF>9.8,OPEN,CLOSE,1,0),color00FFFF;【大智慧】趋势主图(持股、持币、卖线、买线、看色买卖)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】分时主图(所属板块、每股市盈率、每股收益、同比增长)
【大智慧】分时主图(所属板块、每股市盈率、每股收益、同比增长)-指标公式源码所属板块:=BKNAME;每股市盈率:=DYNAINFO(39);每股收益:=FINANCE2(3);流通盘大小:=FINANCE2(37)/1000000*100;同比增长:=FINANCE2(10);DRAWTEXTREL(0,765,'同比增长:'+NUMTOSTRN(同比增长,2)+'%'),LINETHICK1,ColorAFFF00;DRAWTEXTREL(0,695,'流通盘:'+NUMTOSTRN(流通盘大小,2)+'亿'),LINETHICK1,ColorAFFF00;DRAWTEXTREL(180,695,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),ColorAFFF00;DRAWTEXTREL(180,765,'每股市盈:'+NUMTOSTRN(每股市盈率,1)+'倍'),ColorAFFF00;DRAWTEXTREL(0,625,'所属板块:'+所属板块),COLORCYAN; DRAWTEXTREL(260,10,'上涨家数:'+NUMTOSTRN(DYNAINFO(69),0)+' 家'),COLOR0000FF;DRAWTEXTREL(530,10,'下跌家数:'+NUMTOSTRN(DYNAINFO(70),0)+' 家'),COLOR00FF00;DRAWTEXTREL(400,10,'平盘家数:'+NUMTOSTRN(DYNAINFO(71),0)+' 家'),COLORFFFFFF;MA5:="MAB.MA5#day";MA10:="MAB.MA10#day";MA24:="MAB.MA24#day";MA30:="MAB.MA30#day";MA60:="MAB.MA60#day";MA100:="MAB.MA100#day";MA200:="MAB.MA200#day";MA300:="MAB.MA300#day";MA400:="MAB.MA400#day";MA5P:=(MA5-DYNAINFO(3))/DYNAINFO(3)*100;MA10P:=(MA10-DYNAINFO(3))/DYNAINFO(3)*100;MA24P:=(MA24-DYNAINFO(3))/DYNAINFO(3)*100;MA30P:=(MA30-DYNAINFO(3))/DYNAINFO(3)*100;MA60P:=(MA60-DYNAINFO(3))/DYNAINFO(3)*100;MA100P:=(MA100-DYNAINFO(3))/DYNAINFO(3)*100;MA200P:=(MA200-DYNAINFO(3))/DYNAINFO(3)*100;MA300P:=(MA300-DYNAINFO(3))/DYNAINFO(3)*100;MA400P:=(MA400-DYNAINFO(3))/DYNAINFO(3)*100; DRAWTEXTREL( 0,10,' 5日线: '+NUMTOSTRN(MA5,2)+'元'+NUMTOSTRN(MA5P,1)+'%'),colorwhite;DRAWTEXTREL( 0,60 ,'10日线: '+NUMTOSTRN(MA10,2)+'元'+NUMTOSTRN(MA10P,1)+'%'),COLORCYAN;DRAWTEXTREL( 0,110 ,'24日线: '+NUMTOSTRN(MA24,2)+'元'+NUMTOSTRN(MA24P,1)+'%'),Color00FFFF;DRAWTEXTREL( 690,10 ,'昨高点: '+NUMTOSTRN(MA30,2)+'元'+NUMTOSTRN(MA30P,1)+'%'),COLORFF00FF;DRAWTEXTREL( 690,60 ,'昨低点: '+NUMTOSTRN(MA60,2)+'元'+NUMTOSTRN(MA60P,1)+'%'),ColorAFFF00;DRAWTEXTREL( 400,695 ,'生命线: '+NUMTOSTRN(MA400,2)+'元'+NUMTOSTRN(MA400P,1)+'%'),ColorAFFF00;DRAWTEXTREL( 400,765 ,'控盘成本: '+NUMTOSTRN(MA100,2)+'元'+NUMTOSTRN(MA100P,1)+'%'),ColorAFFF00;DRAWTEXTREL( 660,695 ,'低吸伏击: '+NUMTOSTRN(MA200,2)+'元'+NUMTOSTRN(MA200P,1)+'%'),ColorAFFF00;DRAWTEXTREL( 660,765 ,'走势铁底: '+NUMTOSTRN(MA300,2)+'元'+NUMTOSTRN(MA300P,1)+'%'),ColorAFFF00;VAR0:=VOL/CLOSE/2;VAR1:=SUM(IF(VAR0>100 AND CLOSE>REF(CLOSE,1),VAR0,0),0); VAR2:=SUM(IF(VAR0>100 AND CLOSE<REF(CLOSE,1),VAR0,0),0); VAR3:=SUM(IF(VAR0<100 AND CLOSE>REF(CLOSE,1),VAR0,0),0); VAR4:=SUM(IF(VAR0<100 AND CLOSE<REF(CLOSE,1),VAR0,0),0); VAR5:=VAR1+VAR2+VAR3+VAR4;VAR6:=IF(BARSTATUS=2,100*VAR1/VAR5,0);VAR7:=IF(BARSTATUS=2,100*VAR2/VAR5,0);VAR8:=IF(BARSTATUS=2,100*VAR3/VAR5,0);VAR9:=IF(BARSTATUS=2,100*VAR4/VAR5,0);DRAWTEXTREL(908,20,'大单买盘'),LINETHICK2,COLORFF55FF;DRAWTEXTREL(908,188,'大单卖盘'),LINETHICK2,COLORFFFF55; DRAWTEXTREL(908,356,'中小买盘'),LINETHICK2,COLOR5555FF; DRAWTEXTREL(908,524,'中小卖盘'),LINETHICK2,COLOR55FF55;IF BARSTATUS=2 THEN BEGINDRAWTEXTREL(930,100,''+FLOOR(VAR6)+'%'),LINETHICK2,COLORFF55FF; ENDIF BARSTATUS=2 THEN BEGINLOOP0:=FLOOR(VAR7);VAR10:=''+LOOP0;VAR11:=VAR10 + '%';DRAWTEXTREL(930,268,VAR11),LINETHICK2,COLORFFFF55;ENDIF BARSTATUS=2 THEN BEGINLOOP1:=FLOOR(VAR8);VAR12:=''+LOOP1;VAR13:=VAR12+'%';DRAWTEXTREL(930,436,VAR13),LINETHICK2,COLOR5555FF;ENDIF BARSTATUS=2 THEN BEGINLOOP2:=FLOOR(VAR9);VAR14:=''+LOOP2;VAR15:=VAR14+'%';DRAWTEXTREL(930,604,VAR15),LINETHICK2,COLOR55FF55;END;【大智慧】分时主图(所属板块、每股市盈率、每股收益、同比增长)-指标公式效果图(文档来源:若水财经社区)。
大智慧斐波那契时间周期画线主图指标公式
大智慧斐波那契时间周期画线主图指标公式input: N(5,1,100);EMA13:=EMA(C,13);ma30:=ma(c,30);ma72:=ma(c,72);{地心引力:(ma30+ma72)/2,POINTDOT,ColorFF7F93,LINETHICK3;上引力:(ma30+ma72)/2*0.9,POINTDOT,ColorFF7F93,LINETHICK3;下引力:(ma30+ma72)/2*1.1,POINTDOT,ColorFF7F93,LINETHICK3;} {DRAWGBKLAST(CLOSE>0,STRIP(RGB(95,95,95),RGB(0,0,0),0 ));}ema17:=ema(c,17);主筹估算:=EMA(WINNER(c)*70,3);散筹估算:=EMA((WINNER((c)*1.1)-WINNER((c)*0.9))*70,3);筹码锁定:=散筹估算-主筹估算 ;动态底部:=EMA(IF(L<= LLV(l,60),SMA(ABS(L-REF(L,1)),60,1)/SMA(MAX(L-REF(l,1),0),99,1),0)*5,3);涨:=CROSS(主筹估算,筹码锁定);强:=CROSS(主筹估算,散筹估算);STICKLINE(涨,O,C,8,0),COLORYELLOW;STICKLINE(涨,O,H,0,0),COLORYELLOW;STICKLINE(涨,L,C,0,0),COLORYELLOW;STICKLINE(强, O,C,8,0),colormagenta;STICKLINE(强,O,H,0,0),colormagenta;STICKLINE(强,L,C,0,0),colormagenta;{黄金分割线}lhnh:=BARSLAST(DISPSTATUS=1)+1;nnl:=DISPSTATUS=2;Al:=BACKSET(nnl,hhvBARS(h,lhnh)+1);Bl:=Al>REF(Al,1);Al2:=BACKSET(nnl,LLVBARS(L,lhnh)+1);Bl2:=Al2>REF(Al2,1);前高:REF(H,BARSLAST(bl)),PRECIS2,COLORff00ff,LINETHICK2;DRAWTEXT(nnl,前高,'前高:'+前高),ALIGN2,COLORGREEN;前低:REF(L,BARSLAST(Bl2)),PRECIS2,COLORGREEN,LINETHICK2;DRAWTEXT(nnl,前低*1.009,'前低:'+前低),ALIGN2,COLORGREEN;Fl1:((前高-前低)*0.191)+前低,POINTDOT,ColorFF7F93,LINETHICK3;DRAWTEXT(BARSLAST(Bl)>BARSLAST(Bl2) and nnl,Fl1,'0.236:'+Fl1),Color938C93;Fl2:((前高-前低)*0.382)+前低,POINTDOT,Color5E8C93,LINETHICK3;DRAWTEXT(BARSLAST(Bl)>BARSLAST(Bl2) and nnl,Fl2,'0.382:'+Fl2),ALIGN2,COLORGREEN;Fl3:((前高-前低)*0.5)+前低,POINTDOT,COLOR00ffff,LINETHICK4;DRAWTEXT(nnl,Fl3,'0.5:'+Fl3),ALIGN2,Color918C93;Fl4:((前高-前低)*0.618)+前低,POINTDOT,Color918C93,LINETHICK3;DRAWTEXT(BARSLAST(Bl)>BARSLAST(Bl2)and nnl,Fl4,'0.618:'+Fl4),ALIGN2,COLORGREEN;Fl5:((前高-前低)*0.809)+前低,POINTDOT,Color918C67,LINETHICK3;{ 股旁网_最新股票指标公式}DRAWTEXT(BARSLAST(Bl)>BARSLAST(Bl2) and nnl,Fl5,'0.764:'+Fl5),ALIGN2,COLORGREEN;pp:=MAX( BARSLAST(bl),BARSLAST(Bl2))+1;k1:=pp-1;k2:=pp-3;k3:=pp-5;k4:=pp-8;k5:=pp-13;k6:=pp-21;k7:=pp-34;k8:=pp-55;k9:=pp-89;k10:=pp-144;k11:=pp-233;VERTLINE(FILTER(c=ref(c,k1),0) ,1 );VERTLINE(FILTER(c=ref(c,k2),0) ,1 );VERTLINE(FILTER(c=ref(c,k3),0),1 );VERTLINE(FILTER(c=ref(c,k4),0) ,1 );VERTLINE(FILTER(c=ref(c,k5),0) ,1 );VERTLINE(FILTER( c=ref(c,k6),0),1 );VERTLINE(FILTER( c=ref(c,k7),0),1 );VERTLINE(FILTER(c=ref(c,k8),0),1 );VERTLINE(FILTER(c=ref(c,k9),0),1 );VERTLINE(FILTER(c=ref(c,k10),0),1 );VERTLINE(FILTER(c=ref(c,k11),0),1 );DRAWTEXT(FILTER(c=ref(c,k1),0),(HHV( h,80 )+LLV(l ,80 ))/2,' 1'),COLORred,LINETHICK6;DRAWTEXT(FILTER( c=ref(c,k2),0),(HHV( h,80 )+LLV(l ,80 ))/2, '3'),COLORred,LINETHICK6;DRAWTEXT(FILTER(c=ref(c,k3),0),(HHV( h,80 )+LLV(l ,80 ))/2,' 5'),COLORGREEN,LINETHICK6;DRAWTEXT(FILTER(c=ref(c,k4),0),(HHV( h,80 )+LLV(l ,80 ))/2,' 8'),COLORred,LINETHICK6;DRAWTEXT(FILTER(c=ref(c,k5),0),(HHV( h,80 )+LLV(l ,80 ))/2,' 13'),COLORred,LINETHICK6;DRAWTEXT(FILTER(c=ref(c,k6),0),(HHV( h,80 )+LLV(l ,80 ))/2,' 21转'),COLORGREEN,LINETHICK6;DRAWTEXT(FILTER(c=ref(c,k7),0),(HHV( h,80 )+LLV(l ,80 ))/2,' 34'),COLORred,LINETHICK6;DRAWTEXT(FILTER(c=ref(c,k8),0),(HHV( h,80 )+LLV(l ,80 ))/2,' 55'),COLORred,LINETHICK6;DRAWTEXT(FILTER(c=ref(c,k9),0),(HHV( h,80 )+LLV(l ,80 ))/2,' 89'),COLORGREEN,LINETHICK6;DRAWTEXT(FILTER(c=ref(c,k10),0),(HHV( h,80 )+LLV(l ,80 ))/ 2,'144'),COLORred,LINETHICK6;DRAWTEXT(FILTER(c=ref(c,k11),0),(HHV( h,80 )+LLV(l ,80 ))/ 2,'233'),COLORGREEN,LINETHICK6;A1:=ref(h,N)=hhv(h,2*N+1);B1:=filter(A1,N);C1:=backset(B1,N+1);D1:=filter(C1,n) or BARSTATUS=2;{高点}A2:=ref(l,N)=llv(l,2*N+1);B2:=filter(A2,N);C2:=backset(B2,N+1);D2:=filter(C2,N);{低点}E1:=(ref(llv(l,2*N),1)+ref(hhv(h,2*N),1))/2; E2:=(h+l)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND not(D2 AND E1>=E2)) OR barstatus=2 OR barscount(c)=1;L1:=(D2 AND not(D1 AND E1<E2)); H2:=D1 AND not(D2 AND E1>=E2);X1:=ref(barslast(H1),1)+1; F1:=backset(H1 AND count(L1,X1)>0,llvbars(if(L1,l,10000),X1));G1:=F1>ref(F1,1); I1:=backset(G1,2); LD:=I1>ref(I1,1);{过滤后低点}L2:=LD OR barstatus=2 OR barscount(c)=1;X2:=ref(barslast(L2),1)+1; F2:=backset(L2 AND count(H2,X2)>0,hhvbars(if(H2,h,0),X2));G2:=F2>ref(F2,1); I2:=backset(G2,2); HD:=I2>ref(I2,1);{过滤后高点}R1:=backset(barstatus=2,barslast(HD)+1); S1:=R1>ref(R1,1); {前一高}T1:=backset(barstatus=2,barslast(LD)+1); U1:=T1>ref(T1,1); {前一低}R2:=backset(S1,ref(barslast(HD),1)+2); S2:=R2>ref(R2,1); {前二高}T2:=backset(U1,ref(barslast(LD),1)+2); U2:=T2>ref(T2,1); {前二低}T3:=backset(U2,ref(barslast(LD),1)+2); U3:=T3>ref(T3,1); {前三低}T4:=backset(U3,ref(barslast(LD),1)+2); U4:=T4>ref(T4,1); {前四低}R3:=backset(S2,ref(barslast(HD),1)+2); S3:=R3>ref(R3,1); {前三高}R4:=backset(S3,ref(barslast(HD),1)+2); S4:=R4>ref(R4,1); {前四高}短期压力:drawline(S2,h,S1,h,1),Colorred,LINETHICK2;短期支撑:drawline(U2,l,U1,l,1),Colorgreen,LINETHICK2;中期压力:drawline(S3,h,S2,h,1),Coloryellow,LINETHICK2;中期支撑:drawline(U3,l,U2,l,0),Colorgreen,LINETHICK2; 长期压力:drawline(S4,h,S3,h,1),COLORwhite,LINETHICK2; 长期支撑:drawline(U4,l,U3,l,0),Colorgreen,LINETHICK2; DRAWICON(S1,H,10);DRAWICON(S2,H,10);DRAWICON(S3,H,10);DRAWICON(S4,H,10);。
大智慧缺口画线主图指标公式
大智慧缺口画线主图指标公式大智慧缺口画线主图指标公式2011-01-14 股旁网分类:大智慧公式标签: 主图画线缺口n:=5;{缺口}LL:=REF(L,1);HH:=REF(H,1);SQK:=L>HH;XQK:=H<LL;DRAWTEXT(SQK,L*0.92,' 向上跳空'),COLORRED; DRAWTEXT(XQK,H*1.08,' 逃命跳空'),COLORYELLOW; STICKLINE(SQK,L,HH,4*N,1),COLORRED; STICKLINE(XQK,H,LL,4*N,2),COLORYELLOW;MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA60:MA(CLOSE,60);BB:=REF(INDEXC,1)<REF(INDEXC,2) ANDREF(C,2)*0.95>=REF(C,1) ANDREF(O,1)/REF(C,1)>=1.05AND REF(C,1)<REF(O,1) AND C>O ANDC/O>=1.05 AND C>REF(O,1)AND REF(VOL,1)<REF(VOL,2);STICKLINE(BB,O,C,4,0),COLORRED;STICKLINE(BB,O,H,0,0),COLORRED;STICKLINE(BB,L,C,0,0),COLORRED;DRAWTEXT(BB,L*0.98,'○追'),COLORYELLOW;V AR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV( LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(L OW,5))*100,5,1),3.2,1);V AR2:=8;CC:=CROSS(V AR1,V AR2);DRAWTEXT(CC,L*0.98,'◎买'),COLOR0099FF;TYP:=(H+L+C)/3;TYP1:=(TYP-MA(TYP,14))/(0.015*A VEDEV(TYP,14))<=2 0 AND REF(MA(C,21),1)<MA(C,21);TJ1:=O<MAX(REF(C,1),REF(O,1));TJ2:=REF(C,1)>=MA(C,21) AND L/MA(C,21)>=1.015 AND MA(C,144)>MA(C,250) AND V<MA(V,10) ANDTJ3:=REF(MA(C,250),90)<REF(MA(C,144),90) ANDMA(C,144)>MA(C,250) AND O>MA(C,250);TJ4:=MAX(REF(H,10)AND REF(H,9)AND REF(H,8)AND REF(H,7), REF(H,6));TOUJI:=TYP1 AND TJ1 AND TJ2 ANDREF(C,2)/REF(O,2)<1.06 AND C/O<=1.05 ANDHHV(H,5)/LLV(L,30)>=1.65 ANDREF(H,5)/REF(L,1)>=1.15 ANDREF(C,1)/REF(O,1)<=0.995 AND (L<REF(L,2) OR (REF(H,2)-REF(L,2))/(H-L)>=2) ANDO/REF(L,1)<=1.04OR TYP1 AND TJ1 AND O/REF(L,1)<1.05 ANDREF(L,1)/REF(O,4)<=0.85 ANDREF(C,1)/REF(O,1)<=1.03 AND O<REF(C,1) AND HHV(H,5)/LLV(L,35)>1.35 AND V<MA(V,10);TOUJI2:=TYP1 AND TJ1 AND TJ2 AND O/REF(L,1)<1.05 AND O/LLV(L,3)<1.1 AND REF(C,1)/REF(0,1)<=1.05 AND HHV(H,4)/LLV(L,16)>=1.35 ANDREF(O,4)/REF(C,2)>=1.08 ANDREF(C,2)/REF(O,2)<=0.995 AND (REF(L,2)<REF(L,3) OR (REF(H,3)-REF(L,3))/(REF(H,1)-REF(L,1))>=2) ANDOR TYP1 AND TJ1 AND HHV(H,10)/LLV(L,25)>=1.3 AND REF(C,5)<REF(H,5) AND REF(C,4)<REF(C,5) AND REF(C,3)<REF(C,4) AND REF(C,2)<REF(C,3) AND REF(C,1)<REF(C,2) AND L<REF(L,1) ANDMA5/O<1.1;DATOUJI:=TYP1 AND TJ3 AND O<REF(C,5) ANDO<=REF(C,1) AND REF(H,10)/O>=1.17 ANDHHV(H,10)/LLV(L,30)>1.4 AND(MA(V,10)/HHV(V,10)>0.5 AND V/HHV(V,10)>0.2 AND V/HHV(V,10)<0.4 OR REF(V,3)>REF(V,2) AND REF(V,2)>REF(V,1)) AND REF(C,1)/REF(C,2)<=1.02; DATOUJI1:=TYP1 AND TJ3 AND O<REF(L,6) ANDO<MIN(REF(C,5)AND REF(O,5),5) ;DRAWTEXT(TOUJI OR TOUJI2 OR DATOUJI OR DATOUJI1,L*0.98,'△'),COLORYELLOW;DRAWTEXT(CROSS(MA(VOL,10),MA(VOL,20)) AND MA(VOL,5)>MA(VOL,10) AND L<MA(C,20) ANDC>=MA(C,20),L*0.98,'量托'),COLORWHITE;卖出:=CROSS(90,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/S MA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100);DRAWTEXT(卖出,H*1.05,'◎短卖'),COLORGREEN; C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0); STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN; W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));突破盘整:=W4 AND COUNT(W4,5)=1; DRAWICON(突破盘整,L-0.10,1);{画线高低}A1:=ref(h,N)=hhv(h,2*N+1);B1:=filter(A1,N);C1:=backset(B1,N+1);D1:=filter(C1,n);{高点}A2:=ref(l,N)=llv(l,2*N+1);B2:=filter(A2,N);C2:=backset(B2,N+1);D2:=filter(C2,N);{低点}DRAWTEXTABS(5,5,'股旁网'),linethick2,COLOR00EEff;E1:=(ref(llv(l,2*N),1)+ref(hhv(h,2*N),1))/2; E2:=(h+l)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND not(D2 AND E1>=E2)) OR barstatus=2 OR barscount(c)=1;L1:=(D2 AND not(D1 AND E1<E2)); H2:=D1 AND not(D2 AND E1>=E2);X1:=ref(barslast(H1),1)+1; F1:=backset(H1 ANDcount(L1,X1)>0,llvbars(if(L1,l,10000),X1));G1:=F1>ref(F1,1); I1:=backset(G1,2);LD:=I1>ref(I1,1);{过滤后低点}L2:=LD OR barstatus=2 OR barscount(c)=1;X2:=ref(barslast(L2),1)+1; F2:=backset(L2 ANDcount(H2,X2)>0,hhvbars(if(H2,h,0),X2));G2:=F2>ref(F2,1); I2:=backset(G2,2);HD:=I2>ref(I2,1);{过滤后高点}R1:=backset(barstatus=2,barslast(HD)+1); S1:=R1>ref(R1,1); {前一高}T1:=backset(barstatus=2,barslast(LD)+1); U1:=T1>ref(T1,1); {前一低}R2:=backset(S1,ref(barslast(HD),1)+2); S2:=R2>ref(R2,1); {前二高}T2:=backset(U1,ref(barslast(LD),1)+2); U2:=T2>ref(T2,1); {前二低}T3:=backset(U2,ref(barslast(LD),1)+2); U3:=T3>ref(T3,1); {前三低}T4:=backset(U3,ref(barslast(LD),1)+2); U4:=T4>ref(T4,1); {前四低}R3:=backset(S2,ref(barslast(HD),1)+2); S3:=R3>ref(R3,1); {前三高}R4:=backset(S3,ref(barslast(HD),1)+2); S4:=R4>ref(R4,1); {前四高}短期压力:drawline(S2,h,S1,h,1),Colorred;短期支撑:drawline(U2,l,U1,l,1),Colorgreen;中期压力:drawline(S3,h,S2,h,1),Coloryellow;中期支撑:drawline(U3,l,U2,l,0),Colorgreen;长期压力:drawline(S4,h,S3,h,1),COLORwhite;长期支撑:drawline(U4,l,U3,l,0),Colorgreen;DRAWICON(S1,H*1.01,10);DRAWICON(S2,H*1.01,10);DRAWICON(S3,H*1.01,10);DRAWICON(S4,H*1.01,10);DRAWICON(U1,L*0.99,9);DRAWICON(U2,L*0.99,9);DRAWICON(U3,L*0.99,9);DRAWICON(U4,L*0.99,9);与大智慧缺口画线主图指标公式相关的股票公式大智慧日出股海决策主图指大智慧高抛低吸主图指标公大智慧牵牛线主图指标公式大智慧王子量柱主图指标公大智慧底部雷达主图指标公大智慧极品黄金主图指标公-本周热门大智慧公式大智慧很好的入场指标公式大智慧明天重心指标公式大智慧高抛低吸主图指标公式大智慧布林短买指标公式大智慧主力增减指标公式大智慧滑头主力指标公式大智慧猎庄端窝分时指标公式大智慧主力入货指标公式本月热门大智慧公式大智慧精确打击指标公式大智慧新美人眼指标公式大智慧极品黄金主图指标公式大智慧主力散户筹码+选股指标公式大智慧波段王操盘主图指标公式大智慧新发动机指标公式大智慧提前买入指标公式大智慧精确抄底选股指标公式年度热门大智慧公式大智慧专抓涨停的动态买卖公式大智慧实战很强的公式大智慧超级资金指标公式大智慧大小黑马全拿下公式大智慧资金进出公式大智慧买卖天机公式大智慧主力期间动态公式大智慧分时均线公式总榜热门大智慧公式大智慧专抓涨停的动态买卖公式大智慧实战很强的公式大智慧超级资金指标公式大智慧大小黑马全拿下公式大智慧资金进出公式大智慧买卖天机公式大智慧主力期间动态公式大智慧分时均线公式。