【股票指标公式下载】-【大智慧】MACD指标(关注、副图)
【股票指标公式下载】-【大智慧】看底趋势(短趋势、长趋势、判断底)
【大智慧】看底趋势(短趋势、长趋势、判断底)-指标公式源码DRAWTEXTABS(30,0,'个股顶底');短趋势:MA(3*SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1)-2*SMA(SMA((C -LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1),3,1),3),coloryellow,LINETH ICK2;Var2:=(2*CLOSE+HIGH+LOW+OPEN)/5;Var3:=LLV(LOW,34);Var4:=HHV(HIGH,34);长趋势:MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C -LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),colorred,LINETHICK 2;判断底:=SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5; Var5:=CROSS(短趋势,长趋势)AND 长趋势<25;STICKLINE(短趋势<10 AND 判断底>0,0,30,6,0),colorgreen;STICKLINE(Var5,0,50,8,0),colorred;看底:8,coloryellow;顶峰:100,colorgreen;趋势:=3*SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1)-2*S MA(SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),3,1); 操盘线:=SMA(趋势,3,1);DRAWLINE( 趋势>=90,顶峰,趋势<90,顶峰 ,0 ),colorred;STICKLINE(CROSS(看底,趋势),0 ,30 ,6 ,0 ),colorgreen;a:=短趋势<10 AND 判断底>0;a1:=Var5;;a2:=CROSS(看底,趋势);a3:=CROSS(趋势,看底 );a4:=a+a1+a2+a3;Var6:=EMA(HHV(HIGH,500),21);Var7:=EMA(HHV(HIGH,250),21);Var8:=EMA(HHV(HIGH,90),21);Var9:=EMA(LLV(LOW,500),21);VarA:=EMA(LLV(LOW,250),21);VarB:=EMA(LLV(LOW,90),21);VarC:=EMA((Var9*0.96+VarA*0.96+VarB*0.96+Var6*0.558+Var7*0.558+Var8*0 .558)/6,21);VarD:=EMA((Var9*1.25+VarA*1.23+VarB*1.2+Var6*0.55+Var7*0.55+Var8*0.65 )/6,21);VarE:=EMA((Var9*1.3+VarA*1.3+VarB*1.3+Var6*0.68+Var7*0.68+Var8*0.68)/ 6,21);VarF:=EMA((VarC*3+VarD*2+VarE)/6*1.738,21);Var10:=REF(LOW,1);Var11:=SMA(ABS(LOW-Var10),3,1)/SMA(MAX(LOW-Var10,0),3,1)*100;Var12:=EMA(IF(CLOSE*1.35<=VarF,Var11*10,Var11/10),3);Var13:=LLV(LOW,30);Var14:=HHV(Var12,30);Var15:=IF(MA(CLOSE,58),1,0);Var16:=EMA(IF(LOW<=Var13,(Var12+Var14*2)/2,0),3)/618*Var15;Var17:=IF(Var16>50,50,Var16)/3.82*6;STICKLINE(Var17>0,0,var17/2,6,0),colorf00ff0 ;【大智慧】看底趋势(短趋势、长趋势、判断底)-指标公式效果图(文档来源:若水财经社区)。
大智慧主力建仓和出货指标公式
AAA:=(DMA(VAR11,(VOL /SUM(VOL,90))) * 60);
BBB:=(DMA(VAR11,(VOL / CAPITAL)) * 60);
VAR7:=(EMA(VAR6,3) - 10);
A:=1.1*C;
B:=0.9*C;
B1:=100*(WINNER(A)-WINNER(B));
C1:=MA(C,13)<REF(MA(C,13),1);
D1:=IF(C>1000,CROSS(VAR3,22),CROSS(VAR3,24));
锁定筹码:=100-B1;
请注意甄别内容中的联系方式诱导购买等信息谨防诈骗
大智慧主力建仓和出货指标公式
VAR0:=DYNAINFO(5);
VAR1:=BARSCOUNT(HIGH);
VAR2:=(SMA((HIGH / HHV(CLOSE,120)),3,1) * 100);
低位金叉跟进:=IF((VAR1 > 20),VAR2,0);
VAR5:=EMA(VAR4,8);
VAR6:=((3 * SMA((((HIGH - HHV(HIGH,55)) / (LLV(LOW,55) - HHV(HIGH,55))) * 100),5,1)) - (2 * SMA(SMA((((HIGH - HHV(HIGH,55)) / (LLV(LOW,55) - HHV(HIGH,55))) * 100),5,1),3,1)));
锁定区:STICKLINE(锁定筹码>70 AND C1,0,锁定筹码-65,8,0),COLOR0000FF;
股票-大智慧精品KDJMACD综合指标公式
大智慧精品KDJMACD综合指标公式_正点财经DRAWTEXTABS(0,0,全功能KDJ+MAC),colorgreen;{DRAWGBK(close0,STRIP(RGB(25,25,112),RGB(47,79,79),0));}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,3,1),LINETHICK1,COLORWHITE;D:SMA(K,3,1),LINETHICK1,COLOR00DDDD;J:3*K-2*D,LINETHICK1,COLORred;DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),linethick0,COLOR0099FF;DEA:EMA(DIFF,9),linethick0,COLORD89837;MACD:2*(DIFF-DEA),COLORFF9999,linethick0;YLZC:=if(close=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,A MOUNT/(vol+0.01)/100);阻价:=if(close=INDEXC,YLZC+INDEXC-INDEXl,YLZC+(close-low)); 支价:=if(close=INDEXC,INDEXl+INDEXC-YLZC,low+(close-YLZC));今压:REF(阻价,1),LINETHICK0,COLORAA11BB; 今撑:REF(支价,1),LINETHICK0,COLOR009900; 明压:阻价,LINETHICK0;明撑:支价,LINETHICK0;rsv1:=(hhv(h,9.8)-c)/(hhv(h,9.8)-llv(l,9.8))*101; kk:=sma(rsv1,3,1);dd:=sma(kk,3,1);jj:=3*kk-2*dd;买卖:=if(jj=100,100,if(jj=0,0,jj));明天买:if(买卖=100,0-10,0),color00cccc;明天卖:if(买卖=0,90,100),color00ff00;KX:=250;KH:=HHV(K,KX);DH:=HHV(D,KX);JH:=HHV(J,KX);KL:=LLV(K,KX);DL:=LLV(D,KX);JL:=LLV(J,KX);HKMAX:=MAX(KH,MAX(DH,JH)); LKMIN:=MIN(KL,MIN(DL,JL)); KHLB:=(HKMAX+LKMIN)/2;KHLC:=HKMAX-LKMIN;MHF:=HHV(DIFF,KX);MHD:=HHV(DEA,KX);MHM:=HHV(MACD,KX);MLF:=LLV(DIFF,KX);MLD:=LLV(DEA,KX);MLM:=LLV(MACD,KX);HMAX:=MAX(MHF,MAX(MHD,MHM)); LMIN:=MIN(MLF,MIN(MLD,MLM));FHLB:=(HMAX-LMIN)/100;FHLC:=HMAX-LMIN;SH:=(0-FHLB)*(KHLC/FHLC)+KHLB;DIFFA:(DIFF-FHLB)*(KHLC/FHLC)+KHLB,linethick2; DEAA:(DEA-FHLB)*(KHLC/FHLC)+KHLB,linethick2; MACDA:=(macd-FHLB)*(KHLC/FHLC)+KHLB;CDA:=MACDref(MACD,1)andMACDCDB:=MACD=ref(MACD,1)andMACDCDC:=MACDref(MACD,1)andMACDCDD:=MACD=ref(MACD,1)andMACDSTICKLINE(CDA,SH,macda,6,0),COLOR00AAFF;{黄色段} STICKLINE(CDA,SH,macda,6.6,0),COLOR0066AA; STICKLINE(CDA,SH,macda,4.4,0),COLOR0099DD; STICKLINE(CDA,SH,macda,3.3,0),COLOR00BBEE; STICKLINE(CDA,SH,macda,2.2,0),COLOR00DDFF;STICKLINE(CDB,SH,macda,6,0),COLOR0000AA;{红色段} STICKLINE(CDB,SH,macda,6.6,0),COLOR0011BB; STICKLINE(CDB,SH,macda,4.4,0),COLOr0022CC; STICKLINE(CDB,SH,macda,3.3,0),COLOR0033DD; STICKLINE(CDB,SH,macda,2.2,0),COLOR0044EE; STICKLINE(CDB,SH,macda,1.1,0),COLOR0055FF; STICKLINE(CDC,SH,macda,6,0),COLORAA00BB;{向上粉红} STICKLINE(CDC,SH,macda,6.6,0),COLORBB1177; STICKLINE(CDC,SH,macda,4.4,0),COLORCC2299; STICKLINE(CDC,SH,macda,3.3,0),COLORDD33AA; STICKLINE(CDC,SH,macda,2.2,0),COLOREE44BB; STICKLINE(CDC,SH,macda,1.1,0),COLORFF55BB; STICKLINE(CDD,SH,macda,6,0),COLORFF7700; STICKLINE(CDD,SH,macda,6.6,0),COLORAA7711;STICKLINE(CDD,SH,macda,3.3,0),COLOREEBB33;STICKLINE(CDD,SH,macda,2.2,0),COLORFFCC44;STICKLINE(CDD,SH,macda,1.1,0),COLORFFDD55;PARTLINE(DIFFA,DIFF0,RGB(255,153,153),DIFF0,RGB(255,153,1 53));PARTLINE(DEAA,DEA0,RGB(65,105,225),DEA0,RGB(65,105,225)) ;DRAWTEXT(BARSTATUS=2,SH,0),color00aaaa;TYP:=(HIGH+LOW+CLOSE)/3;STICKLINE(diffref(diff,1),20,20,2,0),COLORRED;STICKLINE(diffref(diff,1),20,20,2,0),COLORGREEN;STICKLINE(K=ref(K,1)orkdanddiffref(diff,1),80,80,2,1),COLORRED ;STICKLINE(Kref(K,1),80,80,2,1),COLORGREEN;大智慧精品KDJMACD综合指标公式实例图解:大智慧精品KDJMACD综合指标公式。
大智慧七种技术指标主图指标公式(MACD KDJ CCI RSI DMI DMA 主图)
大智慧七种技术指标主图指标公式(MACD KDJ CCI RSI DMI DMA 主图)INPUT:AM(1,0,1),AJ(1,0,1),AC(1,0,1),AR(1,0,1),AD(1,0,1),DM(1,0,1),ZL(1,0,1); DRAWGBKlast(c>0,strip(RGB(0,0,0),RGB(0,0,120),0));{1.K线}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8.5,0) ,COLOR000011;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000033;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000055;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),HIGH,LOW,1,0),color0000FF;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8.5,0),color006600;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),color008800;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),HIGH,LOW,1,0),color00FF00;LC:=REF(C,1);卖黄金:((SMA(MAX((C - LC),0),3,1) / SMA(ABS((C - LC)),3,1)) * 100),LINETHICK0; DRAWTEXT(CROSS(80,卖黄金) ,high*1.04,'顶'),COLOR00ffFF,ALIGN1,LINETHICK1; STICKLINE(CROSS(80,卖黄金) AND C<O,H,L,2,0),COLOR00ffff,LAYER0;STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,12,0 ),COLOR007777,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,8,0 ),COLOR009999,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,6,0 ),COLOR00BBBB,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,4,0 ),COLOR00DDDD,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,2 ,0 ),COLOR00ffff,LAYER0; DRAWTEXTABS(5,5,'基本指标:MA5波段'),Color00FFff,LINETHICK3;BC:=(3*C+H+L)/5;MA5:EMA(MA(BC,5),5);PARTLINE(MA5,(MA5>REF(MA5,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),LINETHICK2,LAYE R0;XL:=BARSLAST(DISPSTATUS=1)+1;E:=llvall(llv(L,XL))*0.95;IF AM=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:MACD'),Color0000ff,LINETHICK4;DIFF:=EMA( EMA(CLOSE,12) - EMA(CLOSE,26),3);DEA:=EMA(DIFF,9);MACD:2*(DIFF-DEA),Color0598FF,LINETHICK0;;STICKLINE(MACD>0,E+MACD*2,E,12,0),Color0598FF;STICKLINE(MACD<0,E+MACD*2,E,12,0),ColorFF5500;END;IF AJ=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:KDJ'),Colorff00ff,LINETHICK4;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:(3*K-2*D),Color05FFFF,LINETHICK0;if(CROSS(K,D) AND BARSLAST(CROSS(D,K))<3,E*1.09,E),ColorFF9910 ; STICKLINE(K>D,E+(K-D)/50,E,12,0),Color0000FF;STICKLINE(K<D,E+(K-D)/50,E,12,0),Color00FF00;END;IF AC=1 THEN BEGINDRAWTEXTABS(200,5,'指标:CCI'),Color00ffff,LINETHICK4;TYP := (HIGH + LOW + CLOSE)/3;CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),Color05FF00,LINETHICK0;; STICKLINE(CCI>0,E+CCI/350,E,12,0),Color0077FF;STICKLINE(CCI<0,E+CCI/350,E,12,0),ColorFF9900;END;IF AR=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:RSI'),Color00ff00,LINETHICK4;LC := REF(CLOSE,1);RSI:SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,ColorFF05FF,LINE THICK0;CRSI:="RSI.RSI3#WEEK";金叉RSI:STICKLINE(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),E,E*1.1,0.6,0),ColorFF 00FF;DRAWTEXT(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),E*1.1,'金叉'),COLOR0000FF;STICKLINE(RSI>CRSI,E+(RSI-CRSI)/50,E,12,0),Color0000FF;STICKLINE(RSI<CRSI,E+(RSI-CRSI)/50,E,12,0),Color00FF00;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:=EMA(VAR1,13)-EMA(VAR1,73);SD:=EMA(SK,2);XG:=((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.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) OR 金叉RSI);STICKLINE(XG,E,E*1.15,0.6,0),COLOR00FFFF;DRAWTEXT(XG,E*1.15,'突破'),COLOR00FFBB;END;IF AD=1 THEN BEGIN{DMI新编}DRAWTEXTABS(250,5,'技术指标:DMI'),Color0598ff,LINETHICK4;N:=21;M:=6;M1:=20;TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LO W)),N);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),N);DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),N);PDI:= DMP*100/TR1;MDI:DMM*100/TR1,Color05FFFF,LINETHICK0;ADX:= EMA((PDI-MDI)/(MDI+PDI)*100,M)*2;ADXR:=EMA(ADX,M);ADMA:=EMA(ADX,M1);OMD:=(ADX-2*ADMA+ADXR)/2;STICKLINE( OMD>0,E,E+OMD/100,12,0),COLORRED;STICKLINE(OMD<0,E,E+OMD/100,12,0),COLORGREEN;END;IF DM=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:DMA'),ColorFF55ff,LINETHICK4;DDD:=(MA(CLOSE,10)-MA(CLOSE,50));AMA:=MA(DDD,10);STICKLINE( DDD>AMA,E,E+(DDD-AMA),12,0),COLORFF22FF;STICKLINE(DDD<AMA,E,E+(DDD-AMA),12,0),COLOR99FF99;END;IF ZL=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:主力进出'),ColorFF55ff,LINETHICK4;jcs:=ZLSHORT;jcm:=ma(zlshort ,12);STICKLINE(jcs>jcm,E,E+(jcs-jcm)/CAPITAL*5000,12,0),COLOR222299; STICKLINE(jcs<jcm,E,E+(jcs-jcm)/CAPITAL*5000,12,0),COLORFFee00; END;。
大智慧短期底部指标公式
大智慧短期底部指标公式RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);短期底部:=LLV(OPEN,30);K:SMA(RSV,3,1);D:SMA(K,3,1);J:((3 * K) - (2 * D));AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);IF((K > D),K,D),COLORFF00FF;IF((K < D),D,K),COLORFFFF00;IF((J > D),J,D),LINETHICK2,COLOR0000FF;IF((J < D),D,J),LINETHICK2,COLOR00FF00;20,POINTDOT,COLOR00FF00;80,POINTDOT,COLOR00FF00;VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);底部1:IF(VAR6 ,20,0),COLORFFFF00;STICKLINE((CROSS(J,K) AND (底部 1 >= 20)),100,0,2,0),COLORFFFFFF;DRAWICON((CROSS(J,K) AND (底部1 >= 20)),100,1);DRAWTEXT((CROSS(J,K) AND (底部1 >= 20)),98,'全');STICKLINE((VAR6 <= (0 - 15)),80,4.88,2,0);DRAWTEXT((VAR6 <= (0 - 15)),80,'买'),COLORFFFFFF;STICKLINE((VAR6 <= (0 - 15)),80,60,2,0),COLOR0000FF;VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));VAR8:=(((CLOSE - VAR7) / VAR7) * 100);VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) < REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) > 2.5));VARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),5,1) / SMA(ABS((CLOSE - VARD)),5,1)) * 100);VARF:=(((HIGH + LOW) + CLOSE) / 3);VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR13:=(VAR11 AND VAR12);VAR14:=((((VARA >= (0 - 45)) AND (VARA <= (0 - 10))) AND (VARB <= (0 - 15))) AND (VARC <= (0 - 20)));VAR15:=(COUNT(VAR14,1) >= 1);VAR16:=(VAR13 AND VAR15);VAR17:=1;VAR18:=(CLOSE * VOL);VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1);VAR1A:=(1 * VAR19);VAR1B:=(VAR19 * 0.92);VAR1C:=EMA(CLOSE,34);VAR1D:=MA((VAR1C * 1.12),5);VAR1E:=MA((VAR1C * 0.82),5);VAR1F:=(CLOSE < VAR1E);VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17));VAR21:=HHV(HIGH,500);VAR22:=LLV(LOW,500);VAR23:=HHV(HIGH,250);VAR24:=LLV(LOW,250);VAR25:=HHV(HIGH,125);VAR26:=LLV(LOW,125);VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35);VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18);VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35);VAR2C:=VAR27;VAR2D:=VAR28;VAR2E:=VAR29;VAR2F:=VAR2A;VAR30:=VAR2B;VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));VAR32:=(INDEXA / 100000000);VAR33:=INDEXADV;VAR34:=INDEXDEC;VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);VAR37:=EMA(VAR35,10);VAR38:=EMA(VAR36,10);VAR39:=EMA(VAR37,10);VAR3A:=EMA(VAR38,20);VAR3B:=EMA(VAR37,3);VAR3C:=EMA(VAR39,6);VAR3D:=EMA(VAR3A,2);VAR3E:=(VAR3C - VAR3D);VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0));VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);VAR41:=VAR40;VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);VAR44:=(CLOSE - REF(MA(CLOSE,20),11));VAR45:=(((((((((((((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE < VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20 AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE < VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR1E) AND VAR31));VAR46:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR47:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR48:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR49:=REF(CLOSE,1);VAR4A:=((SMA(MAX((CLOSE - VAR49),0),5,1) / SMA(ABS((CLOSE - VAR49)),5,1)) * 100);VAR4B:=(((HIGH + LOW) + CLOSE) / 3);VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR4F:=(VAR11 AND VAR12);VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));VAR51:=(COUNT(VAR50,1) >= 1);VAR52:=(VAR4F AND VAR51);VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);VAR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR57:=REF(CLOSE,1);VAR58:=((SMA(MAX((CLOSE - VAR57),0),5,1) / SMA(ABS((CLOSE - VAR57)),5,1)) * 100);VAR59:=(((HIGH + LOW) + CLOSE) / 3);VAR5A:=((VAR59 - MA(VAR59,14)) / (0.015 * AVEDEV(VAR59,14)));VAR5B:=((((((VAR54 >= (0 - 15.8)) AND (VAR54 <= (0 - 12.2))) AND (VAR55 <= (0 - 20.8))) AND (VAR56 <= (0 - 27.5))) AND(VAR58 <= 11.7)) AND (VAR5A <= (0 - 145)));VAR5C:=9.999999884842+026;VAR5D:=(COST(10) * 0);VAR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));VAR61:=MA(CLOSE,3);VAR62:=(REF(CLOSE,2) * 0.865);VAR63:=(REF(CLOSE,13) * 0.772);VAR64:=MIN(VAR62,VAR63);VAR65:=((100 * VOL) / CAPITAL);VAR66:=MA(CLOSE,13);VAR67:=IF(((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8)),1,0);猎鹰出击:IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8))),120,0),LINETHICK2,COLOR0000FF;VAR68:=0;MACD:(VAR6 * 5),COLORSTICK,LINETHICK2;STICKLINE((CROSS(K,D) AND (BB10 > 1)),70,0,2,0),COLORCC99FF;DRAWTEXT((CROSS(K,D) AND (BB10 > 1)),64,'短买'),COLOR00FF00;DRAWICON((CROSS(K,D) AND (BB10 > 1)),70,0);底部预警:STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),5,0),COLOR88B7EA;VARQ:=MA(CLOSE,152);VARW:=MA(CLOSE,194.16);VAREE:=(VARW + (2 * STD(CLOSE,170)));VARR:=(VARQ + (2 * STD(CLOSE,170)));VART:=IF((DATE > 1080822),0,1);VAR611:=EMA(HHV(HIGH,500),21);VAR71:=EMA(HHV(HIGH,250),21);VAR81:=EMA(HHV(HIGH,90),21);VAR91:=EMA(LLV(LOW,500),21);VARA1:=EMA(LLV(LOW,250),21);VARB1:=EMA(LLV(LOW,90),21);VARC1:=EMA((((((((VAR91 * 0.96) + (VARA1 * 0.96)) + (VARB1 * 0.96)) + (VAR611 * 0.558)) + (VAR71 * 0.558)) + (VAR81 * 0.558)) / 6),21);VARD1:=EMA((((((((VAR91 * 1.25) + (VARA1 * 1.23)) + (VARB1 * 1.2)) + (VAR611 * 0.55)) + (VAR71 * 0.55)) + (VAR81 * 0.65)) / 6),21);VARE1:=EMA((((((((VAR91 * 1.3) + (VARA1 * 1.3)) + (VARB1 * 1.3)) + (VAR611 * 0.68)) + (VAR71 * 0.68)) + (VAR81 * 0.68)) / 6),21);VARF1:=EMA((((((VARC1 * 3) + (VARD1 * 2)) + VARE1) / 6) * 1.738),21);VAR101:=REF(LOW,1);VAR111:=((SMA(ABS((LOW - VAR101)),3,1) / SMA(MAX((LOW - VAR101),0),3,1)) * 100);VAR121:=EMA(IF(((CLOSE * 1.35) <= VARF1),(VAR111 * 10),(VAR111 / 10)),3);VAR131:=LLV(LOW,30);VAR141:=HHV(VAR121,30);VAR151:=IF(MA(CLOSE,58),1,0);VAR161:=((EMA(IF((LOW <= VAR131),((VAR121 + (VAR141 * 2)) / 2),0),3) / 618) * VAR151);VAR171:=(((IF((VAR161 > 50),50,VAR161) / 20) * 15) * VART);底部吸筹:STICKLINE((VAR171 > 0),0,VAR171,1,1),COLORFF00FF;STICKLINE(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,0,3,0),COLOR0000FF;DRAWTEXT(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,'抄底'),COLOR0000FF;STICKLINE(CROSS(90,J),88,100,2,0),COLOR00FF00;DRAWTEXT(CROSS(90,J),108,'逃'),COLORFFFFFF;STICKLINE(CROSS(J,(0 - 5)),0,10,6,0),COLOR00FF00;DRAWTEXT(CROSS(J,(0 - 5)),(0 - 4),'低吸'),COLOR00FF00;SG:=EMA(HHV(HIGH,1),8);X1:=EMA(CLOSE,8);X30:=((X1 < REF(X1,1)) AND (CLOSE < X1));X31:=IF(((SG < REF(SG,1)) OR X30),1,0);全仓出击:=((((COUNT((X31 = 1),4) = 3) AND (X31 = 0)) AND (((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) > 0.085)) * 89);STICKLINE(全仓出击>=89,0,100,6,0),COLOR0000FF;DRAWICON((全仓出击 >= 89),全仓出击,1);DRAWTEXT((全仓出击 >= 89),89,'大胆杀入');开始关注:STICKLINE((VAR6 <= (0 - 8)),5,25,7,0);STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,8,0),COLOR000078;STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,6,0),COLOR00009D;STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,5,0),COLOR0000FF;STICKLINE((CROSS(J,0) AND (VAR6 <= (0 -7))),0,100,2,0),COLOR007AB5;DRAWTEXT((CROSS(J,0) AND (VAR6 <= (0 - 7))),100,'导弹发射'),COLOR0000FF;均5:=MA(CLOSE,4);X7:=EMA(EMA(EMA(HIGH,9),9),9);海底:=(X7 * 0.92);海底2:=(X7 * 0.933);中轨道:=MA(CLOSE,2);DRAWTEXT(((CROSS(中轨道,均5) AND (LOW <= 海底)) AND (CLOSE >= 海底2)),85,'底部'),COLOR00FFFF;STICKLINE(((CROSS(中轨道,均5) AND (LOW <= 海底)) AND (CLOSE >= 海底2)),0,85,4,0),COLOR00FFFF;。
【股票指标公式下载】-【大智慧】多空博弈(主力、持币、吸筹区、取点)
【大智慧】多空博弈(主力、持币、吸筹区、取点)-指标公式源码买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);STICKLINE(买线>=卖线,-50+REF(HHV(H,0),DATE)/5,-50+REF(LLV(L,0),DATE)/5,6,0),COLORMAGENT A;STICKLINE(买线<卖线,-50+REF(HHV(H,0),DATE)/5,-50+REF(LLV(L,0),DATE)/5,6,0),COLORBLUE; RSV:=((((HHV(HIGH,10) - CLOSE) / (HHV(HIGH,10) - LLV(LOW,10))) * 200) - 125);散户:SMA(RSV,5,1)+15,COLORGREEN,LINETHICK1;RSV1:=((((CLOSE - LLV(LOW,10)) / (HHV(HIGH,10) - LLV(LOW,10))) * 200) - 105);主力:SMA(RSV1,5,1)+15,COLORRED,LINETHICK1;买进:=IF(主力>REF(主力,1),主力,0);持币:=IF(散户>REF(散户,1),散户,0);{P(10,1,100),A(5,1,100);}SVOL:=INTPART(SUM(V,0)/CAPITAL);TJ0:=SVOL>REF(SVOL,1) OR BARSSINCE(CLOSE)=0;S1:=BARSLAST(TJ0)+1;TJ2:=S1<REF(S1,1);S2:=IF(TJ2,REF(S1,1)+1,S1);S3:=SUM(TJ2,0);ZK1:="KD.K#WEEK"(9,3,3);ZD2:="KD.D#WEEK"(9,3,3);ZF1:="MACD.DIF#WEEK"(12,26,9);ZA2:="MACD.DEA#WEEK"(12,26,9);换手:=V/CAPITAL*100;JCD:=FILTER(CROSS(ZK1,ZD2) AND REF(ZD2,1)<30,13);取点:=BARSLAST(JCD);吸筹区:=IF(取点>0 AND 取点<61,取点,0);ZS1:=吸筹区;ZS2:=吸筹区+1;ZS3:=换手/5;ZSA:=IF(ZS1>0,SUM((ZS3),吸筹区+1),0);主力筹码:=ZSA;建仓天数:=ZS1;阶段总额(万):=SUM(AMOUNT/10000,S2)*100;阶段总量(手):=SUM(V,S2)*100;阶段成本(元):=(阶段总额(万)/(阶段总量(手)/100));换手冷清:STICKLINE(换手<3,-80,(换手+5-40)*2,0.0,0),COLORCYAN;{换手冷清:(换手<3,-80,(换手-6)*4,0.0,0);}换手活跃:STICKLINE(换手>=3 AND 换手<7,-80,(换手+5-40)*2,0.0,0),COLORYELLOW;{换手活跃:(换手>=3 AND 换手<7,-80,(换手-6)*4,0.0,0);}换手热烈:STICKLINE(换手>=7,-80,(换手+5-40)*2,0.5,0),COLORRED;{换手热烈:(换手>=7,-80,(换手-6)*4,0.5,0);}STICKLINE(JCD,(0-6)*4,6*6,0.5,0),COLORGREEN;DRAWTEXT(建仓天数,40,'建仓'),COLORGREEN;LL:=REF(CLOSE,1);MM:=SMA(MAX(CLOSE-LL,0),6,1)/SMA(ABS(CLOSE-LL),6,1)*100;出: IF(CROSS(80,MM),90,100),COLORCYAN;DRAWTEXT(CROSS(80,MM),MM,'卖 '),COLORWHITE;DRAWTEXT(CROSS(主力,散户),0,'买 '),COLORRED;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);A22:=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:=((A22 > 0) OR (A22 = 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);进场:STICKLINE(A11,-48,-30,2.5,0),COLORFF7700;加仓:STICKLINE(A12,-48,-28,2.5,0),COLORFF00FF;STICKLINE(A11,-48,-30,2.5,0),COLORFF7700;STICKLINE(A11,-48,-30,2,0),COLORFFDD00;STICKLINE(A11,-48,-30,1,0),COLORFFEE00;STICKLINE(A12,-48,-28,2.5,0),COLOR1020DD;STICKLINE(A12,-48,-28,2,0),COLOR1020EE;STICKLINE(A12,-48,-28,1,0),COLOR1020FF;DRAWTEXT(进场=5,-30,'进场'),COLORFFFF00;DRAWTEXT(加仓=10,-28,'加仓'),COLORFFFFFF;VAR2L:=REF(LOW,1);VAR3L:=SMA(ABS(LOW-VAR2L),3,1)/SMA(MAX(LOW-VAR2L,0),3,1)*110; VAR4L:=EMA(IF(CLOSE*1.3,VAR3L*10,VAR3L/10),3);VAR5L:=LLV(LOW,13);VAR6L:=HHV(VAR4L,13);VAR7L:=IF(MA(CLOSE,34),1,0);VAR8L:=EMA(IF(LOW<=VAR5L,(VAR4L+VAR6L*2)/2,0),3)/618*VAR7L; VAR9LL:=IF(VAR8L>110,110,VAR8L);STICKLINE(VAR9LL<REF(VAR9LL,1),48,48+VAR9LL,0.5,0),COLORYELLOW; RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV2,2,1);D:=SMA(K,2,1);J:=3*K-2*D;J1:=REVERSE(J);AA1:=REF(MA(C,1),10)>REF(MA(C,60),10);买点:CROSS(J,J1) AND AA1;STICKLINE(买点,0,30,5,0),COLOR0000FF;STICKLINE(买点,30,60,3,0),COLORWHITE;STICKLINE(买点,60,80,1,0),COLORYELLOW;DRAWTEXT(买点,40,'庄家出现!'),COLORFF00FF;【大智慧】多空博弈(主力、持币、吸筹区、取点)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】趋势幅图(趋势、奔牛、底部、抄底、逃顶、天线)
【大智慧】趋势幅图(趋势、奔牛、底部、抄底、逃顶、天线)-指标公式源码VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;VAR4:=EMA(VAR3,5);VAR5:=3*VAR3-2*VAR4;AA:=CROSS(VAR5,VAR3) AND VAR3<2.1 AND C>O;VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=LLV(LOW,13);VAR8:=HHV(HIGH,13);VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);趋势:VAR9,COLORFFFFFF,POINTDOT;STICKLINE(VAR9>VARA,VAR9,VARA,8,0),COLOR0000FF;STICKLINE(VAR9<=VARA,VAR9,VARA,8,0),COLOR00FF00 ;DRAWTEXT(AA,趋势,'牛'),COLORYELLOW;奔牛: EMA(0.382*REF(VAR9,2)+0.618*VAR9,6),COLORYELLOW;PARTLINE(奔牛,奔牛>REF(奔牛,1),RGB(255,0,0),奔牛<REF(奔牛,1),RGB(0,255,0)),LINETHICK2;PARTLINE(20,奔牛>REF(奔牛,1),RGB(255,0,0),奔牛<REF(奔牛,1),RGB(0,255,0)),POINTDOT,LINETHICK2;PARTLINE(50,奔牛>REF(奔牛,1),RGB(255,0,0),奔牛<REF(奔牛,1),RGB(0,255,0)),POINTDOT,LINETHICK2;PARTLINE(80,奔牛>REF(奔牛,1),RGB(255,0,0),奔牛<REF(奔牛,1),RGB(0,255,0)),POINTDOT,LINETHICK2;趋势!:5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA( SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINE THICK0,COLOR7F52AF;底部:= 5;抄底: IF(CROSS(趋势!,底部),60,0),LINETHICK1,STICK,COLORFF02FF;{超底:粉红柱}DRAWTEXT(抄底,50,'【抄】'),COLORYellow,LINETHICK1;{←抄底}天线:=100;{逃顶: IF(CROSS(天线,趋势!),1,0),LINETHICK0,STICK,COLORGREEN;} STICKLINE(CROSS(天线,趋势!),60,100,1,1),COLORGREEN;{逃顶:绿空心柱} DRAWTEXT(CROSS(天线,趋势!),60,'【逃】'),COLORWhite,LINETHICK1; VARMD1:=REF(CLOSE,1);VARMD2:=((SMA(MAX(CLOSE-VARMD1,0),7,1))/(SMA(ABS(CLOSE-VARMD1),7,1))) *(100);VARMD3:=CROSS(69,VARMD2);TMDD:=IF((DATE<=1341231),1,0);卖DD:=(FILTER(VARMD3,4))*(TMDD);DRAWTEXT(卖DD,100,'卖★'),COLORF9F900,LINETHICK2;【大智慧】趋势幅图(趋势、奔牛、底部、抄底、逃顶、天线)-指标公式效果图(文档来源:若水财经社区)。
股票-大智慧个股副图显示大盘K线图指标公式
大智慧个股副图显示大盘K线图指标公式DRAWGBKLAST(C0,STRIP(RGB(0,0,0),RGB(0,50,50),0)); DRAWTEXTABS(10,5,沙吾提制作),COLOR00FFFF,LINETHICK2; DPC:=INDEXC;DPO:=INDEXO;DPH:=INDEXH;DPL:=INDEXL;STICKLINE(DPCDPO,DPC,DPO,8,0),COLOR0000FF; STICKLINE(DPCDPO,DPH,DPL,0.5,0),COLOR0000FF; STICKLINE(DPCDPO,DPC,DPO,8,0),COLOR00FF00; STICKLINE(DPCDPO,DPH,DPL,0.5,0),COLOR00FF00;SH:=STKINDI(1A0001,1A0001SZ:=STKINDI(399001,399001IFSTRCMP(MARKETLABEL,SH)=0THENBEGINDRAWTEXTABS(200, 0,上证指数),LINETHICK5,Color6666FF;END;IFSTRCMP(MARKETLABEL,SZ)=0THENBEGINDRAWTEXTABS(200, 0,深圳成份指数),LINETHICK5,Color6666FF;END;上证MA1:=STKINDI(1A0001,MA.MA1深证MA1:=STKINDI(399001,MA.MA1上证MA2:=STKINDI(1A0001,MA.MA2深证MA2:=STKINDI(399001,MA.MA2上证MA3:=STKINDI(1A0001,MA.MA3深证MA3:=STKINDI(399001,MA.MA3上证MA4:=STKINDI(1A0001,MA.MA4深证MA4:=STKINDI(399001,MA.MA4上证MA5:=STKINDI(1A0001,MA.MA5深证MA5:=STKINDI(399001,MA.MA5上证MA6:=STKINDI(1A0001,MA.MA6深证MA6:=STKINDI(399001,MA.MA6大盘MA5:IF(STRCMP(MARKETLABEL,SH)=0,上证MA1,深证MA1),COLORFFFFFF;大盘MA10:IF(STRCMP(MARKETLABEL,SH)=0,上证MA2,深证MA2),COLOR00FFFF;大盘MA20:IF(STRCMP(MARKETLABEL,SH)=0,上证MA3,深证MA3),COLOR3333FF;大盘MA30:IF(STRCMP(MARKETLABEL,SH)=0,上证MA4,深证MA4),COLOR5399FF;大盘MA60:IF(STRCMP(MARKETLABEL,SH)=0,上证MA5,深证MA5),COLOR9900CC;大盘MA120:IF(STRCMP(MARKETLABEL,SH)=0,上证MA6,深证MA6),COLOR39FF00;DRAWTEXTABS(5,30,目前指数:+INDEXC+点),COLORFFFFFF;DRAWTEXTABS(5,50,昨日收盘:+REF(INDEXC,1)+点),COLORFFFFFF;DRAWTEXTABS(5,70,今日开盘:+INDEXO+点),COLORFFFFFF; DRAWTEXTABS(5,90,今日最高:+INDEXH+点),COLORFFFFFF; DRAWTEXTABS(5,110,今日最低:+INDEXL+点),COLORFFFFFF; DRAWTEXTABS(5,130,指数涨幅:+((INDEXC-REF(INDEXC,1))/INDEXC)*100+%),COLORFFFFFF;DRAWTEXTABS(5,150,上涨家数:+INDEXADV+家),COLORFF00FF;DRAWTEXTABS(5,170,走平家数:+INDEXDEC+家),COLOR00FFFF;DRAWTEXTABS(5,190,下跌家数:+INDEXDEC+家),COLOR39FF00;上证DIFF:=STKINDI(1A0001,MACD.DIFF深证DIFF:=STKINDI(399001,MACD.DIFF上证DEA:=STKINDI(1A0001,MACD.DEA深证DEA:=STKINDI(399001,MACD.DEA上证MACD:=STKINDI(1A0001,MACD.MACD深证MACD:=STKINDI(399001,MACD.MACD大盘DIFF:=IF(STRCMP(MARKETLABEL,SH)=0,上证DIFF,深证DIFF);大盘DEA:=IF(STRCMP(MARKETLABEL,SH)=0,上证DEA,深证DEA);大盘MACD:=IF(STRCMP(MARKETLABEL,SH)=0,上证MACD,深证MACD);DRAWTEXTABS(165,30,大盘DIFF:+大盘DIFF),COLORFFFFFF; DRAWTEXTABS(165,50,大盘DEA:+大盘DEA),COLOR00FFFF;DRAWTEXTABS(165,70,大盘MACD:+大盘MACD),COLORFF00FF;上证K:=STKINDI(1A0001,KDJ.K深证K:=STKINDI(399001,KDJ.K上证D:=STKINDI(1A0001,KDJ.D深证D:=STKINDI(399001,KDJ.D上证J:=STKINDI(1A0001,KDJ.J深证J:=STKINDI(399001,KDJ.J大盘K:=IF(STRCMP(MARKETLABEL,SH)=0,上证K,深证K);大盘D:=IF(STRCMP(MARKETLABEL,SH)=0,上证D,深证D);大盘J:=IF(STRCMP(MARKETLABEL,SH)=0,上证J,深证J); DRAWTEXTABS(165,90,大盘K:+大盘K),COLORFFFFFF;DRAWTEXTABS(165,110,大盘D:+大盘D),COLOR00FFFF;DRAWTEXTABS(165,130,大盘J:+大盘J),COLORFF00FF;DRAWTEXTABS(310,30,大盘5天均线:+大盘MA5),COLORFFFFFF,LINETHICK2;DRAWTEXTABS(310,50,大盘10天均线:+大盘MA10),COLOR00FFFF,LINETHICK2;DRAWTEXTABS(310,70,大盘20天均线:+大盘MA20),COLORFF00FF,LINETHICK2;DRAWTEXTABS(310,90,大盘30天均线:+大盘MA30),COLOR39FF00,LINETHICK2;DRAWTEXTABS(310,110,大盘60天均线:+大盘MA60),COLORFF3366,LINETHICK2;DRAWTEXTABS(310,130,大盘120天均线:+大盘MA120),COLORFFCC00,LINETHICK2;上证BIAS1:=STKINDI(1A0001,BIAS.BIAS1深证BIAS1:=STKINDI(399001,BIAS.BIAS1上证BIAS2:=STKINDI(1A0001,BIAS.BIAS2深证BIAS2:=STKINDI(399001,BIAS.BIAS2上证BIAS3:=STKINDI(1A0001,BIAS.BIAS3深证BIAS3:=STKINDI(399001,BIAS.BIAS3大盘BIAS1:=IF(STRCMP(MARKETLABEL,SH)=0,上证BIAS1,深证BIAS1);大盘BIAS2:=IF(STRCMP(MARKETLABEL,SH)=0,上证BIAS2,深证BIAS2);大盘BIAS3:=IF(STRCMP(MARKETLABEL,SH)=0,上证BIAS3,深证BIAS3);DRAWTEXTABS(165,150,大盘BIAS1:+大盘BIAS1),COLORFFFFFF;DRAWTEXTABS(165,170,大盘BIAS2:+大盘BIAS2),COLOR00FFFF;DRAWTEXTABS(165,190,大盘BIAS3:+大盘BIAS3),COLORFF00FF;大智慧个股副图显示大盘K线图指标公式实例图解:大智慧个股副图显示大盘K线图指标公式。
【股票指标公式下载】-【大智慧】筹码分布(获利筹码、亏损筹码、主力控筹)
【大智慧】筹码分布(获利筹码、亏损筹码、主力控筹)-指标公式源码DRAWGBKLAST(1,STRIP(RGB(4,1,28),RGB(4,1,35),0));获利筹码:EMA(WINNER(C)*70,5),Colorred;亏损筹码:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),Colorf0ff00; STICKLINE(亏损筹码>0,0,亏损筹码,5,0),COLOR66FF00;STICKLINE(亏损筹码>0,0,亏损筹码*0.9,5,0),COLOR66EE00; STICKLINE(亏损筹码>0,0,亏损筹码*0.85,5,0),COLOR66DD00; STICKLINE(亏损筹码>0,0,亏损筹码*0.8,5,0),COLOR66CC00; STICKLINE(亏损筹码>0,0,亏损筹码*0.75,5,0),COLOR66BB00; STICKLINE(亏损筹码>0,0,亏损筹码*0.7,5,0),COLOR66AA00; STICKLINE(亏损筹码>0,0,亏损筹码*0.65,5,0),COLOR669900; STICKLINE(亏损筹码>0,0,亏损筹码*0.6,5,0),COLOR668800; STICKLINE(亏损筹码>0,0,亏损筹码*0.55,5,0),COLOR667700; STICKLINE(亏损筹码>0,0,亏损筹码*0.5,5,0),COLOR666600; STICKLINE(亏损筹码>0,0,亏损筹码*0.45,5,0),COLOR665500; STICKLINE(亏损筹码>0,0,亏损筹码*0.4,5,0),COLOR664400; STICKLINE(亏损筹码>0,0,亏损筹码*0.35,5,0),COLOR663300; STICKLINE(亏损筹码>0,0,亏损筹码*0.3,5,0),COLOR662200; STICKLINE(亏损筹码>0,0,亏损筹码*0.25,5,0),COLOR661100; STICKLINE(亏损筹码>0,0,亏损筹码*0.2,5,0),COLOR660000;主力控筹:If(获利筹码>亏损筹码,获利筹码*2,获利筹码),colorred; STICKLINE(主力控筹>0,0,主力控筹,5,0),COLORFFFFFF;STICKLINE(主力控筹>0,0,主力控筹*0.9,5,0),COLOREEEEEE; STICKLINE(主力控筹>0,0,主力控筹*0.85,5,0),COLORDDDDDD; STICKLINE(主力控筹>0,0,主力控筹*0.8,5,0),COLORCCCCCC; STICKLINE(主力控筹>0,0,主力控筹*0.75,5,0),COLORBBBBBB; STICKLINE(主力控筹>0,0,主力控筹*0.7,5,0),COLORAAAAAA; STICKLINE(主力控筹>0,0,主力控筹*0.65,5,0),COLOR999999; STICKLINE(主力控筹>0,0,主力控筹*0.6,5,0),COLOR888888; STICKLINE(主力控筹>0,0,主力控筹*0.55,5,0),COLOR777777; STICKLINE(主力控筹>0,0,主力控筹*0.5,5,0),COLOR666666; STICKLINE(主力控筹>0,0,主力控筹*0.45,5,0),COLOR555555; STICKLINE(主力控筹>0,0,主力控筹*0.4,5,0),COLOR444444;STICKLINE(主力控筹>0,0,主力控筹*0.35,5,0),COLOR333333;STICKLINE(主力控筹>0,0,主力控筹*0.3,5,0),COLOR222222;STICKLINE(主力控筹>0,0,主力控筹*0.25,5,0),COLOR111111;STICKLINE(主力控筹>0,0,主力控筹*0.2,5,0),COLOR000000;STICKLINE(获利筹码>0,0,获利筹码,5,0),COLORFFFFFF;STICKLINE(获利筹码>0,0,获利筹码*0.9,5,0),COLOREEEEFF;STICKLINE(获利筹码>0,0,获利筹码*0.85,5,0),COLORDDDDFF;STICKLINE(获利筹码>0,0,获利筹码*0.8,5,0),COLORCCCCFF;STICKLINE(获利筹码>0,0,获利筹码*0.75,5,0),COLORBBBBFF;STICKLINE(获利筹码>0,0,获利筹码*0.7,5,0),COLORAAAAFF;STICKLINE(获利筹码>0,0,获利筹码*0.65,5,0),COLOR9999FF;STICKLINE(获利筹码>0,0,获利筹码*0.6,5,0),COLOR8888FF;STICKLINE(获利筹码>0,0,获利筹码*0.55,5,0),COLOR7777FF;STICKLINE(获利筹码>0,0,获利筹码*0.5,5,0),COLOR6666FF;STICKLINE(获利筹码>0,0,获利筹码*0.45,5,0),COLOR5555FF;STICKLINE(获利筹码>0,0,获利筹码*0.4,5,0),COLOR4444FF;STICKLINE(获利筹码>0,0,获利筹码*0.35,5,0),COLOR3333FF;STICKLINE(获利筹码>0,0,获利筹码*0.3,5,0),COLOR2222FF;STICKLINE(获利筹码>0,0,获利筹码*0.25,5,0),COLOR1111FF;STICKLINE(获利筹码>0,0,获利筹码*0.2,5,0),COLOR0000FF;AI:=AMOUNT/VOL/100;C0:=REF(C,2)*0.865;C1:=REF(C,13)*0.772;DSY:=100*vol/CApitAl;抄底:If((C-MIN(C0,C1))/C<0.1 AND SUM(DSY,5)/5<1.8,100, 0),Color00FF00; stickline(抄底,0,30,4,0),ColorFFFFFF;动态底部:EMA(IF(L<=LLV(l,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(l,1),0),30,1),0),3) *10,STICK,COLORYELLOW,LINETHICK2;SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/ (HHV(AMOUNT,20)/HHV(C,20))*100);STICKLINE(((CLOSE > 0) AND day=2),20,121,40,1),colorFFFFFF; STICKLINE(((SAT <= 5) AND day=2),21,(20 + SAT),35,0),colorFFFFFF; STICKLINE((((SAT > 5) AND (SAT <= 20)) AND day=2),21,(20 +SAT),35,0),colorCCFF88;STICKLINE((((SAT > 20) AND (SAT <= 40)) AND day=2),21,(20 + SAT),35,0),colorFF00FF;STICKLINE(((SAT > 40) AND day=2),21,(20 + SAT),35,0),color0000FF; 主力筹码:EMA(WINNER(CLOSE)*70,10),colorwhite;散户筹码:EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,10),color00ff00; stickline(主力筹码>散户筹码, 主力筹码,散户筹码,5,0),Color0AF5EF; stickline(主力筹码<散户筹码, 主力筹码,散户筹码,5,0),color00ff00; DRAWTEXTREL(10,900,'㊣老兵专用㊣'),linethick1,COLOR00EEff;【大智慧】筹码分布(获利筹码、亏损筹码、主力控筹)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】股东查询(副图)
【大智慧】股东查询(副图)-指标公式源码INPUT:X1(500,100,1000),Y(80,10,100),M(0);股东1:=PFSTR(4001,M);股东2:=PFSTR(4011,M);股东3:=PFSTR(4021,M);股东4:=PFSTR(4031,M);股东5:=PFSTR(4041,M);股东6:=PFSTR(4051,M);股东7:=PFSTR(4061,M);股东8:=PFSTR(4071,M);股东9:=PFSTR(4081,M);股东10:=PFSTR(4091,M);股东:=股东1+股东2+股东3+股东4+股东5+股东6+股东7+股东8+股东9+股东10;{DRAWTEXTREL(X1+100,450,'■提醒:请及时下载专业财务数据!'),COLOR0000FF;DRAWTEXTREL(X1+100,600,'■技巧:请手动修改以上股东名称,'),COLORFFFFFF; DRAWTEXTREL(X1+100,750,' 即可自由选择该股东所持有个股!'),COLORFFFFFF;DRAWTEXTREL(X1+100,900,'====改编自一品茶缘【股东查询】===='),COLOR00FFFF;}{以下设置副图显示方式}y1:=150;DRAWTEXTREL(20,20,'股票名称:'+'【'+STKLABEL+' '+STKNAME+'】'),COLOR00FFFF;DRAWTEXTREL(X1*0.97,40,'增减情况'),COLORFF00FF;DRAWTEXTREL(X1*0.97+100,40,'持股数(万股)'),Color8080FF;DRAWTEXTREL(X1*0.97+250,40,'持股比例(%)'),ColorBFBFFF; DRAWTEXTREL(20,y1,'1.'+股东1),COLOR00FF00;DRAWTEXTREL(X1*0.97,y1,PFSTR(4004,M)),COLORFF00FF;DRAW TEXTREL(X1*0.97+100,y1,STR(PFFIN(4002,M)/10000)),Color8080FF;DRAWTEXT REL(X1*0.97+250,y1,STR(PFFIN(4003,M))),ColorBFBFFF;DRAWTEXTREL(20,y1+y*1,'2.'+股东2),COLOR00FF00;DRAWTEXTREL(X1*0.97,y1+y*1,PFSTR(4014,M)),COLORFF00FF;DRAWTEXTREL(X1*0.97+100,y1+y*1,STR(PFFIN(4012,M)/10000)),Color8080FF; DRAWTEXTREL(X1*0.97+250,y1+y*1,STR(PFFIN(4013,M))),ColorBFBFFF; DRAWTEXTREL(20,y1+y*2,'3.'+股东3),COLOR00FF00;DRAWTEXTREL(X1*0.97,y1+y*2,PFSTR(4024,M)),COLORFF00FF; DRAWTEXTREL(X1*0.97+100,y1+y*2,STR(PFFIN(4022,M)/10000)),Color8080FF; DRAWTEXTREL(X1*0.97+250,y1+y*2,STR(PFFIN(4023,M))),ColorBFBFFF; DRAWTEXTREL(20,y1+y*3,'4.'+股东4),COLOR00FF00;DRAWTEXTREL(X1*0.97,y1+y*3,PFSTR(4034,M)),COLORFF00FF; DRAWTEXTREL(X1*0.97+100,y1+y*3,STR(PFFIN(4032,M)/10000)),Color8080FF; DRAWTEXTREL(X1*0.97+250,y1+y*3,STR(PFFIN(4033,M))),ColorBFBFFF; DRAWTEXTREL(20,y1+y*4,'5.'+股东5),COLOR00FF00;DRAWTEXTREL(X1*0.97,y1+y*4,PFSTR(4044,M)),COLORFF00FF; DRAWTEXTREL(X1*0.97+100,y1+y*4,STR(PFFIN(4042,M)/10000)),Color8080FF; DRAWTEXTREL(X1*0.97+250,y1+y*4,STR(PFFIN(4043,M))),ColorBFBFFF; DRAWTEXTREL(20,y1+y*5,'6.'+股东6),COLOR00FF00;DRAWTEXTREL(X1*0.97,y1+y*5,PFSTR(4054,M)),COLORFF00FF; DRAWTEXTREL(X1*0.97+100,y1+y*5,STR(PFFIN(4052,M)/10000)),Color8080FF; DRAWTEXTREL(X1*0.97+250,y1+y*5,STR(PFFIN(4053,M))),ColorBFBFFF; DRAWTEXTREL(20,y1+y*6,'7.'+股东7),COLOR00FF00;DRAWTEXTREL(X1*0.97,y1+y*6,PFSTR(4064,M)),COLORFF00FF; DRAWTEXTREL(X1*0.97+100,y1+y*6,STR(PFFIN(4062,M)/10000)),Color8080FF; DRAWTEXTREL(X1*0.97+250,y1+y*6,STR(PFFIN(4063,M))),ColorBFBFFF; DRAWTEXTREL(20,y1+y*7,'8.'+股东8),COLOR00FF00;DRAWTEXTREL(X1*0.97,y1+y*7,PFSTR(4074,M)),COLORFF00FF; DRAWTEXTREL(X1*0.97+100,y1+y*7,STR(PFFIN(4072,M)/10000)),Color8080FF; DRAWTEXTREL(X1*0.97+250,y1+y*7,STR(PFFIN(4073,M))),ColorBFBFFF; DRAWTEXTREL(20,y1+y*8,'9.'+股东9),COLOR00FF00;DRAWTEXTREL(X1*0.97,y1+y*8,PFSTR(4084,M)),COLORFF00FF; DRAWTEXTREL(X1*0.97+100,y1+y*8,STR(PFFIN(4082,M)/10000)),Color8080FF; DRAWTEXTREL(X1*0.97+250,y1+y*8,STR(PFFIN(4083,M))),ColorBFBFFF; DRAWTEXTREL(20,y1+y*9,'10.'+股东10),COLOR00FF00;DRAWTEXTREL(X1*0.97,y1+y*9,PFSTR(4094,M)),COLORFF00FF ;DRAWTEXTREL(X1*0.97+100,y1+y*9,STR(PFFIN(4092,M)/10000)),Color8080FF ;DRAWTEXTREL(X1*0.97+250,y1+y*9,STR(PFFIN(4093,M))),ColorBFBFFF;DRAWTEXTREL(20,y1+y*10,'流通股东人数: '+STR(PFFIN(4253,M))+' 与上期相比增减:'+STR(PFFIN(4253,M)-PFFIN(4253,M+1))+' 人均持流通股:'+STR(PFFIN(4254,M))+' 与上期相比人均持股增减:'+STR(PFFIN(4254,M)-PFFIN(4254,M+1))),COLOR00AAFF;总股本:=FINANCE2(35);DRAWTEXTABS(445,60 ,'A股:'+capital/100+'万'),Color0080FF,LINETHICK2; DRAWTEXTABS(445,80,'总股'+总股本+'万 '),LINETHICK2,Color0080FF;每股收益:=FINANCE2(3);每股市盈率:=DYNAINFO(39);每股净资产:=FINANCE2(4);销售毛利率:=FINANCE2(12);主营收入同比:=FINANCE2(11);净利润同比增长:=FINANCE2(10);每股公积金:=FINANCE2(7);每股未分配:=FINANCE2(8);DRAWTEXTABS(445 ,100,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),linethick2,COLORYELLOW;DRAWTEXTABS(445 ,120,'每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),Color62FFFF;DRAWTEXTABS(445 ,140,'每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),linethick2,COLORYELLOW;DRAWTEXTABS(445,160,'销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),LINETHICK1,Color62FFFF;DRAWTEXTABS(445,180,'主营收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),LINETHICK1,ColorACFFFF;DRAWTEXTABS(445,200,'净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),LINETHICK1,ColorACFFFF;DRAWTEXTABS(445 ,220,'每股公积金:'+NUMTOSTRN(每股公积金,2)+'元'),ColorFFFFFF;【大智慧】股东查询(副图)-指标公式效果图(文档来源:若水财经社区)。
大智慧经典版 指标及选股公式
选股公式金叉MACDDIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; 低位金叉OR 二次金叉;红进绿出V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);V AR5:=3*V AR3-2*VAR4;AA:CROSS(V AR5,V AR3) AND V AR3<2.1 AND C>O;仓位增减空:=EMA(C,5);均衡:=EMA(空,5);中轨:=HHV(MA(H,13),13);加仓:FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11);夺宝奇兵买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);v1:=ema(close,5);v2:=ema(ema(close,29)*1.01,10);买进条件and cross(v1,v2);中华方圆▲★{红▲、红★同时出现选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);红▲:=CROSS(Y,X);c1:=(CLOSE+LOW+HIGH)/3;c2:=EMA(c1,6);c3:=EMA(c2,5);红★:=CROSS(c2,c3);红▲and 红★;中华方圆□V AR1:=LLV(LOW,21);V AR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - V AR1) / (V AR2 - V AR1)) * 100),5); AK:=EMA((((CLOSE - VAR1) / (V AR2 - V AR1)) * 50),13); AB:=CROSS(AK1,AK);V AR3:=LLV(LOW,55);V AR4:=HHV(HIGH,34);V AR5:=EMA((((CLOSE - V AR3) / (V AR4 - V AR3)) * 100),3); V AR6:=((AK + V AR5) / 2);V AR8:=EMA(V AR6,5);BB:=EMA(((0.667 * REF(V AR8,1)) + (0.333 * V AR8)),2); BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);白色□:AB =1;中华方圆▲{红▲选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);红▲:CROSS(Y,X);中华方圆★{红★选股}c1:=(CLOSE+LOW+HIGH)/3;c2:=EMA(c1,6);c3:=EMA(c2,5);c4:=CROSS(c2,c3);红★:c4;黑马王N:=20;V AR2:=(CLOSE+HIGH+LOW)/(3);V AR3:=(EMA(V AR2,10));V AR4:=(REF(VAR3,1));V AR5:=((REF(HIGH,1)+REF(LOW,1))/(2));V AR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));xg:CROSS(V AR3,V AR4);红柱初现X4:=(L+H+C*4)/6;x6:=EMA(x4,19);x9:=(x6-REF(x6,1))/REF(x6,1)*100;红柱初现:=x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1);第1个红柱:红柱初现and ref(红柱初现,1)<1;紫黄同现A1:=EMA(C,7)-EMA(C,21); A2:=MA(A1,4); 买入:cross(A1,A2) AND A1-A2>0.03 and A2<-0.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);HSL:=((XVL/20)/1.15);攻击流量:=(((HSL*0.55)+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));LLJX:=EMA(攻击流量,3);B1:=REF(C,1);B2:=REF(C,2);SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(C<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2) AND REF(C,2)>REF(C,1),2,IF(C<REF(C,2) AND REF(C,2)<REF(C,1),-2,0))));SM:=IF(REF(SS,1)<>0,REF(SS,1),IF(REF(SS,2)<>0,REF(SS,2),IF(REF(SS,3)<>0,REF(SS,3),IF(REF(SS,5)<>0,REF(SS,5),IF(REF(SS,6)<>0,REF(SS,6),IF(REF(SS,7)<>0,REF(SS,7),0))))));DK:=IF(REF(SS,1)<>0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2)));C>REF(C,1)*1.035 AND C>AMOUNT/100/V AND COUNT(CROSS(LLJX,0),2)=1 AND CROSS(C,DK)AND C>SAR(10,2,20) AND C>MA(C,14) AND C>MA(C,20)AND BETWEEN(V/CAPITAL,0.01,0.08) AND CAPITAL<=2000000;上穿就买上升趋势:=EMA(CLOSE,5);支撑压力:=EMA(CLOSE,21);XG:CROSS(上升趋势,支撑压力);三线交汇B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分水岭:=IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),,;操作线:=分水岭-(EMA(C,3)-分水岭);CROSS(分水岭,操作线);立桩量AAA:=(3*C+H+L+O)/6;V AR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>V AR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:=TJ2=1;TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法则:=TJ3=1;成立:=三天法则AND 突破;条件成立:FILTER(成立,3);低进高出RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);CROSS(J,REF(J+0.01,1)) AND X AND J<19;财出水面V AR2:=(-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);操盘:=3*VAR3-2*VAR4;xg:CROSS(操盘,V AR3) AND V AR3<2.1 and c>o;绝对牛股Var1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(Var1,13)-EMA(Var1,73);SD:= EMA(SK,2);V1:(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));关注DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:=(MACD超跌* "MACD.MACD"(26,12,9))*(-1);MACD金叉:=CROSS(DIFF,DEA);关注: (MACD金叉AND (REF(MACD,1) < 0)) ;关注买MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA65:=MA(CLOSE,65);MA250:=MA(CLOSE,250);均线流:=(((((MA5 > MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 < MA30)) * 0.3); PL1:=(((CLOSE - MA60) / MA60) < 0.1);PL2:=(((CLOSE - MA250) / MA250) < 0.3);偏离率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:=(MACD超跌* "MACD.MACD"(26,12,9))*(-1);目标:=IF(均线流=0.3 AND MACD AND 偏离率=0.2 ,0.8,0);MBSJ:=BARSLAST((目标= 0.8));放量上涨:=(((VOL / REF(VOL,1)) >= 1.1) AND ((CLOSE / REF(CLOSE,1)) >= 1.01));SZSJ:=BARSLAST((放量上涨= 1));MACD金叉:=CROSS(DIFF,DEA);JCSJ:=BARSLAST((MACD金叉= 1));启动:((((MBSJ <= 20) AND (SZSJ <= 1)) AND (JCSJ <= 1)) * 1);老鸭头MA5 := MA(close,5);MA10 := MA(close,10);MA60 := MA(close,60);pday1 := barslast(cross(ma5,ma60));pday2 := barslast(cross(ma10,ma60));pday3 := barslast(high=hhv(high,pday2));pday4 := barslast(cross(ma10,ma5){ or (ref(ma10,1)<ref(ma5,1) and ma5=ma10)});pday5 := barslast(cross(ma5,ma10){ or (ref(ma5,1)=ref(ma10,1) and ma5>ma10)});a1:= pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;a2:= count(cross(ma10,ma5),pday2)=1;a3:=ma5>ma60 and ma10>ma60;(A1 AND A2 and a3) and FILTER(A1 AND A2 and a3 ,5);主升行情顶:=85;V AR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;CC:=SMA(V AR5,20,1);CC1:=SMA(CC,5,1);出击:CROSS(CC,CC1) AND (CC1 < 顶) ;超越庄股K2:=EMA(C,5);K3:=EMA(C,10);K5:=EMA(C,30);K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);CROSS(K8,0);强势拉升Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);跨越:=EMA(Q3, 3);V AR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线:=SMA(V AR12,3,1);CROSS(跨越,机构做空能量线);吸庄血{底部笑脸的信号买入}V AR1:=4*SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1),3.2,1); V AR2:=8;CROSS(V AR1,V AR2);智能操盘K2:=EMA(C,5);K3:=EMA(C,10);K5:=EMA(C,30);K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);买入:CROSS(K8,0);财富拐点ma3:=ema(c,3);ma5:=ema(c,5);var1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);Var2:=REF(Var1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var3:=REF(Var2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var4:=REF(Var3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var5:=REF(Var4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var6:=REF(Var5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var7:=REF(Var6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var8:=REF(Var7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var9:=REF(Var8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VarA:=REF(Var9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VarB:=REF(VarA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VarC:=REF(VarB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VarD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VarE:=REF(VarD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VarF:=REF(VarE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var10:=REF(VarF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var11:=REF(Var10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var12:=REF(Var11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var13:=REF(Var12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var14:=REF(Var13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var15:=REF(Var14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var16:=REF(Var15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var17:=REF(Var16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);Var18:=REF(Var17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);Var19:REF(VarD OR VarE OR VarF OR Var10 OR Var11 OR Var12 OR Var13 OR V ar14 OR Var15 OR Var16 OR Var17 OR Var18,1) AND V ar1 AND CROSS(MA3,MA5);金牌逃顶V AR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;V AR2:=SMA(V AR1,9,1)+100;V AR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V AR4:=SMA(V AR3,3,1);V AR5:=SMA(V AR4,3,1)+100;V AR6:=V AR5-V AR2;趋势:=IF(V AR6>45,V AR6-45,0);第一个粉色:ref(REF(趋势,1) >趋势,1) and REF(趋势,1)< 趋势;领头羊{绿线上穿白线}白色:=SMA(HIGH,21,2)*1.05;绿色:=SMA(CLOSE,2,1);领头羊:CROSS(绿色,白色);财神到RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;J1:=REVERSE(J);AA:=REF(MA(C,1),10)>REF(MA(C,60),10);买点:CROSS(J,J1) AND AA;MACD提示DIFF:=(EMA(CLOSE,3) - EMA(CLOSE,13));DEA:=EMA(DIFF,9);绿变红:CROSS(DIFF,DEA)变色MACDDIF:=EMA(CLOSE,8)-EMA(CLOSE,13);DEA:=EMA(DIF,9),;买卖频谱买线:=EMA(C,3);卖线:=EMA(SLOPE(C,21)*20+C,55);N:CROSS(买线,卖线);底部爆发V AR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5); V AR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);V AR03:=CROSS(V AR02,V AR01);V AR04:=REF(V AR02,2)<REF(V AR02,1) AND V AR02<REF(V AR02,1);V AR05:=COUNT(V AR03,7)>0 AND V AR04;V AR06:V AR05 AND COUNT(V AR05,5)=1;顶天立地V AR26:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);V AR27:=REVERSE(V AR26);V AR28:=SMA(VAR26,3,1);快线:=SMA(V AR28,3,1);慢线:=SMA(快线,3,1);金叉买:CROSS(快线,慢线) AND (快线<40);短线套利MA6:=MA(C,6);MA18:=MA(C,18);买进价:=((C-REF(MA6,1))/6+MA6)*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);加码价:=((C-REF(MA18,1))/18+MA18)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);(ref(买进条件,1) and 加码条件) OR (ref(加码条件,1) and 买进条件) ;雷电交加V ARF:=TROUGHBARS(3,15,1)<4;FILTER(V ARF=1,3);买必涨diff:=EMA(CLOSE,12)-EMA(CLOSE,26);dea:=EMA(diff,9);买入:CROSS(diff,dea);金叉:CROSS(DIF,DEA) AND DIF<0.3;要涨停陡峭度:=IF((BARSCOUNT(CLOSE) > 7),(100)*((MA(CLOSE,7))/(LLV(MA(CLOSE,7),7)) - 1),1); N:=IF((陡峭度> 0.35),6,65);V AR1:=((-((100)*(HHV(HIGH,N) - CLOSE))/(HHV(HIGH,N) - LLV(LOW,N))))*((DATE < 20170110)); 要涨停:(30)*(CROSS(V AR1,(-2)));指标公式涨停{参数M1 2 1000 5M2 2 1000 10M3 2 1000 20M4 2 1000 30M5 2 1000 60M6 2 1000 120M7 2 1000 250}MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);MA5:MA(CLOSE,M5);MA6:MA(CLOSE,M6);MA7:MA(CLOSE,M7);C3:=REF(C,1); 涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),2,0);STICKLINE(涨停,OPEN,CLOSE,5,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),2,0);STICKLINE(跌停,OPEN,CLOSE,5,0),COLORGREEN;黑马王N:=20;N1:=7;N2:=69;M3:=EMA(CLOSE,3);M8:EMA(CLOSE,8),CoLor008000;M13:EMA(M8,13),CoLor0000FF;M62:EMA(M8,55),CoLorF0F000;V AR1:=EMA(M13,62);M81:EMA(M62,81),CoLor00FFFF;M144:EMA(V AR1,144),Linethick2,CoLor0000FF;M250:EMA(V AR1,250),POINTDOT,Linethick2,CoLorF00FF0;V AR2:=(CLOSE+HIGH+LOW)/(3);V AR3:=(EMA(V AR2,10));V AR4:=(REF(VAR3,1));STICKLINE((V AR3>V AR4),V AR3,V AR4,4,0),CoLor00FFFF;STICKLINE((V AR3<V AR4),V AR3,V AR4,4,0),CoLorFF0000;V AR5:=((REF(HIGH,1)+REF(LOW,1))/(2));V AR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));DRAWTEXT(CROSS(VAR3,V AR4),(V AR3)*(0.98),'★'),CoLor00FFFF;DRAWTEXT(CROSS(VAR5,V AR6),(HIGH)*(1.04),'↓卖'),CoLor008000;V AR7:=REF(CLOSE,1);V AR8:=((SMA(MAX(CLOSE-V AR7,0),N1,1))/(SMA(ABS(CLOSE-V AR7),N1,1)))*(100);V AR9:=CROSS(N2,V AR8);V ARA:=(FILTER(V AR9,4));DRAWTEXT(V ARA,(HIGH)*(1.04),'↓卖'),CoLorFFFFFF;V ARB:=((2)*(CLOSE)+HIGH+LOW)/(4);V ARC:=LLV(LOW,34);V ARD:=HHV(HIGH,34);V ARE:=(EMA(((V ARB-VAR1)/(V AR5-V AR1))*(100),7));V ARF:=(EMA((0.667)*(REF(V ARE,1))+(0.333)*(VARE),5));DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((V ARE>=V ARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),CoLorFF00FF; DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((V ARE>V ARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),CoLor00FFFF;V AR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3));DRAWTEXT(IF((CLOSE<V AR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),CoLor0000FF;金叉MACDDIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:=2*(DIFF-DEA);STICKLINE(MACD>=0,MACD,0,4,1),COLORF00FF0;STICKLINE(MACD<0,MACD,0,4,1),COLORWHITE;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4,0 ),COLOR00AAFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3.3,0 ),COLOR00BBFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR00CCFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.65,0 ),COLOR00DDFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.1,0 ),COLOR00EEFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.55,0 ),COLOR00FFFF;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4 ,0 ),COLOR0000AA;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3.3 ,0 ),COLOR0011BB;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR0022CC;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.65 ,0 ),COLOR0033DD;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.1 ,0 ),COLOR0044EE;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.55 ,0 ),COLOR0055FF;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORAA00BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORBB11BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORCC22BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.65,0 ),COLORDD33BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.1,0 ),COLOREE44BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFF55BB;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORFFAA00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORFFBB11;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORFFCC22;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.65 ,0 ),COLORFFDD33;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.1 ,0 ),COLORFFEE44;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFFFF55;IF(DIFF<0,DIFF,0),COLORRED,LINETHICK1;IF(DIFF<0,0,DIFF),COLORYELLOW,LINETHICK1;IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK1;IF(DIFF>DEA,DEA,DEA),COLORWHITE,LINETHICK1;↑低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;STICKLINE(↑低位金叉,0,-0.5,2,0),COLORYELLOW;DRAWTEXT(↑低位金叉,-0.4,' ↑低位金叉'),COLORYELLOW;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));↑二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;STICKLINE(↑二次金叉,0,-0.2,5,0),COLORFF00FF;DRAWICON(↑二次金叉,DEA*1.2,11) ;DRAWTEXT(↑二次金叉,-0.2,' ↑二次金叉'),COLORFF00FF;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));↑底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); STICKLINE(↑底背离,0,0.2,3,0),COLOR00FF00;DRAWLINE(A1=0,DEA,↑底背离,DEA,0),COLORRED,LINETHICK2;DRAWTEXT(↑底背离,0.2,' ↑底背离'),COLOR00FF00;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));↑顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF); DRAWLINE(A2=0,DEA,↑顶背离,DEA,0),COLORGREEN,LINETHICK2红进绿出V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);V AR5:=3*V AR3-2*VAR4;AA:=CROSS(VAR5,V AR3) AND V AR3<2.1 AND C>O;V AR6:=(2*CLOSE+HIGH+LOW)/4;V AR7:=LLV(LOW,13);V AR8:=HHV(HIGH,13);V AR9:=EMA((V AR6-V AR7)/(V AR8-V AR7)*100,13);V ARA:=EMA(0.667*REF(V AR9,1)+0.333*V AR9,2);多:V AR9,COLORRED,POINTDOT;空:EMA(0.382*REF(VAR9,2)+0.618*V AR9,12),COLORGREEN;STICKLINE(V AR9>V ARA,V AR9,V ARA,6,0),COLORRED;STICKLINE(V AR9<=V ARA,V AR9,V ARA,6,0),COLORGREEN;DRAWTEXT(AA,10,'底'),COLORYELLOW;战无不胜危机线:85,colorred;中间线:50,colorwhite;安全线:15,colorgreen;v1:=(2*close+high+low)/4;v2:=llv(low,34);va:=hhv(high,34);防线b:=ema((v1-v2)/(va-v2)*100,13);防线bb:=ema((0.667*ref(防线b,1)+0.333*防线b),2);战术线:防线b,coloryellow,pointdot;战略线:ema(0.382*ref(防线b,2)+0.618*防线b,12),coloryellow;stickline(防线b>防线bb,防线b,防线bb,6,0),colorred;stickline(防线b<=防线bb,防线b,防线bb,6,0),;紫黄同现{紫黄同现股票将大涨}JJ :=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);SD := EMA(SK,3);SP := EMA(SK,10);A1:=EMA(C,7)-EMA(C,21);B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);B1,COLORSTICK;X1:=V/SUM(V,13);X2:=DMA(C,X1);X3:=(C-X2)/X2*40;L2:=MA(AMOUNT/(100*V),13);CYS13:= (C-L2)/L2*100;做多:IF(A1>=B1,A1,B1),LINETHICK2,COLORFF00FF;做空:IF(B1-A1,B1,A1),COLORGREEN,LINETHICK2;强庄:STICKLINE(CYS13>5,0,-做空,2,0 ),COLORYELLOW;主力强度:STICKLINE(X3>0 AND 做多>0,做多+0.1,做多,1,0),COLORFF80FF;C>MA(C,30),COLORFF80FF,LINETHICK2;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J1:=DIFF;J2:=DEA;J3:=K;J4:=D;VL:=REF(LOW,1); VH:=REF(H,1);V AR1:=SMA(ABS(H-VH),13,1)/SMA(MAX(H-VH,0),13,1)*100;V AR2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;V AR3:=REF(CLOSE,1);V AR4:=MA(V AR2,13);V AR5:=LLV(L,34);V AR6:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;V AR7:=CROSS(93,V AR6);V AR8:=EMA(IF(L<=VAR5,V AR4,0),3);V AR9:=H>LLV(L,0)*7;V AR10:=(SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1));V AR11:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - (V AR10 * 10.9);上攻:FILTER(CROSS(J1,J2) AND VOL>REF(SUM(VOL,5),1),3),COLOR0066FF,LINETHICK2;WR10:=-100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10)),COLORWHITE,LINETHICK1;WR45:=-100*(HHV(HIGH,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45)),COLORFFB900,LINETHICK1;WR99:=-100*(HHV(HIGH,99)-CLOSE)/(HHV(HIGH,99)-LLV (LOW,99)),COLORRED,LINETHICK1;顶:= 0, LINETHICK2 ,COLOR446600;底1:=-95, LINETHICK2 ,COLOR446600;红柱初现工作线:MA(CLOSE,14),COLORRED,LINETHICK2;操盘线:MA(CLOSE,26),Color00A800,LINETHICK2;X1:=MA(C,1);X2:=SMA(SMA(SMA(x1,2,1),2,1),2,1);X3:=MA(x2,3);X4:=(L+H+C*4)/6;X5:=EMA(x4,12);x6:=EMA(x4,19);x7:=(x5-REF(x5,1))/REF(x5,1)*100;x9:=(x6-REF(x6,1))/REF(x6,1)*100;G:=BARSLAST(CROSS(x7,0));X8:=REF(x4,G);A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30)) *100,5);A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;A5:=EMA(CLOSE,12)-EMA(CLOSE,26);A6:=EMA(A5,9);A7:=(A5-A6);STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),HIGH,LOW,0.5,0),color0000CD;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,8,0),color070084;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,7,0),color0000A3;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,6,0),color0000B7;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,5,0),color0000CD;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,4,0),color0000E9;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,2,0),color0754E9;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,0.6,0),Color68B8FF;Z1:MA(CLOSE,5),COLORYELLOW,;Z2:MA(CLOSE,55){,ColorFF8080},Color00FF00,LINETHICK2;玄黄吉星XF: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);V AR2:=MA(CLOSE,80)-MA(CLOSE,13)/3;神奇趋势线:=MA((CLOSE-V AR2)/V AR2,1);狙击:DRAWTEXT(CROSS(神奇趋势线,0) AND LOW/REF(HIGH,1)<1.012,LOW,'狙击'),COLORYELLOW;盈利临界: DRAWTEXT(COUNT(神奇趋势线>REF(神奇趋势线,1),3)=3 AND COUNT(神奇趋势线<0,10)=10 AND REF(神奇趋势线,3)=LLV(神奇趋势线,10),LOW,'盈利临界'),COLORYELLOW;参与: DRAWTEXT(REF(神奇趋势线,2)=LLV(神奇趋势线,20) AND REF(神奇趋势线,2)<0.071 AND REF(神奇趋势线,2)<REF(神奇趋势线,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1),LOW,'参与'),COLORYELLOW;DRAWICON(CROSS(EMA(CLOSE,8),EMA(EMA(CLOSE,8),20)) AND EMA(CLOSE,8)<MA(CLOSE,120),LOW,1),COLORRED;DRAWTEXT((WINNER(CLOSE)-WINNER(OPEN))*100>=17 AND VOL/CAPITAL*100<=2,LOW,'无量长阳,谨慎'),COLORWHITE;V AR1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR21:=SMA(VAR1,20,1);V AR3:=SMA(V AR21,15,1);V AR4:=100-3*VAR21+2*V AR3;V AR5:=(3*VAR21+2*V AR3)/4;V AR6:=ABS(ABS(V AR5)-ABS(V AR4));V AR7:=ABS(ABS(V AR5)-ABS(V AR6));阴跌区域:=V AR4-V AR7;见顶区域:=阴跌区域<0;均衡:=V AR5-V AR7;DRAWTEXT(CROSS(阴跌区域,均衡),LOW,'阴跌延续'),COLORGREEN;DRAWTEXT(CROSS(阴跌区域,-0.1),LOW,'见顶回落'),COLORWHITE;STICKLINE(C>=O,C,H,0.1,0),COLORRED;TTZF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 {AND TTZF>=ZF};STICKLINE(TTZF>=2.50 ,O ,C ,8,0),COLOR00FFFF;中轨:HHV(MA(H,11),15),COLORRED;趋势:LLV(MA(H,11),1),COLORGREEN;三合成RSI6:SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,colorwhite;DIFF:=EMA(C,5)-EMA(C,20);DEA:=EMA(DIFF,10);MACD:800*(DIFF-DEA)/EMA(C,30),colorSTICK,linethick3;RSV:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;K20:SMA(RSV,5,1),COLORyellow;D20:SMA(K20,5,1),COLORFF00ff;20;50;80;DRAWICON(count(c>ref(c,1),5)=5,h*1.01,3);DRAWICON(count(c<ref(c,1),5)=5,l*0.995,1);机构能量做多能量线: SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;做空能量线: SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3; 20,pointdot,colorf00ff0;50,pointdot,colorgreen;80,pointdot,colorwhite;短线之星Var1:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));Var2:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));Var3:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),28);买入信号: IF(Var2<MA(Var3,6),MA(Var3,6),Var2),colorred ;卖出信号: IF(Var1>MA(Var3,6),MA(Var3,6),Var1),colorgreen ;强弱线: MA(Var3,6),coloryellow ,linethick2 ;极品逃顶V AR2:=LLV(LOW,10);V AR3:=HHV(HIGH,25);阶段卖出: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓卖出: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-V AR2)/(V AR3-V AR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00; 底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2); DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);强弱分界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:动力线,COLORA8A8A8;超级逃顶Var2:=llv(low,10);var3:=hhv(high,25);3.5,color0088ff;清仓卖出: 3.5;动力线:= ema((close-var2)/(var3-var2)*4,4);stickline(动力线>ref(动力线,1) ,动力线,ref(动力线,1),8 ,1),colorred;stickline(动力线<=ref(动力线,1) ,动力线,ref(动力线,1),8 ,1),colorgreen;底部介入:0.2,colorgreen;重点关注:0.5, coloryellow;drawicon( filter(cross(动力线,重点关注),20),动力线+0.02 ,1);drawicon( filter(cross(清仓卖出,动力线),20),动力线+0.02,2);drawicon( filter(cross(动力线,底部介入),20),动力线+0.02 ,1);drawicon( filter(cross(JDMC,动力线),20),动力线+0.02,2);强弱分界线:1.75,pointdot,linethick2,colordddddd;抄底逃顶趋势: 5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW ,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,2 7)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLOR7F52AF;趋势1: EMA(MA(趋势,5),3),LINETHICK0,COLORA6B8C1;STICKLINE(趋势>=趋势1,趋势,趋势1,5,0),COLOR7F52AF;STICKLINE(趋势<趋势1,趋势,趋势1,5,0),COLORA6B8C1;STICKLINE(趋势>108 AND 趋势>=趋势1,趋势,108,5,0),COLORFF0000;STICKLINE(趋势1>108 AND 趋势<趋势1,趋势1,108,5,0),COLORFFFFFF;STICKLINE(趋势<0 AND 趋势<趋势1,趋势,0,5,0),COLORF00FF0;STICKLINE(趋势1<0 AND 趋势>趋势1,趋势1,0,5,0),COLORF0F000;V1:= MA(CLOSE,5)=HHV(MA(CLOSE,5),20);V2:= MA(CLOSE,5)>MA(CLOSE,20);V3:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险: IF(V1 AND V2 AND V3,30,0),LINETHICK0,STICK,COLOR00FF00;V11:= MA(CLOSE,5)=HHV(MA(CLOSE,5),120);V21:= MA(CLOSE,5)>MA(CLOSE,120);V31:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险1: IF(V11 AND V21 AND V31,60,0),LINETHICK0,STICK,COLORF0F000;底部: 5,LINETHICK0,COLOR00FFFF;抄底: IF(CROSS(趋势,底部),60,0),LINETHICK2,STICK,COLOR00FFFF;DRAWTEXT(抄底,50,'抄底'),COLOR0000FF;天线: 108,LINETHICK0,COLORFF9D00;逃顶: IF(CROSS(天线,趋势),1,0),LINETHICK0,STICK,COLORFF9D00;STICKLINE(CROSS(天线,趋势),90,108,3,0),COLORFF9D00;DRAWTEXT(CROSS(天线,趋势),85,'逃顶'),COLORFF9D00;金牌黑马A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))黑马线:EMA(A1,5),LINETHICK2,COLOR6600FF;A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;A3:=EMA(C,5);A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A2<0,7),黑马线,'跑'),COLOR00FF00;DRAWTEXT(CROSS(A1,黑马线)AND 黑马线<A5,黑马线,'黑马');DRAWTEXT(CROSS(黑马线,A5)AND 趋势线<80,黑马线,'追涨');DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大黑马');底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED;DRAWICON(底部AND A3>REF(A3,1),25,4);机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0; 大势已去:IF(CROSS(黑马线,A1)AND 黑马线>70 AND 趋势线>80,90,100),COLORFF0000;中短长线90,COLOR9966FF,LINETHICK2;80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;长期线:MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100,color9900FF;短期线:-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100,color888888;中期线:EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100,coloryellow,linethick2;见顶:(ref(中期线,1)>85 and ref(短期线,1)>85 and ref(长期线,1)>65) and cross(长期线,短期线) ;顶部区域:(中期线<ref(中期线,1) and ref(中期线,1)>80) and (ref(短期线,1)>95 or ref(短期线,2)>95 ) and 长期线>60 and 短期线<83.5and 短期线<中期线and 短期线<长期线+4;顶部:=filter(顶部区域,4);底部区域:(长期线<12 and 中期线<8 and (短期线<7.2 or ref(短期线,1)<5) and (中期线>ref(中期线,1) or 短期线>ref(短期线,1)))or (长期线<8 and 中期线<7 and 短期线<15 and 短期线>ref(短期线,1)) or (长期线<10 and 中期线<7 and 短期线<1) ;stickline( 顶部,99,103,20,1 ),colorred,linethick2;stickline( 底部区域,-4,0,22,0 ),colorgreen;低位金叉:长期线<15 and ref(长期线,1)<15 and 中期线<18 and 短期线>ref(短期线,1) and cross(短期线,长期线) and 短期线>中期线and (ref(短期线,1)<5 or ref(短期线,2)<5 ) and (中期线>=长期线or ref( 短期线,1)<1 );stickline( 低位金叉,0,5,11,0 ),colorred;仓位增减(主图)。
【股票指标公式下载】-【大智慧】完美MACD(均线、黄金分割、中心值、支撑)
【大智慧】完美MACD(均线、黄金分割、中心值、支撑)-指标公式源码{以下设置均线};MA1:MA(C,5),colorFFFFFF,LAYER0;MA2:MA(C,10),color00CCFF,LAYER0;MA3:MA(C,20),colorFF00FF;MA4:MA(C,30),color00FF00;{以下设置黄金分割};W:=BARSLAST(DISPSTATUS=1);P:=BACKSET(DISPSTATUS=2,W/2+20);K:=BARSLAST(CROSS(P,0.5));KJ:=HHVALL(HIGH)-LLVALL(LOW);平衡:LLVALL(LOW)+KJ/2,COLOR888888,POINTDOT,PRECIS2,LAYER0;压力:IF(K>=0,HHVALL(HIGH)-KJ*0.191,平衡),COLOR5050FF,POINTDOT,PRECIS2,LAYER0;支撑:IF(K>=0,LLVALL(LOW)+KJ*0.191,平衡),COLORbbff55,POINTDOT,PRECIS2,LAYER0;中心值:=支撑*0.9;{以下设置MACD};FF:=EMA(CLOSE,12)-EMA(CLOSE,26);AA:=EMA(FF,9);MMD:=2*(FF-AA);QDIFF: 中心值+FF,COLORFFFFFF,linethick1,LAYER0;QDEA: 中心值+AA,COLORYELLOW,linethick1,LAYER0;STICKLINE(MMD>=0, 中心值+MMD, 中心值,1,0),COLOR5050FF;STICKLINE(MMD<0, 中心值, 中心值+MMD,1,0),COLORFFFF00;两周:=ALL(MMD<0,10);十八天:=ALL(MMD<0,18);STICKLINE(MMD<0 AND 两周, 中心值, 中心值+MMD,1,0),COLOR00DDDD; STICKLINE(MMD<0 AND 十八天, 中心值, 中心值+MMD,1,0),COLORFF00FF;【大智慧】完美MACD(均线、黄金分割、中心值、支撑)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】预测收盘(预测当天最低价、预测收盘价)
【大智慧】预测收盘(预测当天最低价、预测收盘价)-指标公式源码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;【大智慧】预测收盘(预测当天最低价、预测收盘价)-指标公式效果图(文档来源:若水财经社区)。
大智慧指标公式源码精品打包
大智慧指标公式源码精品打包1.MACD指标:MACD是移动平均线收敛/发散指标的缩写。
计算MACD指标需要用到指数移动平均线(EMA)。
下面是计算MACD指标的源码:```pythondef calculate_macd(close_price, fast_period=12,slow_period=26, signal_period=9):ema_fast = close_price.ewm(span=fast_period,adjust=False).meanema_slow = close_price.ewm(span=slow_period,adjust=False).meanmacd_line = ema_fast - ema_slowsignal_line = macd_line.ewm(span=signal_period,adjust=False).meanhistogram = macd_line - signal_linereturn macd_line, signal_line, histogram```2.RSI指标:RSI是相对强弱指标的英文缩写,用来衡量市场超买或超卖的程度。
计算RSI指标需要用到价格的涨跌幅和移动平均线(SMA)。
下面是计算RSI指标的源码:```pythondef calculate_rsi(close_price, n=14):delta = close_price.diffup = delta.copydown = delta.copyup[up < 0] = 0down[down > 0] = 0average_gain = up.rolling(window=n).meanaverage_loss = abs(down.rolling(window=n).mean()rs = average_gain / average_lossrsi = 100 - (100 / (1 + rs))return rsi```3.KDJ指标:KDJ指标是一种超买超卖指标,用来衡量市场的超买超卖情况。
智能macd指标公式
智能macd指标公式
智能MACD指标是一种重要的技术分析指标,它以MACD线和信号线的结合来反映市场的买卖信号。
它的计算公式如下:
MACD(英文):
DIFF=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)。
DEA=EMA(DIF,MID)。
MACD=(DIFF-DEA)*2。
简单地讲,智能MACD指标是将大周期EMA与小周期EMA的差值与更小的周期的EMA的差值相比较。
它的最大特点是它的灵敏度较高,可以很快发现行情的转势,一般情况下,MACD柱状图由正转负、负转正,以及两条线的交叉等形态来反映价格的变动情况。
智能MACD的参数有多种组合,比如12、26、9、18、25、27等,每个参数组合有其各自的特点。
一般来说,参数较大,指标反映市场趋势较长,较大波动变化会比较慢。
反之,参数较小,指标反映市场趋势较短,较小波动变化会变得更快。
大智慧MACD、KDJ、RSI、DMI经典指标顶底背离4合一
大智慧MACD、KDJ、RSI、DMI经典指标顶底背离4合一[原创 2009-07-29 08:17:21]字号:大中小MACD、KDJ、RSI、DMI经典指标顶底背离4合一源码:DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD :=2*(DIFF-DEA), COLORSTICK,LINETHICK2;TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;PDM:= SUM(IF(HD>0 AND HD>LD,HD,0),14);MDM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);PDI:= PDM*100/TR;MDI:= MDM*100/TR;A1:=BARSLAST(ref(cross("macd.diff"(12,26,9),"macd.dea"(12 ,26,9)),1));B1:=ref(c,A1+1)>c and ref("macd.diff"(12,26,9),A1+1)<"macd.diff"(12,26,9) and cross("macd.diff"(12,26,9),"macd.dea"(12,26,9));A2:=BARSLAST(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));B2:=ref(c,A2+1)>c and ref("kdj.k"(9,3,3),A2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));A3:=BARSLAST(ref(cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12, 24)),1));B3:=ref(c,A3+1)>c and ref("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) and cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));C1:=BARSLAST(ref(cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)),1));D1:=ref(c,C1+1)<c and ref("macd.diff"(12,26,9),C1+1)>"macd.diff"(12,26,9) and cross("macd.dea"(12,26,9),"macd.diff"(12,26,9));C2:=BARSLAST(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));D2:=ref(c,C2+1)<c and ref("kdj.k"(9,3,3),C2+1)>"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3));C3:=BARSLAST(ref(cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12, 24)),1));D3:=ref(c,C3+1)<c and ref("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) and cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));C4:=BARSLAST(ref(cross(mdi,pdi),1));D4:=ref(c,C+1)<c and ref(mdi,C4+1)>mdi and cross(mdi,pdi);A4:=BARSLAST(ref(cross(PDI,MDI),1));B4:=ref(c,A4+1)>c and ref(pdi,A4+1)<pdi and cross(pdi,mdi);DMI底背:IF(B4>0,-0.1,0),COLOR0099FF,POINTDOT;MACD底背:if(B1>0,-0.1,0),colorred,pointdot;KDJ底背:if(B2>0,-0.1,0),colorff00ff,pointdot;RSI底背:if(B3>0,-0.1,0),coloryellow,pointdot;DMI顶背:IF(D4>0,0.1,0),COLORBLUE,POINTDOT;MACD顶背:if(D1>0,0.1,0),color00ff00,pointdot;KDJ顶背:if(D2>0,0.1,0),colorffcc66,pointdot;RSI顶背:if(D3>0,0.1,0),colorwhite,pointdot;STICKLINE(B1>0,-0.1,0,6,0),colorred;STICKLINE(B2>0,-0.1,0,6,0),colorff00ff;STICKLINE(B3>0,-0.1,0,6,0),coloryellow;STICKLINE(d1>0,0.1,0,6,0),color00ff00;STICKLINE(d2>0,0.1,0,6,0),colorffcc66;STICKLINE(d3>0,0.1,0,6,0),colorwhite;STICKLINE(B4>0,-0.1,0,6,0),color0099ff; STICKLINE(D4>0,0.1,0,6,0),colorblue;。