【股票指标公式下载】-【大智慧】航海辅助(牛线、马线)
航海家全套指标源码
航海家全套指标源码【航海家证券决策系统公式组全套公式源码】航海家公式组全套公式:1.分时买卖2.水手突破3.主力追踪4.捕捞季节5.海洋寻底6.海洋追涨7.智能辅助18.智能辅助2智能辅助线{主图}HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJsjda+19*REF(HHJsjda,1)+18*REF(HHJsjda,2 )+17*REF(HHJsjda,3)+16*REF(HHJsjda,4)+15*REF(HHJsjda,5) +14*REF(HHJsjda,6)+13*REF(HHJsjda,7)+12*REF(HHJsjda,8)+11*REF(HHJsjda,9) +10*REF(HHJsjda,10)+9*REF(HHJsjda,11)+8*REF(HHJsjda,12)+7*REF(HHJsjda,13)+6*REF(HHJsjda,14)+5*REF(HHJsjda,15) +4*REF(HHJsjda,16)+3*REF(HHJsjda,17)+2*REF(HHJsjda,18) +REF(HHJsjda,20))/210,coloryellow;HHJSJDC:MA(HHJSJDB,5),colorred;{水手突破}水手突破(抓个股起爆点)水手突破指标:这是一个趋势型指标,在大盘分析处于红色的追涨操作的情况下用该指标选股能选到当时市场中最好的一类股票。
运用原理:当股价进入黄色区域(黄色上方)后,表示该股已经进入黄色的强势区域,可以大胆追涨,也是最好的买点,而当股价进入粉色的区域后股价将加速上扬。
上趋势:MA(LOW,20)*1.2,color0080ff,linethick2;次上趋势:MA(LOW,20)*1.1,COLORYELLOW;次下趋势:MA(HIGH,20)*0.9,COLORWHITE;下趋势:MA(HIGH,20)*0.8,COLORGREEN,linethick2;ZD:=(C-REF(C,1))/REF(C,1)*100;HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势AND C<</span>次上趋势,2,IF(C<</span>下趋势,0,1)));STICKLINE(趋势强度=0,H,L,6,1),COLORBLUE;STICKLINE(趋势强度=1,H,L,6,1),COLORGREEN; STICKLINE(趋势强度=2,H,L,6,1),COLORGRAY;STICKLINE(趋势强度=3,H,L,6,1),COLORYELLOW; STICKLINE(趋势强度=4,H,L,6,1),COLORMAGENTA; STICKLINE(趋势强度=0,C,O,5,0),COLORBLUE;STICKLINE(趋势强度=1,C,O,5,0),COLORGREEN; STICKLINE(趋势强度=2,C,O,5,0),COLORGRAY;STICKLINE(趋势强度=3,C,O,5,0),COLORYELLOW; STICKLINE(趋势强度=4,C,O,5,0),COLORMAGENTA;代码:{智能辅助线1}{主图}MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+ 16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID, 7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5* REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18) +REF(MID,20))/210,COLORRED;马线:MA(牛线,6),COLORGREEN;五日线:MA(CLOSE,5),POINTDOT,COLORLIBLUE;水平面:MA(CLOSE,60),POINTDOT,COLORYELLOW;代码:{智能辅助2}{主图叠加}HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJsjda+19*REF(HHJsjda,1)+18*REF(HHJsjda,2 )+17*REF(HHJsjda,3)+16*REF(HHJsjda,4)+15*REF(HHJsjda,5) +14*REF(HHJsjda,6)+13*REF(HHJsjda,7)+12*REF(HHJsjda,8)+11*REF(HHJsjda,9) +10*REF(HHJsjda,10)+9*REF(HHJsjda,11)+8*REF(HHJsjda,12) +7*REF(HHJsjda,13)+6*REF(HHJsjda,14)+5*REF(HHJsjda,15) +4*REF(HHJsjda,16)+3*REF(HHJsjda,17)+2*REF(HHJsjda,18) +REF(HHJsjda,20))/210,coloryellow;HHJSJDC:MA(HHJSJDB,5),colorred;代码:{主力追踪}主力追踪主力追踪(洞察主力意图)主力追踪线:这是一个资金型指标,用于捕捉个股的主力进出情况,紧扣主力操作动向捕捉庄股,在股票市场中股价下跌不一定意味着主力出货,股价上涨也不一定是主力进场,有的时候股价下跌是主力洗盘,有的时候上涨是主力拉高出货,而通过主力追踪线就能更清楚的了解主力的真实意图。
航海家全套指标源码
【航海家证券决策系统公式组全套公式源码】航海家公式组全套公式:1.分时买卖2.水手突破3.主力追踪4.捕捞季节5.海洋寻底6.海洋追涨7.智能辅助18.智能辅助2智能辅助线{主图}HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJsjda+19*REF(HHJsjda,1)+18*REF(HHJsjda,2)+17*REF(HHJsjda,3)+16*RE F(HHJsjda,4)+15*REF(HHJsjda,5)+14*REF(HHJsjda,6)+13*REF(HHJsjda,7)+12*REF(HHJsjda,8)+11*REF(HHJsjda,9)+10*REF(HHJsjda,10)+9*REF (HHJsjda,11)+8*REF(HHJsjda,12)+7*REF(HHJsjda,13)+6*REF(HHJsjda,14)+5*REF(HHJsjda,15)+4*REF(HHJsjda,16)+3*REF( HHJsjda,17)+2*REF(HHJsjda,18)+REF(HHJsjda,20))/210,coloryellow;HHJSJDC:MA(HHJSJDB,5),colorred;{水手突破}水手突破(抓个股起爆点)水手突破指标:这是一个趋势型指标,在大盘分析处于红色的追涨操作的情况下用该指标选股能选到当时市场中最好的一类股票。
运用原理:当股价进入黄色区域(黄色上方)后,表示该股已经进入黄色的强势区域,可以大胆追涨,也是最好的买点,而当股价进入粉色的区域后股价将加速上扬。
上趋势:MA(LOW,20)*1.2,color0080ff,linethick2;次上趋势:MA(LOW,20)*1.1,COLORYELLOW;次下趋势:MA(HIGH,20)*0.9,COLORWHITE;下趋势:MA(HIGH,20)*0.8,COLORGREEN,linethick2;ZD:=(C-REF(C,1))/REF(C,1)*100;HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势 AND C<次上趋势,2,IF(C<下趋势,0,1)));STICKLINE(趋势强度=0,H,L,6,1),COLORBLUE;STICKLINE(趋势强度=1,H,L,6,1),COLORGREEN;STICKLINE(趋势强度=2,H,L,6,1),COLORGRAY;STICKLINE(趋势强度=3,H,L,6,1),COLORYELLOW;STICKLINE(趋势强度=4,H,L,6,1),COLORMAGENTA;STICKLINE(趋势强度=0,C,O,5,0),COLORBLUE;STICKLINE(趋势强度=1,C,O,5,0),COLORGREEN;STICKLINE(趋势强度=2,C,O,5,0),COLORGRAY;STICKLINE(趋势强度=3,C,O,5,0),COLORYELLOW;STICKLINE(趋势强度=4,C,O,5,0),COLORMAGENTA;代码:{智能辅助线1}{主图}MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5 )+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF( MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3 *REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;马线:MA(牛线,6),COLORGREEN;五日线:MA(CLOSE,5),POINTDOT,COLORLIBLUE;水平面:MA(CLOSE,60),POINTDOT,COLORYELLOW;代码:{智能辅助2}{主图叠加}HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJsjda+19*REF(HHJsjda,1)+18*REF(HHJsjda,2)+17*REF(HHJsjda,3)+16*RE F(HHJsjda,4)+15*REF(HHJsjda,5)+14*REF(HHJsjda,6)+13*REF(HHJsjda,7)+12*REF(HHJsjda,8)+11*REF(HHJsjda,9)+10*REF(HHJsjda,10)+9*REF (HHJsjda,11)+8*REF(HHJsjda,12)+7*REF(HHJsjda,13)+6*REF(HHJsjda,14)+5*REF(HHJsjda,15)+4*REF(HHJsjda,16)+3*REF( HHJsjda,17)+2*REF(HHJsjda,18)+REF(HHJsjda,20))/210,coloryellow;HHJSJDC:MA(HHJSJDB,5),colorred;代码:{主力追踪}主力追踪主力追踪(洞察主力意图)主力追踪线:这是一个资金型指标,用于捕捉个股的主力进出情况,紧扣主力操作动向捕捉庄股,在股票市场中股价下跌不一定意味着主力出货,股价上涨也不一定是主力进场,有的时候股价下跌是主力洗盘,有的时候上涨是主力拉高出货,而通过主力追踪线就能更清楚的了解主力的真实意图。
【股票指标公式下载】-【大智慧】画线主图(高点、低点、短期压力、短期支撑)
【大智慧】画线主图(高点、低点、短期压力、短期支撑)-指标公式源码INPUT: N(5,1,100);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);{低点}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); {前二低}R3:=backset(S2,ref(barslast(HD),1)+2); S3:=R3>ref(R3,1); {前三高}短期压力:drawline(S2,h,S1,h,1),COLORYELLOW,LINETHICK2;短期支撑:drawline(U2,l,U1,l,1),COLORRED,LINETHICK2;中期压力:drawline(S3,h,S2,h,1),COLORGREEN,LINETHICK2;阶段高点:REF(H,BARSLAST(S2)),COLORWHITE,POINTDOT,LINETHICK2;高点1:REF(H,BARSLAST(S3)),COLORYELLOW,POINTDOT,LINETHICK2;高点2:REF(H,BARSLAST(S1)),COLORGREEN,POINTDOT,LINETHICK2;阶段低点:REF(L,BARSLAST(U2)),COLORMAGENTA,POINTDOT,LINETHICK2;立桩量:=V>2*REF(MA(V,5),1) AND C>REF(C,1);STICKLINE(立桩量 ,O,C,7,0),COLORYELLOW;{涨停标示}AAK:=CLOSE/REF(C,1)>=1.097 AND C=H;STICKLINE(AAK,C,O,3,0),COLORRED;STICKLINE(AAK,O,C,0.2,0),COLOR0000FF;{涨跌停标示}C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,1,0),COLORFF0000;DRAWTEXTABS(10,5,STKLABEL+' '+STKNAME+' 板块类别: '+BKNAME+' '),COLOR088FFF;【大智慧】画线主图(高点、低点、短期压力、短期支撑)-指标公式效果图(文档来源:若水财经社区)。
大智慧卧槽马选股公式及副图
大智慧卧槽马选股公式及副图大智慧卧槽马选股公式及副图M1 5 2 500 1Y1:=REF(EMA(DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9),3),1);AH1:=CROSS(CLOSE,Y1);RSVDS:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;AS:=SMA(RSVDS,3,1);AC:=SMA(AS,3,1);AF:=3*AS-2*AC;AW:=LLV(AF,2)=LLV(AF,8);AH:=IF(CROSS(AF,REF(AF+0.01,1)) AND AW AND AF<20,30,0);CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);DD:=DMA(CLOSE,CC);VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);AH OR AH1 OR 买1>0 OR 买2>0;。
【股票指标公式下载】-【大智慧】趋势买卖(W底选股、一阳穿三线)
【大智慧】趋势买卖(W底选股、一阳穿三线)-指标公式源码RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;var4:=SMA(RV,3,1);var5:=SMA(var4,3,1);KK:=EMA(SMA(RG,3,1),2);DD:=SMA(KK,3,1);DRAWTEXTREL(0,10,STKLABEL+' '+STKNAME+''),Color00DDFF;DRAWTEXT(cross(var4,var5) and cross(KK,DD),10,'共振点'),COLORyellow; VERTLINE(cross(var4,var5) and cross(KK,DD),1),COLOR00FFFF;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可}DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);W底选股:IF(SSS-SSB=2 ANDSSS>REF(SSS,1),-22,0),LINETHICK2,COLORffff00;IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORffff00; DRAWTEXT(A1,-8,'↖W底'),COLORyellow;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),-6,0) ,COLORyellow,LINETHICK3;IF((VARO7<10),-3,0) ,COLORblack,LINETHICK3;MA2:=EMA(C,2);MA5:=EMA(C,5);MA13:=EMA(C,13);MA30:=EMA(C,30);MA55:=EMA (C,55);YCX:=MA5>=REF(MA5,1);H1:=MAX(MAX(MA5,MA13),MA30);L1:=MIN(MIN(M A5,MA13),MA30);一阳穿三线:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1);满仓选股:IF(一阳穿三线,38,0),COLORFFFF00,LINETHICK3;IF(一阳穿三线,30,0),COLORblack,LINETHICK3;DRAWTEXT(一阳穿三线,42,'↙满'),COLORffff00;VAR2:=0.0001*AMOUNT;MA1:=0.0001*MA(AMOUNT,5);M2:=0.0001*MA(AMOUNT,10);百日地量:LLV(VAR2,100)=VAR2,STICK,COLORCC66FF,LINETHICK0; DRAWTEXT(百日地量,-8,'↖地'),COLORCC66FF;AA05:=MA(C,5);五日乖离率:=(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);AA10:=MA(C,10);AA20:=MA(c,20);BB10:=atan((aa10/ref(aa10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);三拾日乖离率:=(c-AA30)/AA30*100;(AA20-AA30)>ref((AA20-AA30),1) and AA20>ref(aa20,1) andAA30>ref(AA30,1);(AA30-AA20)<ref((AA30-AA20),1) and AA20<ref(aa20,1) andAA30<ref(AA30,1);BB30:=atan((aa30/ref(aa30,1)-1)*100)*180/3.1416;强势狙击选股: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) ;MR:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and AA05>ref(AA05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)<AA30; 青云直上选股:if(filter(MR,10),30,0),COLORblue,LINETHICK3;if(filter(MR,10),20,0),COLORblack,LINETHICK3;DRAWTEXT(青云直上选股,36,'↙青'),COLORblue;QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13))*10 0<=-28 AND(CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34))*100<=-1 9AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND (COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR (((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 ANDIF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA(( CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)<REF(SMA((CLOSE-LLV(LOW,8))/(HHV( HIGH,8)-LLV(LOW,8))*100,2,1),2)AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23 ,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND (C/MA(C,70))<0.70 AND((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND V<REF(V,1)*2.8 AND(COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3),3);DRAWTEXT(QUAN,88,'弱市百发百中'),COLORffff00;弱市百发百中:IF(QUAN,88,0),COLORffff00,LINETHICK2;IF(QUAN,60,0),COLORffff00,LINETHICK2;LC := REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;逃顶:CROSS(80,RSI)*68,LINETHICK3 ,colorgreen;CROSS(80,RSI)*50,LINETHICK3 ,colorblack;DRAWTEXT(CROSS(80,RSI),68,'顶 '),colorgreen;BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;MN:=MA(MM,3);VAR24:=LLV(LOW,36);VAR25:=HHV(HIGH,30);VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25;底背离:IF(MN<-4 ,-11,0),COLORA67D3D,LINETHICK3;顶背离: IF((VAR26>90),110,100), COLORgreen,LINETHICK3;IF(MN<-4 ,-8,0),COLORblack,LINETHICK2;IF((VAR26>90),106,100), COLORblack,LINETHICK3;100,COLORffff00, LINETHICK1;{趋势买卖}V1:=LLV(LOW,10);V2:=HHV(H,25);价位线:=EMA((C-V1)/(V2-V1)*4,4);买入:STICKLINE(CROSS(价位线,0.3),50,5,2,0),COLOR00CCFF,LINETHICK1; STICKLINE(CROSS(价位线,0.3),30,5,2,0),COLORRED,LINETHICK1;卖出:STICKLINE(CROSS(3.5,价位线),60,100,2,0),COLORRED,LINETHICK1; STICKLINE(CROSS(3.5,价位线),80,100,2,0),COLORFF9900,LINETHICK1; DRAWTEXT(CROSS(价位线,0.3),45,'←B'),COLORFFAA66;DRAWTEXT(CROSS(3.5,价位线),75,'←S'),COLORFFFFCC;VAR2Q:=REF(LOW,1);VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);VAR5Q:=LLV(LOW,30);VAR6Q:=HHV(VAR4Q,30);VAR7Q:=IF(MA(CLOSE,58),1,0);VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;VAR9Q:=IF(VAR8Q>100,100,VAR8Q);AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:=CEILING(SMA(AA5,13,8));AA6:=SMA(AA3,21,8);BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离1:=MA(BIAS,3);乖离:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORAAAAFF,LINETHICK3; DRAWTEXT(乖离,32,'↙乖'),COLORAAAAFF;IF(CROSS(BIAS,乖离1) AND 乖离1<-9,20,0),COLORblack,LINETHICK3; VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);准备建仓:EMA(IF(L<= LLV(L,30),VARC,0),3),COLORff00ff,LINETHICK2;TR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);神偷线:=(((DMP ) * 100) / TR);辅助线:=((DMM * 100) / TR);动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);准备:( IF(((动向趋势线 > 88) AND (神偷线 <5.8)),68,0)),LINETHICK1,COLORFF00FF;TYP := (HIGH + LOW + CLOSE)/3;cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*500-250;K:=SMA(RSV,3,1);Var1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(Var1,13)-EMA(Var1,73);SD:= EMA(SK,2);买点选股:(cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 ) or (cross(sk,sd) and sk<=0.05and (v/ma(v,5)>2 or c/ref(c,1)>0.035));IF(买点选股,28,0),COLORyellow,LINETHICK3;IF(买点选股,22,0),COLORblack,LINETHICK3;DRAWTEXT(买点选股,32,'↙买'),COLORyellow;RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);PDI:=((DMP * 100) / TR1);MDI:=((DMM * 100) / TR1);ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);AV:=(RSI5 + ADX);DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); NEWVOL:=(RSI5 - WR10);天之:=(AV + NEWVOL);低入:if(CROSS(天之,0),28,0),LINETHICK3,COLOR9370DB;if(CROSS(天之,0),22,0),LINETHICK3,COLORblack;DRAWTEXT(低入,32,'↙入'),COLOR9370DB;N:=20;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);股价线:(C-LB1)/(UB-LB)*100,COLORyellow, LINETHICK1;趋势线:MA(股价线,6),COLORred, LINETHICK3;地量:=VOL<LLV(VOL,30)*1.001;三十日地量:地量>0,LINETHICK2;地量1:=VOL<LLV(VOL,60)*1.001;六十日地量:地量1>0;地量2:=VOL<LLV(VOL,120)*1.001;一百二十日地量:地量2>0;即涨:CROSS(-100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55)),-45) AND CLOSE>SMA(CLOSE,60,5) AND SMA(CLOSE,23,5)>REF(SMA(CLOSE,23,5),1) ANDSMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1)>REF(SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1 ),23,1),1),COLOrEBC79E,LINETHICK2;DRAWTEXT(即涨,1.3,'即涨'),COLOREBC79E;牛大底:"1A0001$CLOSE"/REF("1A0001$CLOSE",23)<0.78AND C/REF(C,120)<0.558 and ref(c,1)/l<1.5and ref(c,1)<>ref(o,1) and ref(c,2)<>ref(o,2) andref(c,3)<>ref(o,3),COLOr4080FF,LINETHICK2;DRAWTEXT(牛大底,1.8,'牛大底'),COLOR4080FF;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,LINETHICK2,COLOR4D4DFF;DRAWTEXT(突破,-5,'突破'),COLORffff00;90,COLORGREEN, LINETHICK1;50,COLORwhite, LINETHICK1;【大智慧】趋势买卖(W底选股、一阳穿三线)-指标公式效果图(文档来源:若水财经社区)。
(整理)大智慧指标公式.
REFLINE: 0, ,, , ;Var2:=1/WINNER(CLOSE);Var3:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100);STICKLINE(Var2>5,Var3<100,Var2,5,0),;Var4:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;Var5:=SMA(Var4,5,1);Var6:=SMA(Var5,9,1);STICKLINE(VOL AND Var6<18,0,V ar2*0.5,5,0),coloryellow;〖觅庄建仓〗:0,coloryellow;5>1/WINNER(CLOSE) AND Var6<18;控盘强弱Vur1:=VOL/CAPITAL;Vur2:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);Vur3:=2.5*MAX(Vur1,Vur2);Vur4:=DMA(CLOSE,Vur3);Vur5:=20*(Vur4/REF(Vur4,1)-1)*38;Vur6:=EMA(Vur5,2);Vur7:=EMA(Vur5,2);Vur8:=EMA(Vur7,3);VurS:=EMA(Vur7,8);Vur9:=1.1*(MAX(INDEXH,REF(INDEXC,1))/MIN(INDEXL,REF(INDEXC,1))-1); VurA:=2.5*MAX(Vur1,Vur9);VurB:=DMA(INDEXC,VurA);VurC:=EMA(20*(VurB/REF(VurB,1)-1),1)*38;VurD:=EMA(VurC,2);VurE:=EMA(VurC,2);D强:STICKLINE(VurD>0,0,VurD,6.5,1),colorB210E4;D弱:STICKLINE(VurD<0,0,VurD,6.5,1),colorFFA6A6;极强:STICKLINE(Vur5>0,0,Vur5,6.5,0),COLORYELLOW;强势:STICKLINE(Vur6>0,0,Vur6,6.5,0),COLORRED;极弱:STICKLINE(Vur5<0,0,Vur5,6.5,0),color10D010;弱势:STICKLINE(Vur6<0,0,Vur6,6.5,0),colorE4E410;DX:VurE,color1088FF,LINETHICK2;界:VurS,color6CBC10,LINETHICK2;控:Vur8,colorFF10FF;指:Vur7,color10E4E4;V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;庄秘撤: IF(V4<=0,V4,0),COLOR00FF00,LINETHICK2;庄秘进: IF(V4>=0,V4,0),COLORFF00FF,LINETHICK2;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);V A:=EMA(V9,3);VB:=(V9-VA)/2;大筹金进场: IF(VB>=0,VB,0),COLORYELLOW,LINETHICK2;大筹金撤走: IF(VB<=0,VB,0),COLORBLUE,LINETHICK2;aa:=WINNER(CLOSE+CLOSE*15/100)*100;bb:=WINNER(CLOSE+CLOSE*0/100)*100;cc:=aa-bb;dd:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100; ee:=cc<3 and dd<0.5 and OPEN<>LOW;a1:=DYNAINFO(6);a2:=IF(LOW>a1,0,IF(HIGH<a1,1,(a1-LOW+0.01)/(HIGH-LOW+0.01)));a3:=VOL/WINNER(LOW);a4:=REF(HHV(CLOSE,120),1);a5:=REF(LLV(CLOSE,120),1);a6:=100*(CLOSE-a5)/(a4-a5);a7:=a2>0 or a2=1;a8:=a7 and a3/REF(a3,3)>=3 and a6<80;a9:=REF(a8,1) or REF(a8,2) or REF(a8,3) or REF(a8,4);a10:=a8 and a9;a11:=IF(FILTER(a8,3),5,0);a12:=IF(FILTER(a10,3) or ee,10,0);筹码进场日:IF(a11,8,0),LINETHICK0;STICKLINE(a12,0,15,5,0),colorff00ff;筹码加仓日:IF(a12,88,0),LINETHICK0;STICKLINE(a12,0,15,5,0),colorff00ff;STICKLINE(a11,0,5,5,0),colorff7700;STICKLINE(a11,0,5,4.5,0),colorff8800;STICKLINE(a11,0,5,4,0),colorff9900;STICKLINE(a11,0,5,3.5,0),colorffaa00;STICKLINE(a11,0,5,3,0),colorffbb00;STICKLINE(a11,0,5,2.5,0),colorffcc00;STICKLINE(a11,0,5,2,0),colorffdd00;STICKLINE(a11,0,5,1,0),colorffee00;STICKLINE(a12,0,15,4.5,0),color102099;STICKLINE(a12,0,15,4,0),color1020aa;STICKLINE(a12,0,15,3.5,0),color1020bb;STICKLINE(a12,0,15,3,0),color1020cc;STICKLINE(a12,0,15,2.5,0),color1020dd;STICKLINE(a12,0,15,2,0),color1020ee;STICKLINE(a12,0,15,1,0),color1020ff;DRAWTEXT(a11,8,'筹码进场');DRAWTEXT(a12,17,'筹码加仓');Var1:=REF(LOW,1);Var2:=SMA(ABS(LOW-Var1),13,1)/SMA(MAX(LOW-Var1,0),13,1)*4;Var3:=EMA(Var2,13);Var4:=LLV(LOW,34);Var5:=EMA(IF(LOW<=Var4,Var3,0),3);主力进场:IF(Var5>REF(Var5,1),V AR5,0),COLORred,LINETHICK2;STICKLINE(Var5>REF(Var5,1),0,V ar5,7,0 ),COLORRED;洗盘:IF(V AR5<REF(VAR5,1),V AR5,0),COLORGREEN,LINETHICK2;STICKLINE(V AR5<REF(V AR5,1),0,V AR5,2,1),COLORGREEN;Var6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SM A(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA (SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var8:=Var6<REF(Var7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(V ar8 AND COUNT(Var8,30)=1,40,'★有筹码进场');天使报佳音vor03:=EMA(c,3);vor07:=EMA(c,7);vor13:=EMA(c,13);vor21:=EMA(c,21);vor34:=EMA(c,34);vor55:=EMA(c,55);y03:EMA(vor03,3),linethick1,colorred;y07:EMA(vor07,7),linethick1,COLOR0099FF;y13:EMA(vor13,13),linethick1,coloryellow;y21:EMA(vor21,21),linethick1,colorblue;y34:EMA(vor34,34),linethick1,colorcf88ee;y55:EMA(vor55,55),linethick1,colorwhite;vor023:=hhv(y03,3)/hhv(h,3);vor027:=hhv(y07,7)/hhv(h,7);vor213:=hhv(y13,13)/hhv(h,13);vor221:=hhv(y21,21)/hhv(h,21);vor234:=hhv(y34,34)/hhv(h,34);vor255:=hhv(y55,55)/hhv(h,55);vor33:=c*vor023;vor37:=c*vor027;vor313:=c*vor213;vor321:=c*vor221;vor334:=c*vor234;vor355:=c*vor255;vor43:=longcross(vor023,y03+0.1,10);vor47:=longcross(vor027,y07+0.1,10);vor413:=longcross(vor313,y13+0.1,10);vor421:=longcross(vor321,y21+0.1,10);vor434:=longcross(vor334,y21+0.1,10);vor455:=longcross(vor355,y55+0.1,10);DRAWICON(vor413,HIGH*1.235,1);DRAWICON(vor421,HIGH*1.235,1);DRAWICON(vor434,HIGH*1.35,1);DRAWICON(vor455,HIGH*1.46,1);stickline(vor43,if(c>0,llv(y03,22),y03),if(c>0,hhv(y03,22),y03),6,0),colorred;stickline(vor47,if(c>0,llv(y07,33),y07),if(c>0,hhv(y07,33),y07),6,0),COLOR0099FF;stickline(vor413,if(c>0,llv(y13,44),y13),if(c>0,hhv(y13,44),y13),6,0),coloryellow;stickline(vor421,if(c>0,llv(y21,55),y21),if(c>0,hhv(y21,55),y21),6,0),colorblue;stickline(vor434,if(c>0,llv(y34,66),y34),if(c>0,hhv(y34,66),y21),6,0),colorcf88ee;stickline(vor455,if(c>0,llv(y55,88),y55),if(c>0,hhv(y55,88),y21),6,0),colorwhite;资金流量PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2)))));ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) * 1.5),0,1,0),color808080;STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) * 1.5),0,1,0),color808080;GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);资金流量:LLJX,LINETHICK0,color0000FF;STICKLINE((资金流量> 0),资金流量,0,7,0),color0000FF;STICKLINE((资金流量< 0),资金流量,0,7,0),colorFF0000;流量基线:GJJ,color00FFFF;ZJLL:=REF(LLJX,1);QZJJ:=(((LLJX - ZJLL) / ZJLL) * 100);流量增幅:IF(((LLJX > 0) AND (ZJLL < 0)),ABS(QZJJ),IF((((LLJX < 0) AND (ZJLL < 0)) AND (LLJX < ZJLL)),(0 - QZJJ),QZJJ)),LINETHICK0;力度:(HSL / 1000),LINETHICK0;周流量:SUM(LLJX,5),LINETHICK0;BB:=REF(周流量,1);ZQZJJ:=(((周流量- BB) / BB) * 100);周增幅:IF(((周流量> 0) AND (BB < 0)),ABS(ZQZJJ),IF((((周流量< 0) AND (BB < 0)) AND (周流量< BB)),(0 - ZQZJJ),ZQZJJ)),LINETHICK0;0,color808080;庄见愁获利线:EMA(WINNER(C)*100,3),colorwhite;庄筹线:EMA(WINNER(C)*70,5),colorred,linethick2;散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,5),coloryellow,linethick2;收:=winner(C)*100;开:=winner(O)*100;博弈K线长:MAX(ABS(收-开),ABS(收-REF(收,1))),pointdot,colorwhite;STICKLINE(庄筹线>散筹线,庄筹线,散筹线,0,0),COLOrwhite;stickline(收>=REF(收,1),0,博弈K线长,4,0),colorred;stickline(收<=REF(收,1),0,博弈K线长,4,0),color00ff00;{庄筹线:EMA(WINNER(C)*70,5), colorred, linethick2;散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),colorgreen, linethick2;}5,colorwhite,pointdot;20,coloryellow,pointdot;40,colorffcc66,pointdot;60,colorff00ff,pointdot;cc:FILTER((CROSS(5,庄筹线) and 散筹线<20 )*60,10 ),colorff00ff;DRAWTEXT(cc ,60 ,'海底捞活鱼(抄底)' ),colorff00ff;aa:= ref(庄筹线,30)>40 or ref(庄筹线,20)>40;aa1:=cross(庄筹线,散筹线);DRAWTEXT(AA1,70,'鸡雀升天'),color00ff00;bb:=CROSS(28,庄筹线) and 散筹线>40 and aa=1 and LLV(l ,60 )>LLV(l ,250 ); DRAWTEXT(bb,30,'决战诱空'),colorwhite;IF(bb,30,60 ),colorffcccc;135均线法则EMA13:EMA(C,13),COLORBLUE,LINETHICK2;EMA17:EMA(C,17),COLORRED,LINETHICK2;EMA34:EMA(C,34),COLORGREEN;EMA55:EMA(C,55),COLORFF00FF;EMA120:EMA(C,120),COLORFFCC66;AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'红杏出墙'),COLORYELLOW;{STICKLINE(AR6,H,L,0.5,1),COLORYELLOW;STICKLINE(AR6,O,C,6,1),LINETHICK2,COLORYELLOW;}BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR REF(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'蚂蚁上树'),COLOR00C5FF; {STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;STICKLINE(BR4 AND FILTER(BR4,10),O,C,6,1),LINETHICK2,COLOR00C5FF;}CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);{STICKLINE(CR6,H,L,0.5,1),COLORF00FF0;STICKLINE(CR6,O,C,6,1),LINETHICK2,COLORF00FF0;}DRAWTEXT(CR6,L-0.09,'红衣侠女'),COLORF00FF0;DR1:=EMA13>EMA34 AND EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);DRAWTEXT(DR8,L-0.09,'黑客点击'),COLORD6BA63;{STICKLINE(DR8,H,L,0.5,1),COLORD6BA63;STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;}ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55); DRAWTEXT(ER,L-0.09,'均线互换'),COLOR0099FF;{STICKLINE(ER,H,L,0.5,1),COLOR0099FF;STICKLINE(ER,O,C,6,1),LINETHICK2,COLOR0099FF;}FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34);DRAWTEXT(FR,L-0.09,'梅开二度'),COLORWHITE;{STICKLINE(FR,H,L,0.5,1),COLORWHITE;STICKLINE(FR,O,C,6,1),LINETHICK2,COLORWHITE;}GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'*!'),COLOR00FF00;STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55);DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'三线推进'),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),H,L,0.5,1),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),O,C,6,1),LINETHICK2,COLORFFC8FF;。
航海家旗舰版精髓指标(公式,贴图,用法)
航海家旗舰版精髓指标(公式,贴图,⽤法)⼀.智能辅助该指标是叠加到K线上显⽰中期趋势的指标,黄线上穿红线(⾦叉)显⽰中线趋势向好,黄线下穿红线(死叉)显⽰中线趋势⾛坏。
尤其是当个股进⼊主升时,智能辅助能帮助⼤家把握整个主升段!在主升段中,如何再介⼊或加仓,这就可以配合智能⽔⼿、短期波段指标来操作。
另外,当股价运⾏到智能辅助指标两条指标线附近,同时指标处于⾦叉向上状态时,也可以加⼊部分仓位!⼆.智能三⾓红三⾓画完出居,蓝三⾓画完介⼊.三.海洋寻底海洋寻底指标有两个部分组成:其中⼀个部分是⽤来清晰表现底部级别的四种颜⾊⼩柱,另⼀部分是⽤来寻找准确买⼊点的快慢线。
四⾊⼩柱主要是表现底部的级别:(1)⽩⾊的⼩底。
这样的级别的底部,应该有⼤盘同步的底部信号,⽐如“海洋状态”的信号同时出现。
当⼤盘处于底部状态时,它的稳定性是很⾼的。
(2)黄⾊的中底,中级的底部稳定性要⽐⼩底⾼多了。
但中级低部信号也⼀样的要⼤盘指标同步才是最好的。
(3)蓝⾊的⼤底。
⼤底信号出现的时候,已经脱离了⼤盘的信号的控制了。
不论在什么样的环境下出现,我们只要看到快慢线的⾦叉,都能稳定的在盘中做出买⼊的决断。
稳定性已经达到了98%以上。
如果⼤盘的信号能同步出现,那么这个指标⾦叉买⼊的成功率就更⾼了。
(4)红⾊的绝对底。
这是⼀个⾮常稳定的底部的出击信号,但⼏乎没有什么规律,是可遇不可求的机会。
当绝对底部出现,然后快慢线⾦叉的时候,就是我们在市场上获得稳定机会的时候。
四.捕捞季节捕捞季节是短期趋势,⽤两种颜⾊柱状区分基本状态:绿⾊柱状表⽰个股处于短线弱势状态,红⾊柱状表⽰个股处于短线强势状态,⽽出现异常的彩⾊柱时,显⽰个股处于⼀种短线超强的⾮理性状态。
另外⽤紫线和黄线来提⽰短线买卖点:紫线上穿黄线为捕捞⾦叉,为短线买点,紫线下穿黄线为捕捞死叉,为短线卖点。
⼀般情况下,⾦叉是波段的低点,死叉是波段的⾼点。
但这⼀波段能获利多少,从某种意义上讲,单从捕捞季节指标上看,是不能预先得知的。
【股票指标公式下载】-【大智慧】精确买卖(主力撤、主力进、趋势线、卖临界)
【大智慧】精确买卖(主力撤、主力进、趋势线、卖临界)-指标公式源码V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主力撤: IF(V4<=0,V4,0),colorblue;主力进: IF(V4>=0,V4,0),colorff00ff;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场:IF(VB>=0,VB,0),Colorred;大盘资金撤走:IF(VB<=0,VB,0),colorgreen;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线: EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金: STICKLINE(趋势线<=13,0,20,5,0),colorcc9900;aa:=(趋势线<=13) and filter((趋势线<=13),15);drawtext (aa,30,'准备现金'),colorcc9900;买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),color0099ff;bb:= (趋势线<=13 AND V12>13) and filter((趋势线<=13 AND V12>13),10) ; drawtext (bb,60,'买入股票'),color0099ff;卖临界: STICKLINE(趋势线>90 and 趋势线>ref(趋势线,1),100,95,15,1),COLORFFFF00;见顶清仓:filter(趋势线>90 and 趋势线<ref(趋势线,1) and 主力进<ref(主力进,1),8);DRAWTEXT( 见顶清仓,90,'逃顶'),coloryellow;cc:=(趋势线>=90 AND V12) and filter((趋势线>=90 AND V12),10);stickline(大盘资金进场 and 趋势线<13,0,30,10,0),colorred;stickline(大盘资金撤走 and 趋势线>90,0,30,10,0),colorgreen;stickline(主力进 and 趋势线<13,0,40,10,0),colorff00ff;stickline(主力撤 and 趋势线>90,0,40,10,0),colorblue;【大智慧】精确买卖(主力撤、主力进、趋势线、卖临界)-指标公式效果图(文档来源:若水财经社区)。
大智慧的指南针指标公式
大智慧的指南针指标公式(一共21个公式)原码1,CYW主力控盘VAR1:=CLOSE-LOW;VAR2:=HIGH-LOW;VAR3:=CLOSE-HIGH;VAR4:=IF(CLOSE>=0,(VAR1/VAR2+VAR3/VAR2)*VOL,(V AR3/V AR2+V AR 1/VAR2)*VOL); SUM(V AR4,10)/10000, COLORSTICK;2,CYW-YJJ主力控盘VAR1:=1;VAR2:=CLOSE-REF(CLOSE,1);VAR3:=IF(CLOSE-REF(CLOSE,1)>=0,V AR2,0);VAR4:=REF(CLOSE,1)-CLOSE;VAR5:=IF(CLOSE-REF(CLOSE,1)<=0,VAR4,0);VAR6:=SUM(VAR3,P1)/SUM(V AR5,P1);VAR7:=100-100/(1+VAR6);VAR8:=EMA(VAR7,P1);VAR9:=EMA(VAR8,P2);VARA:=EMA(V AR8,P3);MO: (V AR8-V ARA)*VAR1;ML: (V AR9-V ARA)*VAR1;MODE: MO*VAR1, COLORSTICK;p1:=0,100,6p2:=0,100,8p3:=0,100,453,CYS盈亏指标V ar1:=AMOUNT/(100*VOL);V ar2:=MA(V ar1,N1);V ar3:=MA(V ar1,N2);V ar4:=MA(V ar1,N3);V ar5:=DMA(CLOSE,VOL/CAPITAL);CYS5: 100*(CLOSE-V ar2)/V ar2;CYS13: 100*(CLOSE-V ar3)/V ar3;CYS34: 100*(CLOSE-V ar4)/V ar4;CYS无穷: 100*(CLOSE-V ar5)/V ar5;n1:=0,100,51n2:=0,100,13n3:=0,100,344,CYE市场趋势MAL:=MA(CLOSE,5);MAS:=MA(MA(CLOSE,20),5);CYEL:MAL-REF(MAL,1)/REF(MAL,1)*100;CYES:MAS-REF(MAS,1)/REF(MAS,1)*100;5,CYR市场强弱DIVE:=0.01*EMA(AMOUNT,N)/EMA(VOL,N);CYR:=DIVE/REF(DIVE,1)-1*100;MACYR:MA(CYR,M);n:=0,100,13m:=0,100,56,CYQKL博弈K线100*(WINNER(CLOSE)-WINNER(OPEN)), COLORSTICK;7,CYOBV优化累积能量NOBV1:SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL, 0)),N)/CAPITAL; n:=0,100,348,CYF市场能量HSL:=VOL/CAPITAL*100;CYF:100-100/(1+EMA(HSL,N)*100);n:=0,100,219,CYDD动态承接V ar1:=WINNER(CLOSE);V ar2:=DMA(V ar1,VOL/CAPITAL);V ar3:=DMA(VOL,VOL/CAPITAL)/CAPITAL;CYDD: V ar1/Var3;CYDD1: V ar2/Var3;1, POINTDOT;10,CYD2承接因子A:=WINNER(CLOSE )*CAPITAL;2承接因子:A/VOL;11,CYD承接因子CYDS:WINNER(CLOSE)/(VOL/CAPITAL);CYDN:WINNER(CLOSE)/MA(VOL/CAPITAL,N);n:=0,100,2112,CYC2成本均线CYC1:0.01*EMA(AMOUNT,n1)/EMA(VOL,n1);CYC2:0.01*EMA(AMOUNT,n2)/EMA(VOL,n2);CYC3:0.01*EMA(AMOUNT,n3)/EMA(VOL,n3);CYC∞:DMA(AMOUNT/(100*VOL),VOL/(100*FINANCE(7))); n1:=0,100,5n2:=0,100,13n3:=0,100,3413,CYC1成本均线V ar1:=AMOUNT/(100*VOL);短线成本均线: MA(V ar1,N1);中线成本均线: MA(V ar1,N2);长线成本均线: MA(V ar1,N3);无穷成本均线: DMA(CLOSE,VOL/CAPITAL);STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa; STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb; STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc; STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;STICKLINE(close>open,close,open,9,0 ),COLOr6666cc; STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd; STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee; STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff; STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff; STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc; STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc; n1:=0,100,5n2:=0,100,13n3:=0,100,34314,CYB优化布林线MB: MA(CLOSE,N);上轨: MB+STD(CLOSE,N);下轨: MB-STD(CLOSE,N);上极限: MB+2*STD(CLOSE,N);下极限: MB-2*STD(CLOSE,N);STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa; STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb; STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc; STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;STICKLINE(close>open,close,open,9,0 ),COLOr6666cc; STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd;STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee; STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff; STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff; STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc; STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc; n:=0,100,1315,CMACD指标V ar1:=AMOUNT/(100*VOL);V ar2:=MA(V ar1,N1);V ar3:=MA(V ar1,N2);CMACD: 100*(V ar2-V ar3)/V ar3, COLORSTICK;n1:=0,100,5n2:=0,100,1316,CBXQD成本均线V ar1:=AMOUNT/(100*VOL);V ar2:=MA(V ar1,N1);V ar3:=MA(V ar1,N2);4V ar4:=MA(V ar1,N3);V ar5:=DMA(CLOSE,VOL/CAPITAL);CYR5: 100*(V ar2-REF(V ar2,N))/REF(V ar2,N);CYR13: 100*(V ar3-REF(V ar3,N))/REF(V ar3,N);CYR34: 100*(V ar4-REF(V ar4,N))/REF(V ar4,N);CYR无穷: 100*(V ar5-REF(V ar5,N))/REF(V ar5,1);n:=0,100,4n1:=0,100,5n2:=0,100,13n3:=0,100,3417,CBW成本带宽CBW: 100*(COST(N1)-COST(N2))/COST(N1);n1:=0,100,98n2:=0,100,218,CBAND布林线宽V ar1:=MA(CLOSE,N);V ar2:=V ar1+2*STD(CLOSE,N);变盘: 5, POINTDOT;布林宽度: (V ar2-V ar1)/V ar1*100;警戒: 30, POINTDOT;n;=5,100,3020,指南针CYE顶部: 4,COLORBLUE;强势: 1,COLORRED;弱势: -1,colorf00ff0;底部: -4,COLORWHITE;短期趋势:(MA(CLOSE,5)-REF(MA(CLOSE,5),1))/REF(MA(CLOSE,5),1)*100,COLORWH ITE,LINETHICK2; 中期趋势:(MA(MA(CLOSE,13),5)-REF(MA(MA(CLOSE,13),5),1))/REF(MA(MA(CLOSE, 13),5),1)*100,colorf00ff0,LINETHICK2;长期趋势:(MA(MA(CLOSE,34),5)-REF(MA(MA(CLOSE,34),5),1))/REF(MA(MA(CLOSE, 34),5),1)*100,COLORRED,LINETHICK2;521,0amaV ar1:=SMA("AMOUNT",10,1)/10000000;V ar2:=REF(V ar1,1);AA: STICKLINE(V ar1>Var2,V ar1,V ar2,8,1),COLORRED; AD: STICKLINE(V ar1<V ar2,V ar1,V ar2,8,0),COLORGREEN; C5: DMA(SMA(Var1,3,1),VOL/0.02/CAPITAL); C13: DMA(SMA(Var1,5,1),VOL/0.1/CAPITAL); C34: DMA(SMA(Var1,8,1),VOL/0.18/CAPITAL); ∞: DMA(V ar1,VOL/1.1/CAPITAL);6。
【股票指标公式下载】-【大智慧】全屏看盘(涨跌、行情、涨幅、量比)
【大智慧】全屏看盘(涨跌、行情、涨幅、量比)-指标公式源码{画矩形}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;【大智慧】全屏看盘(涨跌、行情、涨幅、量比)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】天游牛(特大买单、中单买、特大买入)
【股票指标公式下载】-【⼤智慧】天游⽜(特⼤买单、中单买、特⼤买⼊)【⼤智慧】天游⽜(特⼤买单、中单买、特⼤买⼊)-指标公式源码INPUT: 天前(5,1,500);VAR3:=天前;POLYLINE(CLOSE,40),LINETHICK0,LAYER0,COLOR222222;POLYLINE(CLOSE,30),LINETHICK0,LAYER0,COLOR222222;POLYLINE(CLOSE,20),LINETHICK0,LAYER0,COLOR222222;POLYLINE(CLOSE,10),LINETHICK0,LAYER0,COLOR222222;VAR0:=BARSLAST(DISPSTATUS=1);VAR1:=HHVALL(VAR0);VAR2:=IF(VAR1 < 120,VAR1,0);VAR4:=VAR1 - VAR0;VAR5:=HHVALL(IF(VAR4=VAR3,DATE,0));VAR6:=NUMTOSTRN(VAR3,0);VAR7:=' ' + VAR6;VAR8:=VAR7 + '天前';DRAWTEXT(VAR4=VAR3,50,VAR8),LAYER0,COLORWHITE;DRAWRECTREL(-150,1200,0,-100,1),COLORBLACK;TODAY:=DYNAINFO(7)=CLOSE and DYNAINFO(10)=AMOUNT AND TIME0<55800; {判断是否当天}TB1:=BIGORDER(1,3);TB2:="[email=DDEDATA@BIGORDER]DDEDATA@BIGORDER"(1, 3[/email]);TB:=IF(TODAY,TB2,TB1);{特⼤买单}TS1:=BIGORDER(2,3);TS2:="[email=DDEDATA@BIGORDER]DDEDATA@BIGORDER"(2, 3[/email]);TS:=IF(TODAY,TS2,TS1);{特⼤卖单}DB1:=BIGORDER(1,2);DB2:="[email=DDEDATA@BIGORDER]DDEDATA@BIGORDER"(1, 2[/email]);DB:=IF(TODAY,DB2,DB1);{⼤单买}DS1:=BIGORDER(2,2);DS2:="[email=DDEDATA@BIGORDER]DDEDATA@BIGORDER"(2, 2[/email]);DS:=IF(TODAY,DS2,DS1);{⼤单卖}ZB1:=BIGORDER(1,1);ZB2:="[email=DDEDATA@BIGORDER]DDEDATA@BIGORDER"(1, 1[/email]);ZB:=IF(TODAY,ZB2,ZB1);{中单买}ZS1:=BIGORDER(2,1);ZS2:="[email=DDEDATA@BIGORDER]DDEDATA@BIGORDER"(2, 1[/email]);ZS:=IF(TODAY,ZS2,ZS1);{中单卖}VAR9:=TB * AMOUNT/10000;{特⼤买单W元}VAR10:=TS * AMOUNT/10000;{特⼤卖单W元}VAR11:=(DB - TB) * AMOUNT/10000;{⼤户买单W元}VAR12:=(DS - TS) * AMOUNT/10000;{⼤户卖单W元}VAR13:=(ZB - DB) * AMOUNT/10000;{中户买单W元}VAR14:=(ZS - DS) * AMOUNT/10000;{中户卖单W元}VAR15:=(1 - ZB) * AMOUNT/10000;{散户买单W元}VAR16:=(1 - ZS) * AMOUNT/10000;{散户卖单W元}特净:VAR9 - VAR10,LINETHICK0,PRECIS2,COLORMAGENTA;⼤净:VAR11 - VAR12,LINETHICK0,PRECIS2,COLOR0048FF;中净:VAR13 - VAR14,LINETHICK0,PRECIS2,COLORYELLOW;⼩净:VAR15 - VAR16,LINETHICK0,PRECIS2,COLOR22FF26;VAR17:=DB * AMOUNT/10000;{⼤单买w元}VAR18:=DS * AMOUNT/10000;{⼤单卖w元}VAR19:=VAR17 - VAR18;{⼤单净额}VAR20:=IF(DISPSTATUS=2,SUM(特净,VAR3),0);VAR21:=IF(HHVALL(VAR20) > 0,HHVALL(VAR20),LLVALL(VAR20)); DRAWTEXT(VAR4=VAR3,50,'超:' + STRRIGHT(' ' + NUMTOSTRN(VAR21,0),8) + '万 '),LAYER0,ALIGN2,COLORMAGENTA; DRAWTEXT(VAR4=VAR3 AND VAR21 < 0,50,'' + STRRIGHT(' ' + NUMTOSTRN(VAR21,0),8) + '万 '),LAYER0,ALIGN2,COLORAAAAAA;VAR22:=IF(DISPSTATUS=2,SUM(⼤净,VAR3),0);VAR23:=IF(HHVALL(VAR22) > 0,HHVALL(VAR22),LLVALL(VAR22)); DRAWTEXT(VAR4=VAR3,47.5,'⼤:' + STRRIGHT(' ' +NUMTOSTRN(VAR23,0),8) + '万 '),LAYER0,ALIGN2,COLOR0048FF; DRAWTEXT(VAR4=VAR3 AND VAR23 < 0,47.5,'' + STRRIGHT(' ' + NUMTOSTRN(VAR23,0),8) + '万 '),LAYER0,ALIGN2,COLORAAAAAA;VAR24:=IF(DISPSTATUS=2,SUM(中净,VAR3),0);VAR25:=IF(HHVALL(VAR24) > 0,HHVALL(VAR24),LLVALL(VAR24));DRAWTEXT(VAR4=VAR3,45,'中:' + STRRIGHT(' ' + NUMTOSTRN(VAR25,0),8) + '万'),LAYER0,ALIGN2,COLORYELLOW; DRAWTEXT(VAR4=VAR3 AND VAR25 < 0,45,'' + STRRIGHT(' ' + NUMTOSTRN(VAR25,0),8) + '万 '),LAYER0,ALIGN2,COLORAAAAAA;VAR26:=IF(DISPSTATUS=2,SUM(⼩净,VAR3),0);VAR27:=IF(HHVALL(VAR26) > 0,HHVALL(VAR26),LLVALL(VAR26)); DRAWTEXT(VAR4=VAR3,42.5,'⼩:' + STRRIGHT(' ' + NUMTOSTRN(VAR27,0),8) + '万 '),LAYER0,ALIGN2,COLOR22FF26; DRAWTEXT(VAR4=VAR3 AND VAR27 < 0,42.5,'' + STRRIGHT(' ' + NUMTOSTRN(VAR27,0),8) + '万 '),LAYER0,ALIGN2,COLORAAAAAA;VAR28:=ABS(VAR21) + ABS(VAR23) + ABS(VAR25) + ABS(VAR27);VAR29:=(VAR0 - 天前)/(VAR0 + 2) * 1000;VAR30:=IF(VAR21 > 0,VAR29 - VAR21/VAR28 * 400,VAR29);VAR31:=IF(VAR21 < 0,VAR29 - ABS(VAR21)/VAR28 * 400,VAR29);VAR32:=IF(VAR23 > 0,VAR29 - VAR23/VAR28 * 400,VAR29);VAR33:=IF(VAR23 < 0,VAR29 - ABS(VAR23)/VAR28 * 400,VAR29);VAR34:=IF(VAR25 > 0,VAR29 - VAR25/VAR28 * 400,VAR29);VAR35:=IF(VAR25 < 0,VAR29 - ABS(VAR25)/VAR28 * 400,VAR29);VAR36:=IF(VAR27 > 0,VAR29 - VAR27/VAR28 * 400,VAR29);VAR37:=IF(VAR27 < 0,VAR29 - ABS(VAR27)/VAR28 * 400,VAR29);DRAWRECTREL(VAR30,48,VAR29,35,16711900),COLORBLACK;DRAWRECTREL(VAR31,48,VAR29,35,13107200),COLORBLACK;DRAWRECTREL(VAR32,98,VAR29,85,16711900),COLORBLACK;DRAWRECTREL(VAR33,98,VAR29,85,13107200),COLORBLACK;DRAWRECTREL(VAR34,145,VAR29,133,16711900),COLORBLACK;DRAWRECTREL(VAR35,145,VAR29,133,13107200),COLORBLACK;DRAWRECTREL(VAR36,193,VAR29,180,16711900),COLORBLACK;DRAWRECTREL(VAR37,193,VAR29,180,13107200),COLORBLACK;VAR38:=AMOUNT * TB;{特⼤买⼊}VAR39:=AMOUNT * (DB - TB);{⼤户买⼊}VAR40:=AMOUNT * (ZB - DB);{中户买⼊}VAR41:=AMOUNT * (1 - ZB);{散户买⼊}VAR42:=VAR38 + VAR39 + VAR40 + VAR41;VAR43:=AMOUNT * TS;{特⼤卖出}VAR44:=AMOUNT * (DS- TS);{⼤户卖出}VAR45:=AMOUNT * (ZS - DS);{中户卖出}VAR46:=AMOUNT * (1 - ZS);{散户卖出}VAR47:=(DB - DS) * VOL/CAPITAL * 100;VAR48:=VAR38/VAR42;VAR49:=VAR39/VAR42;VAR50:=VAR40/VAR42;VAR51:=VAR41/VAR42;VAR52:=VAR48 * 100;VAR53:=VAR49 * 100;VAR54:=VAR50 * 100;VAR55:=VAR51 * 100;VAR56:=SUM(特净,VAR2);VAR57:=(HHVALL(VAR56 + 特净) - LLVALL(VAR56 + 特净))/9; VAR58:=40 - LLVALL((VAR56 + 特净)/VAR57); VAR59:=SUM(⼤净,VAR2);VAR60:=(HHVALL(VAR59 + ⼤净) - LLVALL(VAR59 + ⼤净))/9; VAR61:=30 - LLVALL((VAR59 + ⼤净)/VAR60); VAR62:=SUM(中净,VAR2);VAR63:=(HHVALL(VAR62 + 中净) - LLVALL(VAR62 + 中净))/9; VAR64:=20 - LLVALL((VAR62 + 中净)/VAR63); VAR65:=SUM(⼩净,VAR2);VAR66:=(HHVALL(VAR65 + ⼩净) - LLVALL(VAR65 + ⼩净))/9; VAR67:=10 - LLVALL((VAR65 + ⼩净)/VAR66); VAR68:=10/HHVALL(ABS(VAR19));VERTLINE(VAR4=VAR3,1),LAYER0,COLORBLACK;VERTLINE(VAR4=VAR3,2),LAYER0,COLORWHITE;DRAWTEXT(DISPSTATUS=1,HHVALL(REF(VAR56/VAR57 +VAR58,VAR0)),'O.OO-'),LINETHICK2,LAYER0,ALIGN2,COLOR000088;DRAWTEXT(DISPSTATUS=1,HHVALL(REF(VAR59/VAR60 +VAR61,VAR0)),'0.00-'),LINETHICK2,LAYER0,ALIGN2,COLOR000088;DRAWTEXT(DISPSTATUS=1,HHVALL(REF(VAR62/VAR63 +VAR64,VAR0)),'0.00-'),LINETHICK2,LAYER0,ALIGN2,COLOR000088;DRAWTEXT(DISPSTATUS=1,HHVALL(REF(VAR65/VAR66 +VAR67,VAR0)),'0.00-'),LINETHICK2,LAYER0,ALIGN2,COLOR000088;DRAWRECTREL(1,1200,30,0,1),LAYER0,COLORBLACK;POLYLINE(CLOSE,VAR56/VAR57 + VAR58),LAYER0,COLOR18A4FF; STICKLINE(特净 > 0,VAR56/VAR57 + VAR58, (VAR56 + 特净)/VAR57 + VAR58,2,0),LAYER0,COLORRED;STICKLINE(特净 < 0,VAR56/VAR57 + VAR58,(VAR56 + 特净)/VAR57 + VAR58,2,0),LAYER0,COLORCYAN; POLYLINE(CLOSE,VAR59/VAR60 + VAR61),LAYER0,COLOR18A4FF; STICKLINE(⼤净 > 0,VAR59/VAR60 + VAR61, (VAR59 + ⼤净)/VAR60 + VAR61,2,0),LAYER0,COLORRED;STICKLINE(⼤净 < 0,VAR59/VAR60 + VAR61,(VAR59 + ⼤净)/VAR60 + VAR61,2,0),LAYER0,COLORCYAN; POLYLINE(CLOSE,VAR62/VAR63 + VAR64),LAYER0,COLOR18A4FF; STICKLINE(中净 > 0,VAR62/VAR63 + VAR64, (VAR62 + 中净)/VAR63 + VAR64,2,0),LAYER0,COLORRED;STICKLINE(中净 < 0,VAR62/VAR63 + VAR64,(VAR62 + 中净)/VAR63 + VAR64,2,0),LAYER0,COLORCYAN; POLYLINE(CLOSE,VAR65/VAR66 + VAR67),LAYER0,COLOR18A4FF; STICKLINE(⼩净 > 0,VAR65/VAR66 + VAR67, (VAR65 + ⼩净)/VAR66 + VAR67,2,0),LAYER0,COLORRED;STICKLINE(⼩净 < 0,VAR65/VAR66 + VAR67,(VAR65 + ⼩净)/VAR66 + VAR67,2,0),LAYER0,COLORCYAN;VAR69:=SUM(VAR19,VAR2);VAR70:=(HHVALL(VAR69) - LLVALL(VAR69))/8.5;VAR71:=0 - LLVALL(VAR69/VAR70);POLYLINE(CLOSE,VAR69/VAR70 + VAR71 + 0.8),LAYER0,COLOR18A4FF; STICKLINE(VAR19 < 0,REVERSE(VAR19) * VAR68,0,3,0),COLORGREEN; STICKLINE(VAR19 > 0,VAR19 * VAR68,0,3,0),COLORRED;0.01,LAYER0,COLORBLACK;DRAWFLAGTEXT(特净 > 0,35,'当⽇特单买⼊:' + NUMTOSTRN(特净,0) + '万'),COLORRED;DRAWFLAGTEXT(特净 < 0,35,'当⽇特单卖出;' + NUMTOSTRN(特净,0) + '万'),COLORCYAN;DRAWFLAGTEXT(⼤净 > 0,35,'当⽇⼤单买⼊:' + NUMTOSTRN(⼤净,0) + '万'),COLORRED;DRAWFLAGTEXT(⼤净 < 0,35,'当⽇⼤单卖出:' + NUMTOSTRN(⼤净,0) + '万'),COLORCYAN;DRAWFLAGTEXT(中净 > 0,35,'当⽇中单买⼊:' + NUMTOSTRN(中净,0) + '万'),COLORRED;DRAWFLAGTEXT(中净 < 0,35,'当⽇中单卖出:' + NUMTOSTRN(中净,0) + '万'),COLORCYAN;DRAWFLAGTEXT(⼩净 > 0,35,'当⽇⼩单买⼊:' + NUMTOSTRN(⼩净,0) + '万'),COLORRED;DRAWFLAGTEXT(⼩净 < 0,35,'当⽇⼩单卖出:' + NUMTOSTRN(⼩净,0) + '万'),COLORCYAN;DRAWFLAGTEXT(VAR19 > 0,35,'当⽇机构买⼊:' + NUMTOSTRN(VAR19,0) + '万'),COLORRED;DRAWFLAGTEXT(VAR19 < 0,35,'当⽇机构卖出:' + NUMTOSTRN(VAR19,0) + '万'),COLORCYAN;DRAWTEXTREL(28,10,'超户'),LAYER0,COLORMAGENTA;DRAWTEXTREL(28,210,'⼤户'),LAYER0,COLOR0048FF;DRAWTEXTREL(28,410,'中户'),LAYER0,COLORYELLOW;DRAWTEXTREL(28,610,'散户'),LAYER0,COLOR22FF26;DRAWTEXTREL(28,810,'资⾦'),LAYER0,COLORWHITE;DRAWRECTREL(0,180,VAR52 * 7,142,16711935),COLORBLACK; DRAWRECTREL(0,380,VAR53 * 7,342,255),COLORBLACK;DRAWRECTREL(0,580,VAR54 * 7,542,65535),COLORBLACK; DRAWRECTREL(0,780,VAR55 * 7,742,65280),COLORBLACK;DRAWTEXTREL(VAR52 * 7 + 2,142,'' + NUMTOSTRN(VAR52,0) +'%'),LAYER0,COLORMAGENTA;DRAWTEXTREL(VAR53 * 7 + 2,342,'' + NUMTOSTRN(VAR53,0) +'%'),LAYER0,COLOR0048FF;DRAWTEXTREL(VAR54 * 7 + 2,542,'' + NUMTOSTRN(VAR54,0) +'%'),LAYER0,COLORYELLOW;【⼤智慧】天游⽜(特⼤买单、中单买、特⼤买⼊)-指标公式效果图(⽂档来源:若⽔财经社区)。
官方卖16800的航海家公式
官方卖16800的航海家公式(大智慧版)(本源码来自互联网)一、捕捞季节(大智慧版)WY1001:=(2*CLOSE+HIGH+LOW)/3;WY1002:=EMA(WY1001,3);WY1003:=EMA(WY1002,3);WY1004:=EMA(WY1003,3);XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;STICKLINE(XYS0>=0,XYS0,0,2,0),COLORRED;STICKLINE(XYS0<0,XYS0,0,2,0),COLORGREEN;PJGJ:=AMOUNT/VOL/100;SSRYDJX:=MA(PJGJ,13);SSRCJL:=EMA(VOL,13);SSRCJE:=EMA(AMOUNT,13);SSRCBJX:=SSRCJE/SSRCJL/100;CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;XYSHSL:=EMA(VOL/CAPITAL*100,13);ZZX:0,COLORWHITE;STICKLINE(XYSHSL>6.1 AND CYS13>5 ,2 ,0 ,2,0 ),COLORGREEN;STICKLINE(XYSHSL>3.8 AND CYS13>5 ,1.5 ,0 ,2 ,0 ),COLORYELLOW;STICKLINE(XYSHSL>2.1 AND CYS13>5 ,1 ,0 ,2,0 ),COLORCY AN;STICKLINE(XYSHSL>1.8 AND CYS13>5 ,0.5 ,0 ,2,0 ),COLORBLUE;XYS1:MA(XYS0,1);XYS2:MA(XYS0,2);指标说明:据说是航海家旗舰版里一个非常有用的指标.低位金叉买进,高位死叉卖出,绿色转红色为弱势转强势.强势状态再发出金叉信号可理解为空中加油(也有可能出现震荡趋势,请配合其他指标一起用.初学者应该只选择低位金叉进场)二、飞鱼出水(大智慧版)Var1:=REF(LOW,1);Var2:=SMA(ABS(LOW-Var1),3,1)/SMA(MAX(LOW-Var1,0),3,1)*100;Var3:=EMA(IF(CLOSE*1.2,Var2*10,Var2/10),3);Var4:=LLV(LOW,38);Var5:=HHV(Var3,38);Var6:=IF(LLV(LOW,90),1,0);Var7:=EMA(IF(LOW<=Var4,(Var3+Var5*2)/2,0),3)/618*Var6;底部吸筹: STICKLINE(Var7,0,Var7,6,1),colorwhite ;v1:=llv(h,240);飞鱼:100*(c-v1)/v1,COLORRED,linethick1;v2:=hhv(h,240);海洋:100*(v2-c)/c,COLORGREEN,linethick1;v3:=sum(VOL,5)/CAPITAL;cyf5:=100-(100/(1+v3));动力线:cyf5*3.21,COLORYELLOW,linethick1;指标说明:可理解为多空分界线.红色线向上代表多空力量正在转强.绿色线向上代表空方力量转强.反之,绿色线在上方向下代表多方力量转强,红色线由上向下代表空方力量转强.下方的小方格代表主力吸筹.三、海洋寻底(大智慧版){P1 2 20 缺省:5P2 2 20 缺省:4}SSRCJL:=EMA(VOL,13);SSRCJE:=EMA(AMOUNT,13);SSRCBJX:=((SSRCJE / SSRCJL) / 100);SSRGL:=(((CLOSE - SSRCBJX) / SSRCBJX) * 100);绝对底:=SSRGL<(0-18);大底:=SSRGL<(0-14);中底:=SSRGL<(0-10);短底:=SSRGL<(0-6);STICKLINE((SSRGL < (0 - 18)),60,80,3,0),COLORRED;STICKLINE((SSRGL < (0 - 14)),40,60,3,0),COLORBLUE;STICKLINE((SSRGL < (0 - 10)),20,40,3,0),COLORYELLOW;STICKLINE((SSRGL < (0 - 6)),0,20,3,0),COLORWHITE;高卖:80, POINTDOT,COLORRED;低吸:20, POINTDOT,COLORGREEN;V AR1:=LLV(LOW,P1);V AR2:=HHV(HIGH,P1);K: EMA((CLOSE-VAR1)/(V AR2-VAR1)*100,P2),COLORRED,LINETHICK2;D: EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN,LINETHICK2;指标说明:一种颜色为短底,两种颜色为中底,三种颜色为大底,四种颜色为绝对底..另外还有两根是牛马线.当各种底部信号出现之后配合牛马双线,牛线上穿马线时也可为买入信号.反之,牛线下穿马线为卖出信号.用法跟捕捞季节一样四、海洋追涨(大智慧版)HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:=(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3 )+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+ 9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3 *REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+REF(HHJSJDA,20))/210;HHJSJDC:=MA(HHJSJDB,5);QQ1:=MA(MA(CLOSE,3),3);QQ2:=MA(MA(CLOSE,15),9);XYSQS1:=(QQ1-REF(QQ1,1))/REF(QQ1,1)*100;XYSQS2:=(QQ2-REF(QQ2,1))/REF(QQ2,1)*100;XYSHSL:=EMA(VOL/CAPITAL*100,13);STICKLINE(XYSQS2>=REF(XYSQS2,1)AND XYSHSL>1,0,40,2,0),COLORYELLOW; STICKLINE(XYSQS2>=REF(XYSQS2,1)AND XYSHSL>1 AND C>HHJSJDB AND HHJSJDB>HHJSJDC,41,88,2,0),COLORRED;IF(XYSQS2>=REF(XYSQS2,1) AND XYSHSL>1,XYSQS1*178,0);五、水手突破(大智慧版)上趋势:MA(LOW,20)*1.2,COLORMAGENTA,CROSSDOT;次上趋势:MA(LOW,20)*1.1,COLORYELLOW;次下趋势:MA(HIGH,20)*0.9,COLORWHITE;下趋势:MA(HIGH,20)*0.8,COLORGREEN,CROSSDOT;ZD:=(C-REF(C,1))/REF(C,1)*100;HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势AND C<次上趋势,2,IF(C<下趋势,0,1)));STICKLINE(趋势强度=0,H,L,6,1),COLORBLUE;STICKLINE(趋势强度=1,H,L,6,1),COLORGREEN;STICKLINE(趋势强度=2,H,L,6,1),COLORGRAY;STICKLINE(趋势强度=3,H,L,6,1),COLORYELLOW;STICKLINE(趋势强度=4,H,L,6,1),COLORMAGENTA;STICKLINE(趋势强度=0,C,O,5,0),COLORBLUE;STICKLINE(趋势强度=1,C,O,5,0),COLORGREEN;STICKLINE(趋势强度=2,C,O,5,0),COLORGRAY;STICKLINE(趋势强度=3,C,O,5,0),COLORYELLOW;STICKLINE(趋势强度=4,C,O,5,0),COLORMAGENTA;指标说明:选股票时可选次上趋势跟上趋势的股票来做的话就比较保险.六、智能辅助(主)(大智慧版)MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID, 6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17) +2*REF(MID,18)+REF(MID,20))/210,COLORYELLOW;马线:MA(牛线,6),COLORRED;Varr1:=SMA(MAX(CLOSE-ref(c,1),0),12,1)/SMA(ABS(CLOSE-ref(c,1)),15,1)*100;DRAWICON(CROSS(82,Varr1),HIGH,2);DRAWTEXT(CROSS(82,Varr1),high,'快卖↓'),coloryellow;DRAWTEXTABS(10,10,STKLABEL+' '+STKNAME+' '+BKNAME),COLOR00FFFF;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);DRAWTEXT(filter(买=1,5),LOW-0.03,'拉升'),ColorFFDE00;{顶底信号}DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;DRAWTEXT(CROSS(Da-db,0),L*0.98,'★B'),COLORRED;JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;DRAWTEXT(CROSS(84,JH),H*1.02,'☆S'),COLORGREEN;{涨跌停显示}涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);STICKLINE(涨停,O,C,2,0),COLORRED;跌停:=IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);STICKLINE(跌停,O,C,2,1),COLORGREEN;N:=20;总股本(亿):FINANCE2(35)/10000,COLORYELLOW,LINETHICK0;流通(亿):FINANCE2(37)/10000,COLORFFFFFF,LINETHICK0;均价:=(3*C+H+L+O)/6;VAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;SZ1:=REF(VAR1,1)=REF(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1) AND H/VAR1<1.1 AND L>VAR2 AND CLOSE>VAR1;SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) AND H/VAR1>1.1;SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1) AND CLOSE>VAR2 AND CLOSE<VAR1;SZ5:=(VAR1>VAR2 AND VAR2>REF(VAR2,1) AND VAR1<>REF(VAR1,1) AND CLOSE<VAR2) OR (VAR1>VAR2 AND VAR1<REF(VAR1,1) AND VAR2<REF(VAR2,1) AND CLOSE<VAR2);;SZ6:=REF(VAR1,1)>REF(VAR2,1) AND VAR1=VAR2 AND CLOSE<VAR2;XD1:=VAR1=VAR2 AND CLOSE<VAR2 OR (VAR1<REF(VAR1,1) AND VAR2<REF(VAR2,1) ANDREF(VAR1,1)=REF(VAR2,1) AND CLOSE<VAR2);XD2:=VAR1=VAR2 AND CLOSE>VAR1;SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));量能饱和度:=IF(SAT>1,1,SAT)*100;IF BARSTATUS=2 AND SZ1 THEN BEGINDRAWTEXTABS(320,25,'调整结束短线介入'),COLORRED;ENDELSEIF BARSTATUS=2 AND SZ2 THEN BEGINDRAWTEXTABS(320,25,'上升通道走势良好'),COLORRED;ENDELSEIF BARSTATUS=2 AND SZ3 THEN BEGINDRAWTEXTABS(320,25,'股价偏离注意调整'),COLORRED;ENDELSEIF BARSTATUS=2 AND SZ4 THEN BEGINDRAWTEXTABS(320,25,'上升通道调整洗盘'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND SZ5 THEN BEGINDRAWTEXTABS(320,25,'转向特征注意离场'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND SZ6 THEN BEGINDRAWTEXTABS(320,25,'通道改变坚决离场'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND XD1 THEN BEGINDRAWTEXTABS(320,25,'下跌通道只宜观望'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND XD2 THEN BEGINDRAWTEXTABS(320,25,'短期底部准备进入'),COLORYELLOW;END;指标说明:黄色线上穿红色线为下降趋势转入上升趋势中..另外这两根智能辅助线也可为支撑线.破线.后势看跌!七、主力追踪(大智慧版)MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;主力:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;指标说明:主力资金的进出.一眼便看明白..选主力追踪向上的股票做。
【股票指标公式下载】-【大智慧】八仙过海(金叉、买卖差、换手)
【大智慧】八仙过海(金叉、买卖差、换手)-指标公式源码DRAWTEXTREL( 0,10,'八仙过海-副图指标' ),COLORYELLOW; DRAWTEXTREL( 0,100,'指标用法:八条横线代表八个指标,当天有四个以上红箭头为多头,反之为空头' ),ColorFFAA00;100,PRECIS0;DIFF:=EMA(CLOSE,6)-EMA(CLOSE,8);DEA:=EMA(DIFF,3);MCDA金叉:DIFF>DEA,LINETHICK0,PRECIS0;DRAWTEXT(DIFF>DEA,80,'▲'),colorRED,linethick1;DRAWTEXT(DIFF<DEA,80,'▼'),COLORgreen,linethick1;RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);KDJ金叉:K>D,LINETHICK0,PRECIS0;DRAWTEXT(K>D,70,'▲'),colorRED,linethick1;DRAWTEXT(K<D,70,'▼'),COLORgreen,linethick1;LC:=REF(CLOSE,1);RSI1:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;RSI2:=(SMA(MAX(CLOSE-LC,0),4,1))/(SMA(ABS(CLOSE-LC),4,1))*100;RSI金叉:RSI1>RSI2,LINETHICK0,PRECIS0;DRAWTEXT(RSI1>RSI2,60,'▲'),colorRED,linethick1;DRAWTEXT(RSI1<RSI2,60,'▼'),COLORgreen,linethick1;RSV:=-(HHV(HIGH,8)-CLOSE)/(HHV(HIGH,8)-LLV(LOW,8))*100;LWR1:=SMA(RSV,5,1);LWR2:=SMA(LWR1,5,1);LWR金叉:LWR1>LWR2,LINETHICK0,PRECIS0;DRAWTEXT(LWR1>LWR2,50,'▲'),colorRED,linethick1;DRAWTEXT(LWR1<LWR2,50,'▼'),COLORgreen,linethick1;BBI:=(MA(CLOSE,5)+MA(CLOSE,6)+MA(CLOSE,8)+MA(CLOSE,3))/4;BBI金叉:CLOSE>BBI,LINETHICK0,PRECIS0;DRAWTEXT(CLOSE>BBI,40,'▲'),colorRED,linethick1;DRAWTEXT(CLOSE<BBI,40,'▼'),COLORgreen,linethick1;MTM:=CLOSE-REF(CLOSE,1);MMS:=100*EMA(EMA(MTM,3),5)/EMA(EMA(ABS(MTM),3),5);MMM:=100*EMA(EMA(MTM,8),6)/EMA(EMA(ABS(MTM),8),6);MTM金叉:MMS>MMM,LINETHICK0,PRECIS0;DRAWTEXT(MMS>MMM,30,'▲'),colorRED,linethick1;DRAWTEXT(MMS<MMM,30,'▼'),COLORgreen,linethick1;WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);买盘:=(V9+V8);卖盘:=(V6+V7);买卖差:=买盘-卖盘;DDX:=买卖差;DX:=MA(买卖差,5)*20;DDX1:=SMA(DX,3,1);DDX2:=SMA(DDX1,3,1);DDX3:=(5*DDX2+4*REF(DDX2,1)+3*REF(DDX2,2)+2*REF(DDX2,3)+REF(DDX2,4))/ 15;DDX金叉:DDX1>DDX2,LINETHICK0,PRECIS0;DRAWTEXT(DDX1>DDX2,20,'▲'),colorRED,linethick1;DRAWTEXT(DDX1<DDX2,20,'▼'),COLORgreen,linethick1;量:=V;换手:=V/CAPITAL*100;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买盘1:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLO SE-LOW)),VOL/2));卖盘1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR 1*(HIGH-LOW),0-VOL/2));DLX:=(买盘1-(-卖盘1))/量*换手;DLX1:=SUM(DLX,6);DLX2:=MA(DLX1,5);VOL金叉:DLX1>DLX2,LINETHICK0,PRECIS0;DRAWTEXT(DLX1>DLX2,10,'▲'),colorRED,linethick1;DRAWTEXT(DLX1<DLX2,10,'▼'),COLORgreen,linethick1;0,PRECIS0;总分:MCDA金叉*10+KDJ金叉*15+RSI金叉*15+LWR金叉*5+BBI金叉*15+MTM金叉*10+DDX金叉*15+VOL金叉*15,LINETHICK0,PRECIS0;【大智慧】八仙过海(金叉、买卖差、换手)-指标公式效果图(文档来源:若水财经社区)。
【炒股必备】大智慧超级资金指标公式
大智慧超级资金指标公式{N(0,100,21)}散户套牢:(100 * (1 - WINNER(CLOSE))),colorFFFFFF,LINETHICK4;STICKLINE((CLOSE > 1),散户套牢,0,0.5,0),colorFFFFFF;KDCM:=(100 * WINNER(CLOSE));主力控盘:KDCM,STICK,colorAA0033,linethick4;STICKLINE((CLOSE > 1),KDCM,0,8,1),LINETHICK2,colorAA0033;STICKLINE((CLOSE > 1),KDCM,0,7,0),color330000;STICKLINE((CLOSE > 1),KDCM,0,6,0),color440011;STICKLINE((CLOSE > 1),KDCM,0,5,0),color550022;STICKLINE((CLOSE > 1),KDCM,0,4,0),color660033;STICKLINE((CLOSE > 1),KDCM,0,3,0),color770044;STICKLINE((CLOSE > 1),KDCM,0,2,0),color880055;STICKLINE((CLOSE > 1),KDCM,0,1,0),color990066;DDCM:=EMA((100 * WINNER(CLOSE)),13);STICKLINE(((CLOSE > 1) AND (DDCM < KDCM)),KDCM,DDCM,8,1),LINETHICK2,colorAA0033;STICKLINE(((CLOSE > 1) AND (DDCM < KDCM)),KDCM,DDCM,7,0),colorFF0000; STICKLINE(((CLOSE > 1) AND (DDCM < KDCM)),KDCM,DDCM,6,0),color11FF00; STICKLINE(((CLOSE > 1) AND (DDCM < KDCM)),KDCM,DDCM,5,0),color22FF00; STICKLINE(((CLOSE > 1) AND (DDCM < KDCM)),KDCM,DDCM,4,0),color33FF00; STICKLINE(((CLOSE > 1) AND (DDCM < KDCM)),KDCM,DDCM,3,0),color44FF00; STICKLINE(((CLOSE > 1) AND (DDCM < KDCM)),KDCM,DDCM,2,0),color55FF00; STICKLINE(((CLOSE > 1) AND (DDCM < KDCM)),KDCM,DDCM,1,0),color66FF00; DRAWICON((KDCM < 2),0,10);VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR2:=2*ABS(VAR1);底部资金: IF(VAR1<0,VAR2,0),COLOR00FFFF, LINESTICK;获利平均值:=MA(COST(99),5);获利99:=MA(COST(80),5);获利80:=MA(CLOSE,5);均线5日:=MA(COST(20),5);获利20:=MA(COST(1),5);获利1:=(((获利平均值- 获利99) / 获利99) * 100);A1:=(((获利99 - 均线5日) / 均线5日) * 100);A2:=(((均线5日- 获利20) / 获利20) * 100);AA3:=IF((A1 < 10),100,0);A4:=IF((A1 < 15),50,0);A5:=IF((A1 < 20),25,0);密集度:A1,color0000FF;高密集:AA3,color00CCFF;中密集:A4,color0000CC;低密集:A5,color00FFFF;A6:=HHV(KDCM,N);乖离:EMA(((100 + KDCM) - A6),3),colorFF00FF;成本乖离:(((CLOSE / COST(50)) - 1) * 100),colorFFFF00;。
【股票指标公式下载】-【大智慧】预测收盘(预测当天最低价、预测收盘价)
【大智慧】预测收盘(预测当天最低价、预测收盘价)-指标公式源码DRAWGBKLAST(1,STRIP(RgB(10,10,50),RGB(50,10,10),0)); MA3:MA(CLOSE,3); MA4:MA(CLOSE,4); MA5:MA(C,5),colorwhite;MA10:MA(C,10),COLORYELLOW; 警报:=CROSS(MA4,MA3);DRAWTEXT(警报,H*1.05,'↓'),LINETHICK6,ALIGN1,COLORFFFFFF;安全:=CROSS(MA3,MA4);DRAWTEXT(安全,L*0.95,'↑'),LINETHICK6,ALIGN1,colorRED; SD:=HHV(HIGH,13)=HIGH AND HIGH>REF(HIGH,1);{17}x9:FORCAST(c,9),Colorwhite,LINETHICK2;llx:=llv(FORCAST(c,9),2);PARTLINE(x9,x9=llx,rgb(255,205,0),x9<>llx,rgb(255,0,0)),linethick3; MA21:MA(C,21),LINETHICK1,COLORE66878;VC:=(HIGH+LOW+OPEN+2*CLOSE)/5;明日突破:=VC+(HIGH-LOW);明日反转:=VC-(HIGH-LOW);DRAWTEXTABS(15,71,'明日突破: '+NUMTOSTRN(明日突破,2)+' 元'),COLOR0000FF;DRAWTEXTABS(15,90,'明日反转: '+NUMTOSTRN(明日反转,2)+' 元'),COLORffff00;HHVALL(HIGH)*1.1,COLOR000000;LLVALL(LOW)*0.9,COLOR000000;{预测当天最低价公式}A1:=REF(O,1);A2:=ABS((REF(C,1)-A1)/A1);A3:=ABS((REF(H,1)-A1)/A1);A4:=ABS((REF(L,1)-A1)/A1);B1:=ABS((A2+A3+A4)/3);B2:=O*B1;今日最高:=O+B2;预测低一:O-B2,linethick0;{预测当天收盘价公式}开盘价1:=open;开盘价2:=REF(open,1);最高价1:=high;最高价2:=REF(high,1);最低价1:=low;最低价2:=REF(low,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AA:=最高价2;BB:=最低价2;CC:=开盘价2;DD:=收盘价2;EE:=(AA+BB+CC+2*DD)/5;AAA:=EE+(AA-BB);BBB:=2*EE-BB;CCC:=2*EE-AA;DDD:=EE-(AA-BB);上升突破价:=AAA;上升阻力价:=BBB;下跌支撑价:=CCC;下跌反转价:=DDD;EEE:=(EE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+开盘价1)/2;GGG:=(预测低一+FFF)/2;预测低二:GGG,colorffffff,LINETHICK0;高:=今日最高;收:=FFF;DRAWTEXTABS(15,35,'预测低一: '+NUMTOSTRN(预测低一,2)+'元'),COLORWHITE ,linethick1;DRAWTEXTABS(15,53,'预测低二: '+NUMTOSTRN(预测低二,2)+'元'),COLORWHITE ,linethick1;a:="[email=LTFunc5@FORLT2]LTFunc5@FORLT2[/email]";s1:="[email=LTFunc5@LT_S1]LTFunc5@LT_S1[/email]";p1:="[email=LTFunc5@LT_P1]LTFunc5@LT_P1[/email]";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;{一品资料说明}WW:=BARSLAST(DISPSTATUS=1);低涨:(C/LLV(LOW,WW)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;天:BARSLAST(L=LLV(LOW,WW)),COLOR00FFFF,LINETHICK0,PRECIS0; DRAWTEXTABS(210,15,'◇低点至今上涨:'+NUMTOSTRN(低涨,2)+'%'+NUMTOSTRN(天,0)+'天'),COLOR0000FF;DRAWTEXTABS(210,32,'◇目前可见K线:'+NUMTOSTRN(WW+1,0)+'天'),COLORYELLOW;DRAWTEXTABS(15,15,'预测今日最高价: '+NUMTOSTRN(ref(今日最高,0),2)+'元'),COLORF00FF0,linethick1;DRAWTEXTREL(680,950,'预测今日收盘价: '+NUMTOSTRN(ref(FFF,0),2)+'元'),COLORF00FF0,linethick1;{43}DRAWGBK(c,'7' );Var3:=LLV(H,240);Var4:=100*(C-Var3)/Var3;Var5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100;Var6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100;{Var7:=0;}Var8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;Var9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;VarA:=BARSCOUNT(C);VarB:=Var8<20 AND Var9<23 AND VarA>35;VarC:=VarB AND COUNT(VarB,1)=1;VarD:=EMA(C,21)-EMA(C,8);VarE:=EMA(VarD,5);VarF:=TROUGH(3,6,1)<4 AND CROSS(VarD,VarE);Var10:=IF(TROUGH(3,16,1)=0 AND H>L+0.04,4,0);Var11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);Var12:=ZIG(3,6)<REF(ZIG(3,6),1)AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);Var13:=ZIG(3,22)>REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);Var14:=ZIG(3,22)<REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);Var15:=ZIG(3,51)>REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);Var16:=ZIG(3,51)<REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);Var17:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);Var18:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);Var19:=EMA(C,2)-EMA(C,150);Var1A:=EMA(Var19,100);Var1B:=2*(Var19-Var1A);Var1C:=POW(Var1B,3)*0.1+POW(Var1B,1);Var1D:=SQRT(SQRT(L*H*O*C));Var1E:=EMA(Var1D*0.97,3);Var1F:=(H+L+C)/3;Var20:=(Var1F-MA(Var1F,14))/(0.015*AVEDEV(Var1F,14));Var21:=CROSS(Var1E,L);买点1:=Var10;买点2:=(Var11+Var13+Var15+Var17);卖点1:=(Var12+Var14+Var16+Var18);Var22:=买点1 AND VarF AND VarC AND Var21 AND Var4<0AND Var5=0 AND Var6=0 AND Var20<(-110);DRAWTEXT(买点1>0,L-0.15,'B'),LINETHICK4,ALIGN1,colorred;{B} DRAWTEXT(买点2>0,L-0.25,{'B'}'买'),LINETHICK2,ALIGN1,COLOR00FFFF;{B} DRAWTEXT(卖点1>0,H+0.95,{'S'}'卖'),LINETHICK2,ALIGN1,COLOR33FF33;{S}闪:EMA(c+(h-l)*0.618,3),Color0099FF,LINETHICK0;进:EMA((o+h+l)/3,4),COLORCYAN,LINETHICK0;预测明日买点:=EMA((o+h+l)/3,4)+((h+l)/2-ref((o+h+l)/3,3))/4; DRAWTEXTREL(250,0,' ◇测今日低点:'+NUMTOSTRN(ref(预测明日买点,1),2 )),ColorGREEN,linethick1;预测明日卖点:=EMA(c+(h-l)*0.618,3)+(EMA(c+(h-l)*0.618,3)-进)*0.618; DRAWTEXTREL(15,0,'♂测今日高点:'+NUMTOSTRN(ref(预测明日卖点,1),2 )),Colorred,linethick1;{预测明日涨跌}C1:=REF(CLOSE,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(((CLOSE < XB) AND (C1 >= XB1)));M11:=REF(M,1);N9:=BARSLAST(((CLOSE > 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),CLOSE,ET2);H2:=IF((A = 1),CLOSE,C2);H3:=IF(((M - N9) < 0),CLOSE,XB2);H4:=IF((A = 1),CLOSE,XB2);H5:=IF((((M - N9) > 0) OR (A = 1)),CLOSE,H3);H6:=REF(H5,1);H7:=REF(H5,2);H8:=(H5 > H6);H9:=(((H4 = REF(H4,1)) AND (REF(H4,1) < REF(H4,2))) AND (H5 > REF(H5,2))); H10:=(((H2 = REF(H2,1)) AND (H4 = REF(H4,1))) AND (H5 = REF(H5,2))); W:=((H8 OR H9) OR H10);T9:=((H5 < H6) AND (H5 < REF(H5,2)));T10:=((H4 = REF(H4,1)) AND (H5 < REF(H5,2)));T11:=((H3 > REF(H3,1)) AND (H5 < REF(H5,1)));T12:=((H5 = REF(H5,1)) AND (H3 = H4));T13:=((H2 = REF(H2,1)) AND (H2 = H5));TW:=((((T9 OR T10) OR T11) OR T12) OR T13);PK:=((AMOUNT * (((OPEN + CLOSE) + HIGH) + LOW)) / 4);PK1:=IF((VOL > 0),(PK / AMOUNT),((((OPEN + CLOSE) + HIGH) + LOW) / 4)); BBP:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); DRAWTEXT(((DISPSTATUS=2 AND W) AND (BBP < 96.5)),(H5 * 1.022),' 明日看涨'),MOVE1,colorFF00ff;DRAWTEXT(((DISPSTATUS=2 AND TW) AND (BBP > 1)),((H5 + H4) / 2),' 明日看跌'),MOVE0,colorffFF00;{支撑压力}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;下档线:=(((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)))){,LINET HICK2,COLORFFFFFF};底:=LLV(HIGH,30){,COLOR00FF00,LINETHICK2};STICKLINE(BARSTATUS=2 ,撑压位,撑压位,30,1),LINETHICK1,COLORFFFFFF; DRAWTEXT(BARSTATUS=2 ,撑压位,' 撑压'),COLORFFFFFF,VALIGN1; STICKLINE(BARSTATUS=2 ,底,底,30,1),COLOR00FF00,LINETHICK1;【大智慧】预测收盘(预测当天最低价、预测收盘价)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】凯恩斯线(涨幅、振幅)
【大智慧】凯恩斯线(涨幅、振幅)-指标公式源码DRAWTEXTREL(4,0,'流通A股:'+NUMTOSTRn(FINANCE2(37),0)+'万'+' 市净率:'+NUMTOSTRn(DYNAINFO(58),2)+' 昨:'+NUMTOSTRn(DYNAINFO(3),2)+' 开:'+NUMTOSTRn(DYNAINFO(4),2)+' 高:'+NUMTOSTRn(DYNAINFO(5),2)+'低:'+NUMTOSTRn(DYNAINFO(6),2)+'收:'+NUMTOSTRn(DYNAINFO(7),2)),colorWhite;DRAWTEXTREL(4,80,''+'涨幅:'+NUMTOSTRn((DYNAINFO(14) * 100),2)+'%'+' 振幅:'+NUMTOSTRn((DYNAINFO(13) * 100),2)+'%'+' 换手率:'+NUMTOSTRn((DYNAINFO(37) * 100),2)+'%'),color00FFFF; DRAWTEXTREL(630,80,'黄点工作线 | 第一止损线'),color00FFFF; DRAWTEXTREL(4,160,'黄点工作线 '),colorYellow;DRAWTEXTREL(4,560,'粉色K线 | 大量放出'),colorMagenta; DRAWTEXTREL(4,640,'多空止赢 | 停损线'),colorMagenta; DRAWTEXTREL(4,240,'线上:工作 | 线下:休息'),color00FFFF; DRAWTEXTREL(120,160,' | 最低点靠近工作线低吸'),colorYellow; DRAWTEXTREL(420,80,STKLABEL+' '+STKNAME),Color00FFFF; DRAWTEXTREL(4,480,'空心:阳线 | 实体:阴线'),color0000FF; DRAWTEXTREL(4,320,'线上阴线买 | 买错也要买'),color00FFFF; DRAWTEXTREL(4,400,'线下阳线卖 | 卖错也要卖'),color00FFFF;七天线:MA(C,7),ColorFFFFFF;工作线:EMA(C,14),POINTDOT,linethick4,coloryellow;生命线:MA(C,22),linethick2,colorFF00FF;季线:ma(c,66),linethick2,color0000FF;半年线:ma(c,120),linethick2,colorFFFF00;长期趋势线:ma(c,240),CIRCLEDOT,ColorEEBBEE;A0:="cpzb.zp";A1:="cpzb.cp";A2:="cpzb.DP";STICKLINE((A2>=2.1),H,L,0.8,1),colorGreen;STICKLINE(((A2>=2.1) AND (C>REF(C,1))),O,C,8,1),colorGreen; STICKLINE(((A2>=2.1) AND (C<REF(C,1))),C,O,8,0),colorGreen; STICKLINE(((A2>0) AND (A2<5)),H,L,0.8,1),colorRed;STICKLINE((((A2>0) AND (A2<5)) AND (C>REF(C,1))),O,C,8,0),colorRed; STICKLINE((((A2>0) AND (A2<5)) AND (C<REF(C,1))),C,O,8,1),colorRed; STICKLINE(((C>=工作线) AND (C>REF(C,1))),H,L,0.5,1),colorRed; STICKLINE(((C>=工作线) AND (C>REF(C,1))),O,C,8,1),colorRed; STICKLINE(((C>=工作线) AND (C<REF(C,1))),H,L,0.5,0),colorRed; STICKLINE(((C>=工作线) AND (C<REF(C,1))),O,C,8,0),colorRed; STICKLINE(((C<工作线) AND (C>REF(C,1))),H,L,0.5,1),colorGreen; STICKLINE(((C<工作线) AND (C>REF(C,1))),O,C,8,1),colorGreen; STICKLINE(((C<工作线) AND (C<REF(C,1))),H,L,0.5,0),colorGreen; STICKLINE(((C<工作线) AND (C<REF(C,1))),O,C,8,0),colorGreen; DRAWTEXT(A0,L,' ̄ ̄'),linethick2,ALIGN1,ColorFFFFFF;DRAWTEXT(A0,L*0.98,' B-B'),linethick5,ALIGN1,colorFFFFFF; DRAWTEXT(A1,H,' ̄ ̄'),linethick2,ALIGN1,colorcyan;DRAWTEXT(A1,H*1.03,' S-S'),linethick5,colorcyan;STICKLINE(A1,C,O,8,0),colorFFFF00;STICKLINE(A1,H,L,1,0),colorFFFF00;STICKLINE(A0,C,O,8,0),ColorFFFFFF;STICKLINE(A0,H,L,1,0),ColorFFFFFF;STICKLINE((A2>=10 and A2<30),C,O,0,0),ColorFFBBFF;STICKLINE((A2>=10 and A2<30),C,O,8,0),colorMagenta;STICKLINE((A2>=10 and A2<30),C,O,7,0),ColorFF22FF;STICKLINE((A2>=10 and A2<30),C,O,6,0),ColorFF44FF;STICKLINE((A2>=10 and A2<30),C,O,5,0),ColorFF66FF;STICKLINE((A2>=10 and A2<30),C,O,4,0),ColorFF88FF;STICKLINE((A2>=10 and A2<30),C,O,3,0),ColorFF99FF;STICKLINE((A2>=10 and A2<30),C,O,2,0),ColorFFAAFF;STICKLINE((A2>=10 and A2<30),C,O,1,0),ColorFFBBFF;A3:=EMA((((SLOPE(C,21)) * 20) + C),68);A4:=EMA(C,10);A5:=REF(C,2);A6:=((SMA((MAX((C - A5),0)),6,1)) / (SMA(ABS((C - A5)),6,1))) * 100; A7:=IF(((A6 < (REF(A6,1))) AND (A6 > 79)),A6,0);DRAWTEXT((CROSS(A4,A3)),L,'△'),linethick2,ALIGN1,colorYellow; DRAWTEXT(A7,H,'○'),linethick3,colorGreen;A8:=LLV(L,21);A9:=HHV(H,21);A10:=EMA((((CLOSE - A8) / (A9 - A8)) * 100),5);A11:=EMA((((CLOSE - A8) / (A9 - A8)) * 50),13);A12:=EMA(((0.667 * (REF(A10,1))) + (0.333 * A10)),2);A13:=LLV(L,55);A14:=HHV(H,34);A15:=EMA((((C - A13) / (A14 - A13)) * 100),3);A16:=(A11 + A15) / 2;A17:=EMA(((0.667 * (REF(A15,1))) + (0.333 * A10)),2);A18:=EMA(A16,5);A19:=EMA(((0.667 * (REF(A18,1))) + (0.333 * A18)),2);A20:=CROSS(A10,A11);A21:=(CROSS(A10,A19)) AND (A19 < 30);A22:=A21 * 0.6;DRAWTEXT((A22 = 0.6),L,'◇'),ALIGN1,colorYellow;DRAWTEXT((A20 = 1),L,'◇'),ALIGN1,colorWhite;【大智慧】凯恩斯线(涨幅、振幅)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】数字均线(量能饱和度、明日阻力、下档线)
【大智慧】数字均线(量能饱和度、明日阻力、下档线)-指标公式源码DRAWGBKLAST(DATE>900101,STRIP(RGB(15,125,125),RGB(0,50,0),0)); DRAWTEXTABS(10,8,STKLABEL+' '+STKNAME+' '+BKNAME),COLOR00FFFF;N:=20;SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));量能饱和度:=IF(SAT>1,1,SAT)*100;DRAWTEXTABS(20,21,'量能饱和度:'+NUMTOSTRN(量能饱和度,2)+'%'),COLORred;DRAWRECTREL(1,83,18,382,RGB(30,30,30)),COLORWHITE;AAA:=量能饱和度<=10;BBB:=量能饱和度>10 AND 量能饱和度<=20;CCC:=量能饱和度>20 AND 量能饱和度<=30;DDD:=量能饱和度>30 AND 量能饱和度<=50;EEE:=量能饱和度>50 AND 量能饱和度<=70;FFF:=量能饱和度>70 AND 量能饱和度<=80;GGG:=量能饱和度>80 AND 量能饱和度<=90;HHH:=量能饱和度>90;IF BARSTATUS=2 AND AAA THEN BEGINDRAWRECTREL(3,350,16,380,RGB(255,0,0));ENDELSEIF BARSTATUS=2 AND BBB THEN BEGINDRAWRECTREL(3,320,16,380,RGB(255,0,0));ENDELSEIF BARSTATUS=2 AND CCC THEN BEGINDRAWRECTREL(3,290,16,380,RGB(255,0,0));ENDELSEIF BARSTATUS=2 AND DDD THEN BEGINDRAWRECTREL(3,230,16,380,RGB(255,0,0));ENDELSEIF BARSTATUS=2 AND EEE THEN BEGINDRAWRECTREL(3,170,16,380,RGB(255,0,0));ENDELSEIF BARSTATUS=2 AND FFF THEN BEGINDRAWRECTREL(3,140,16,380,RGB(255,0,0));ENDELSEIF BARSTATUS=2 AND GGG THEN BEGINDRAWRECTREL(3,110,16,380,RGB(255,0,0));ENDELSEIF BARSTATUS=2 AND HHH THEN BEGIN DRAWRECTREL(3,85,16,380,RGB(255,0,0)); END;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(23,117,'--------------------------------'),ColorFFFFFF;IF BARSTATUS=2 and c>=今日支撑 THENDRAWTEXTREL(23,147,'今日支撑=:'+NUMTOSTRN(今日支撑 ,2 )),ColorFF00FF; IF BARSTATUS=2 and c<今日支撑 THENDRAWTEXTREL(23,147,'今日支撑=:'+NUMTOSTRN(今日支撑 ,2 )),ColorFF0000; IF BARSTATUS=2 and c>=今日阻力 THENDRAWTEXTREL(23,197,'今日阻力=:'+NUMTOSTRN(今日阻力 ,2 )),Color0000FF; IF BARSTATUS=2 and c<今日阻力 THENDRAWTEXTREL(23,197,'今日阻力=:'+NUMTOSTRN(今日阻力 ,2 )),Color00FF00; IF BARSTATUS=2 and c>=明日支撑 THENDRAWTEXTREL(173,147,'明日支撑=:'+NUMTOSTRN(明日支撑 ,2 )),Color00FFFF;IF BARSTATUS=2 and c<明日阻力 THENDRAWTEXTREL(173,197,'明日阻力=:'+NUMTOSTRN(明日阻力 ,2 )),Color00FFFF;DRAWTEXTREL(23,227,'--------------------------------'),ColorFFFFFF;IF BARSTATUS=2 and v>ref(v,1) and ma(v,5)>ref(ma(v,5),1) THEN DRAWTEXTREL(360,87,'今日成交量大于昨日,且有继续增大趋势'),Color8285FF;IF BARSTATUS=2 and v<ref(v,1) and ma(v,5)>ref(ma(v,5),1) THEN DRAWTEXTREL(360,87,'今日成交量小于昨日,但有放大迹象'),Color8285FF;IF BARSTATUS=2 and v>ref(v,1)and ma(v,5)<ref(ma(v,5),1) THEN DRAWTEXTREL(360,87,'今日成交量大于昨日, 但有缩小迹象'),Color8285FF;IF BARSTATUS=2 and v<ref(v,1)and ma(v,5)<ref(ma(v,5),1) THEN DRAWTEXTREL(360,87,'今日成交量小于昨日,且有缩小迹象'),Color8285FF;下档线:=(((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 and AA05>ref(AA05,1),AA05,REF(AA05,1),2,1),colorf00fF0;}PARTLINE(AA05,AA05>ref(AA05,1),RGB(250,0,0),AA05<ref(AA05,1),RGB(0,25 0,180),1,RGB(0,0,180));AA10:MA(C,10),coloryellow;AA20:=MA(c,20);BB10:=atan((aa10/ref(aa10,1)-1)*100)*180/3.1416;{STICKLINE(BB05<0 and AA05<ref(AA05,1),AA05,REF(AA05,1),2,1),colorF00F00;}AA30:MA(C,30),colorGREEN;三拾日乖离率:(c-AA30)/AA30*100,linethick0;Var1:=(AA20-AA30)>ref((AA20-AA30),1) and AA20>ref(aa20,1) andAA30>ref(AA30,1);Var2:=(AA30-AA20)<ref((AA30-AA20),1) and AA20<ref(aa20,1) andAA30<ref(AA30,1);BB30:=atan((aa30/ref(aa30,1)-1)*100)*180/3.1416;{STICKLINE(BB30>15 and AA30>ref(AA30,1),AA30,REF(AA30,1),2,1),colorRED;}PARTLINE(AA30,AA30>ref(AA30,1),RGB(250,0,0),AA30<ref(AA30,1),RGB(0,25 0,180),1,RGB(0,0,180));强势狙击:=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) andAA10>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 and ref(c,1)<AA30; 买入:=filter(MR,10);drawtext(减仓,high*1.02,'减'),colorcyan;drawtext(买入,low*0.98,'买'),coloryellow;drawtext(清仓 ,high*1.02,'清'),COLORGREEN;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,LAYER0;{彩色牛K}STICKLINE(Var5,OPEN,CLOSE-(CLOSE-OPEN)*0.66,5,0),COLORRED,LAYER0;{彩色牛K}DRAWTEXT(c>0,(O+C)/2,NUMTOSTRN(gz2 ,0 )),coloryellow,LAYER0,ALIGN1,VA LIGN0,LINETHICK1;{彩色牛K};早晨之星:=REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2);黄昏之星:=REF(CLOSE,2)/REF(OPEN,2)>1.03 AND REF(OPEN,1)>REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 ANDCLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2);长十字:=CLOSE=OPEN AND HIGH/LOW >1.03;垂死十字:=CLOSE=OPEN AND CLOSE=LOW AND CLOSE<>HIGH;早晨十字星:=REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2);黄昏十字星:=REF(CLOSE,2)/REF(OPEN,2)>1.05 AND REF(OPEN,1)>REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2);射击之星:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE>MA(CLOSE,5);倒转锤头:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE<MA(CLOSE,5);锤头:=HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE<MA(CLOSE,5);吊颈:=HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5);穿头破脚:=(REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE<REF(OPEN,1) AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 ANDCLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1));乌云盖顶:=REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1);曙光初现:=REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1);身怀六甲:=ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 ANDABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN)<MAX(REF(CLOSE,1),REF(OPEN,1)) ANDMIN(CLOSE,OPEN)>MIN(REF(CLOSE,1),REF(OPEN,1));十字胎:=ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE >MIN(REF(CLOSE,1),REF(OPEN,1));平顶:=ABS(HIGH-REF(HIGH,1))/HIGH<0.001;平底:=(ABS(LOW-REF(LOW,1))/LOW<0.001 ANDABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001);大阳烛:=CLOSE/OPEN>1.05 AND HIGH/LOW<CLOSE/OPEN+0.018;三个白武士:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPENAND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1);双飞乌鸦:=REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98; 孕育线:=REF(CLOSE,2)>REF(OPEN,2) AND(REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 ANDREF(OPEN,1)>=REF(CLOSE,1) AND(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 ANDREF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPEN AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND(MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2)) <=1/100;多方炮:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN;出水芙蓉:=(OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND (V/MA(V,30)>1.2 AND C/REF(C,1)>1.049);上升三部曲:=REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) ANDREF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) ANDREF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) ANDREF(HIGH,4)>REF(HIGH,2) ANDREF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4);下跌三部曲:= REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) ANDREF(LOW,4)<REF(LOW,3) ANDREF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) ANDREF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) ANDREF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 ANDCLOSE<REF(CLOSE,4);跳空缺口:=HIGH<REF(LOW,1) OR LOW>REF(HIGH,1);三只乌鸦:=REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE<REF(CLOSE,1);光脚阴线:=LOW=CLOSE AND HIGH<>LOW;光头阳线:=HIGH=CLOSE AND HIGH<>LOW;分离:=OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0; 长下影:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667;长上影:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667;十字星:=CLOSE=OPEN AND HIGH<>LOW;大阴烛:=OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018;好友反攻:=(REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN ANDABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN ANDABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002);倾盆大雨:=REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O>REF(O,1) ANDC<REF(O,1);解盘:='【K线形态解盘】'+IFs(倾盆大雨,'★倾盆大雨,见顶信号;','')+IFs(大阴烛,'★大阴烛,后市向淡,发生逆转;','')+IFs(好友反攻,'★好友反攻,底部反转;','')+IFs(跳空缺口,'★跳空缺口,注意向上还是向下跳空;','')+IFs(光脚阴线,'★光脚阴线,下跌信号;','')+IFs(光头阳线,'★光头阳线,后市看涨;','')+IFs(三只乌鸦,'★三只乌鸦,可能见顶回落;','')+IFs(分离,'★分离,注意看涨分离和看跌分离;','')+IFs(长下影,'★长下影,持续下跌后出现,有可能止跌回升;在升势末期出现,须多加留意;','')+IFs(长上影,'★长上影,表明行情上档压力沉重,升势受阻;','')+IFs(下跌三部曲,'★下跌三部曲,下跌信号;','')+IFs(上升三部曲,'★上升三部曲,上涨信号;','')+IFs(早晨之星,'★早晨之星,见底回升;','')+IFs(黄昏之星,'★黄昏之星,见顶回落;','')+IFs(十字星,'★十字星,有转向意味,注意股价位置在顶部还是底部;','')+ IFs(长十字,'★长十字,注意在顶部还是底部;','')+IFs(垂死十字,'★垂死十字,下跌信号;','')+IFs(早晨十字星,'★早晨十字星,上涨信号,见底回升;','')+IFs(黄昏十字星,'★黄昏十字星,下跌信号,见顶回落;','')+IFs(射击之星,'★射击之星,可能见顶回落,可靠性低;','')+IFs(倒转锤头,'★倒转锤头,可能见底回升;','')+IFs(锤头,'★锤头,可能见底回升,如有量配合,信号强烈;','')+IFs(吊颈,'★吊颈,上升行情中见顶回落,顶部出现,见顶信号;','')+IFs(平顶,'★平顶,温和的反转;','')+IFs(穿头破脚,'★穿头破脚,顶部出现,见顶回落信号;','')+IFs(乌云盖顶,'★乌云盖顶,见顶回落信号;','')+IFs(曙光初现,'★曙光初现,后市见底回升;','')+IFs(身怀六甲,'★身怀六甲,出现在底部,是见底回升信号;出现在顶部,是见顶回落信号;','')+IFs(十字胎,'★十字胎;','')+IFs(平底,'★平底,温和的反转;','')+IFs(大阳烛,'★大阳烛,看涨;','')+IFs(三个白武士,'★三个白武士,每日收盘价上移,表示可能见底回升;','')+ IFs(双飞乌鸦,'★双飞乌鸦,行情将见顶回落;','')+IFs(孕育线,'★孕育线,注意股价位置;','')+IFs(多方炮,'★多方炮,在底部出现有上涨意味,在中间出现有可能是上涨中继,顶部出现是复合见顶信号;','')+IFs(出水芙蓉,'★出水芙蓉,见底回升;','');DRAWFLAGTEXT(倾盆大雨,c,'★倾盆大雨,见顶信号'),COLORGREEN; DRAWFLAGTEXT(大阴烛,c,'★大阴烛,后市向淡,发生逆转'),COLORGREEN; DRAWFLAGTEXT(好友反攻,c,'★好友反攻,底部反转'),COLORred; DRAWFLAGTEXT(跳空缺口,c,'★跳空缺口,注意向上还是向下跳空'),colorff00ff;DRAWFLAGTEXT(光脚阴线,c,'★光脚阴线,下跌信号'),COLORGREEN; DRAWFLAGTEXT(光头阳线,c,'★光头阳线,后市看涨'),COLORred; DRAWFLAGTEXT(三只乌鸦,c,'★三只乌鸦,小心见顶回落'),COLORGREEN; DRAWFLAGTEXT(分离,c,'★分离,注意看涨分离和看跌分离'),COLORGREEN;DRAWFLAGTEXT(长下影,c,'★长下影,持续下跌后出现,止跌回升;在升势末出现,多加留意'),colorff00ff;DRAWFLAGTEXT(长上影,c,'★长上影,行情上档压力沉重,升势受阻'),COLORGREEN;DRAWFLAGTEXT(下跌三部曲,c,'★下跌三部曲,下跌信号'),COLORGREEN; DRAWFLAGTEXT(上升三部曲,c,'★上升三部曲,上涨信号'),COLORred; DRAWFLAGTEXT(早晨之星,c,'★早晨之星,见底回升'),COLORred; DRAWFLAGTEXT(黄昏之星,c,'★黄昏之星,见顶回落'),COLORGREEN; DRAWFLAGTEXT(十字星,c,'★十字星,有转向意味,注意股价位置在顶部还是底部'),colorff00ff;DRAWFLAGTEXT(长十字,c,'★长十字,注意在顶部还是底部'),COLORGREEN; DRAWFLAGTEXT(垂死十字,c,'★垂死十字,下跌信号'),COLORGREEN; DRAWFLAGTEXT(早晨十字星,c,'★早晨十字星,上涨信号,见底回升'),COLORred; DRAWFLAGTEXT(黄昏十字星,c,'★黄昏十字星,下跌信号,见顶回落'),COLORGREEN;DRAWFLAGTEXT(射击之星,c,'★射击之星,可能见顶回落,可靠性低'),COLORGREEN;DRAWFLAGTEXT(倒转锤头,c,'★倒转锤头,可能见底回升'),COLORred; DRAWFLAGTEXT(锤头,c,'★锤头,可能见底回升,如有量配合,信号强烈'),COLORred;DRAWFLAGTEXT(吊颈,c,'★吊颈,上升行情中见顶回落,顶部出现,见顶信号'),colorff00ff;DRAWFLAGTEXT(平顶,c,'★平顶,温和的反转'),COLORred;DRAWFLAGTEXT(穿头破脚,c,'★穿头破脚,顶部出现,见顶回落信号'),COLORGREEN;DRAWFLAGTEXT(乌云盖顶,c,'★乌云盖顶,见顶回落信号'),COLORGREEN; DRAWFLAGTEXT(曙光初现,c,'★曙光初现,后市见底回升'),COLORred; DRAWFLAGTEXT(身怀六甲,c,'★身怀六甲,出现在底部,是见底回升信号;出现在顶部,是见顶回落信号'),colorff00ff;DRAWFLAGTEXT(十字胎,c,'★十字胎'),COLORred;DRAWFLAGTEXT(平底,c,'★平底,温和的反转'),COLORred;DRAWFLAGTEXT(大阳烛,c,'★大阳烛,看涨'),COLORred;DRAWFLAGTEXT(三个白武士,c,'★三个白武士,每日收盘价上移,表示可能见底回升'),COLORred;DRAWFLAGTEXT(双飞乌鸦,c,'★双飞乌鸦,小心见顶回落'),COLORGREEN;DRAWFLAGTEXT(孕育线,c,'★孕育线,注意股价位置'),COLORred; DRAWFLAGTEXT(多方炮,c,'★多方炮,配合量能确定顶底'),colorff00ff;{金印组合}QH:=REF(H,2);QL:=REF(L,2);QO:=REF(O,2);QC:=REF(C,2);ZO:=REF(O,1);ZC:=REF(C,1);JYZHK:= ABS(QO-QC)/QO<0.02 AND ZO/ZC>1.03 AND ABS(O-C)/O<0.02 AND C>MA(C,30);JYZHV:=V<REF(V,1) ;JYZH:=JYZHK AND JYZHV;DRAWTEXT(JYZH,L,'金'),linethick3,coloryellow;{以下定义坚决买进}var77:=ema(amount/vol/100,3);var88:=ema(var77,88);var99:=ema(var77,88)*0.85;varah:=var99*0.87;varbh:=low<varah and close>ref(close,1)*1.02;drawtext(filter(varbh,6),l-0.08,'坚'),linethick3,colorff00ff;获利:=WINNER(CLOSE)*100;十涨:=(c-ref(c,HHVBARS(c,10)))/ref(c,HHVBARS(c,10))*100; DRAWTEXTABS(15 ,65 ,'*股票状态:'+'★获利比例:'+NUMTOSTRN(获利,1)+'% '+ '★10日涨幅:'+NUMTOSTRN(十涨,1)+'% '+ifs("上涨.上涨"=1,' ★上涨',' ')+ifs("下跌.下跌"=1,' ★下跌','')+ifs(DYNAINFO(4)=0,'停牌',' ')+ifs("组合抄底.抄底组合"=1,' 抄底组合',' ')+ifs("三组抄底.三组抄底"=1,' 三组抄底',' ')+ifs("三组抄底.三组抄底"=1 and "双底低点.双底低点"=1,' 双底三组抄底',' ')+ifs("五组抄底.五组抄底"=1,' 五组极限抄底',' ')+ifs("五组抄底.五组抄底"=1 and "双底低点.双底低点"=1,' 双底五组极限抄底',' ')+ifs("双底低点.双底低点"=1,' 双底低点',' ')+ifs("组合抄底.抄底组合"=1 AND "双底低点.双底低点"=1,' 双底抄底',' ')+ifs("启动介入.启动介入"=1,' 启动介入',' ')+ifs("六指翻红.六指翻红"=1,' 六指翻红',' ')+ifs("风险高点.风险高点"=1,' 风险高点',' ')+ifs("量背急跌.量背急跌"=1,' 量背急跌',' ')),COLORYELLOW;【大智慧】数字均线(量能饱和度、明日阻力、下档线)-指标公式效果图(文档来源:若水财经社区)。