【股票指标公式下载】-【通达信】新股海神偷(目标出现、跟踪)
【股票指标公式下载】-【通达信】仿决策曲线(KDJ、MACD、TRIX、DMI、RSI)
【通达信】仿决策曲线(KDJ、MACD、TRIX、DMI、RSI)-指标公式源码MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);P01:=IF(MA1>MA2,1,IF(MA2>MA1,-1,0));MA3:=MA(CLOSE,3);MA4:=MA(CLOSE,5);P02:=IF(MA3>MA4,1,IF(MA4>MA3,-1,0));MA5:=MA(CLOSE,12);MA6:=MA(CLOSE,50);P03:=IF(MA5>MA6,1,IF(MA6>MA5,-1,0));{KDJ}RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;K:=EMA(RSV,3);D:=EMA(K,3);P04:=IF(K>D,1,IF(D>K,-1,0));{MACD}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;P05:=IF(DIF>DEA,1,IF(DEA>DIF,-1,0));{TRIX}TR:=EMA(EMA(EMA(CLOSE,12),12),12);TRIX:=(TR-REF(TR,1))/REF(TR,1)*100;MATRIX:=MA(TRIX,9) ;P06:=IF(TRIX>MATRIX,1,IF(MATRIX>TRIX,-1,0));{DMI}TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LO W)),7);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);PDI:= DMP*100/TR;MDI:= DMM*100/TR;ADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);ADXR:=EMA(ADX,7);P07:=IF(PDI>MDI AND ADX>PDI AND ADX>50,3,IF(PDI<MDI AND ADX>MDI AND ADX>50,-3,0));{9}{RSI}LC:=REF(CLOSE,1);RSI1:=EMA(MAX(CLOSE-LC,0),5)/EMA(ABS(CLOSE-LC),5)*100;{10} P08:=IF(RSI1>80,1,IF(RSI1<20,-1,0));{10}{CCI}TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,8))/(0.015*AVEDEV(TYP,8));P09:=IF(CCI>180,2,IF(CCI<-180,-2,0));{12}{W%R}WR1:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;P10:= IF(WR1>80,1,IF(WR1<20,-1,0));{13}{OSC}OSC:=100*(CLOSE-MA(CLOSE,20));P11:=IF(OSC>0,1,IF(OSC<0,-1,0));{14}{MTM}MOM:=CLOSE-REF(CLOSE,7);P12:=IF(MOM>0,1,IF(MOM<0,-1,0));{15}{DPO}DPO:=CLOSE-REF(MA(CLOSE,11),11/2+1);P13:=IF(DPO>0,1,IF(DPO<0,-1,0));{16}{布林线}MB:=MA(CLOSE,12);R:=(CLOSE-MB)*(CLOSE-MB);X1:=MA(R,12);X2:=SQRT(X1);D1:=1;UPPER:=MB+(D1*X2);LOWER:=MB-(D1*X2);P14:=IF(CLOSE>UPPER,2,IF(CLOSE<LOWER,-2,0));{18} {BRAR}BR:=SUM(MAX(0,HIGH-REF(CLOSE,1)),14)/SUM(MAX(0,REF(CLOSE,1)-LOW),14)* 100;AR:=SUM(HIGH-OPEN,14)/SUM(OPEN-LOW,14)*100;P15:=IF(BR>350 OR AR>180,3,IF(BR<45 OR AR<45,-3,0));{21}{VR}TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),14);TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),14);TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),14);VR:=0100*(TH*2+TQ)/(TL*2+TQ);P16:=IF(VR>350,3,IF(VR<45,-3,0));{24}{WVAD}WVAD:=SUM((CLOSE-OPEN)/(HIGH-LOW)*VOL,6)/10000;P17:=IF(WVAD>0,1,IF(WVAD<0,-1,0));{25}{EMV}VOLUME:=MA(VOL,4)/VOL;MID:=100*(HIGH+LOW-REF(HIGH+LOW,1))/(HIGH+LOW);EMV:=MA(MID*VOLUME*(HIGH-LOW)/MA(HIGH-LOW,4),4);P18:=IF(EMV>0,1,IF(EMV<0,-1,0));{26}{OBV}VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);MAOBV:=EMA(OBV,24);P19:=IF(OBV>MAOBV,1,IF(OBV<MAOBV,-1,0));{27}{PVI}PVI:= PVI,COLORWHITE;MPVI:=EMA(PVI,24),COLORYELLOW;P20:=IF(PVI>MPVI,1,IF(PVI<MPVI,-1,0));{28}{NVI}NVI:=NVI,COLORWHITE;MNVI:=EMA(NVI,24),COLORYELLOW;P21:=IF(NVI>MNVI,2,IF(NVI<MNVI,-2,0));{30}{MASS}MASS:=SUM(MA(HIGH-LOW,9)/MA(MA(HIGH-LOW,9),9),25);MA7:=MA(CLOSE,9);P22:=IF(MA7>REF(MA7,1) AND MASS>26.5,2,IF(MA7<REF(MA7,1)AND MASS<26.5,-2,0));{32}{VHF}NUM:=ABS(HHV(HIGH,15)-LLV(LOW,15));DEN:=SUM(ABS(CLOSE-REF(CLOSE,1)),15);VHF:=IF(DEN=0,0,NUM/DEN);VHF1:=EMA(VHF,240);P23:=IF(VHF>VHF1,1,IF(VHF<VHF1,-1,0));{33}{PUCU}PU:=MA(CLOSE,13);CU:=MA(VOL,13);PU1:=(PU-REF(PU,1))/REF(PU,1)*100;CU1:=(CU-REF(CU,1))/REF(CU,1)*100;逆时针曲线:=PU1+CU1;P24:=IF(逆时针曲线>REF(逆时针曲线,1),1,IF(逆时针曲线<REF(逆时针曲线,1),-1,0));{ASI}LC2:=REF(CLOSE,1);AA:=ABS(HIGH-LC2);BB:=ABS(LOW-LC2);CC:=ABS(HIGH-REF(LOW,1));DD:=ABS(LC2-REF(OPEN,1));R2:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC ANDBB>AA,BB+AA/2+DD/4,CC+DD/4));X01:=(CLOSE-LC2+(CLOSE-OPEN)/2+LC2-REF(OPEN,1));SI:=16*X01/R2*MAX(AA,BB);ASI:=SUM(SI,0),COLORWHITE;MASI:=MA(ASI,6),COLORYELLOW;P25:=IF(CLOSE<HHV(CLOSE,13) ANDASI=HHV(ASI,13),1,IF(CLOSE>LLV(CLOSE,13) AND ASI=LLV(ASI,13),-1,0)); {BIAS}BIAS1 :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;P26:=IF(BIAS1>10,1,IF(BIAS1<-10,-1,0));决策曲线:(36+P01+P02+P03+P04+P05+P06+P07+P08+P09+P10+P11+P12+P13+P14+P15+P1 6+P17+P18+P19+P20+P21+P22+P23+P24+P25+P26)*1.36;MAJCQX:MA(决策曲线,3);STICKLINE(C>0,36,36,10,0),COLOR00FF00;STICKLINE(C>0,56,56,10,0),COLORFF00FF;STICKLINE(C>0,71,71,10,0),COLORRED;STICKLINE(C>0,44,44,10,0),COLORYELLOW;【通达信】仿决策曲线(KDJ、MACD、TRIX、DMI、RSI)-指标公式效果图(文档来源:若水财经社区)。
通达信金牌逃顶附图未加密选股指标公式
通达信金牌逃顶附图未加密选股指标公式VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2:=SMA(VAR1,9,1)+100;VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1)+100;VAR6:=VAR5-VAR2;趋势: IF(VAR6>45,VAR6-45,0);STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),2,0),COLORLIMAGENTA;STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),2,0),COLORCYAN;强弱分界:50,COLORFFFFCC;底部:0,COLOR00FFFF;安全:20,COLORFFAA66,LINETHICK1;预警:80,COLORFFAA66,LINETHICK1;顶部:100,COLORFFFF33;V1:=LLV(LOW,10);V2:=HHV(H,25);价位线:=ema((C-V1)/(V2-V1)*4,4);DRAWTEXT(cr OSS(价位线,0.3),20+4,'●买'),COLORWHITE;DRAWTEXT(CROSS(3.5,价位线),100-4,'●卖'),COLORCYAN;VAR2Q:=REF(LOW,1);VAR3Q:=SMA(A bs(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);吸筹:STICKLINE(VAR9Q>-120,0,VAR9Q,3,1),COLORBLUE;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);卖临界:STICKLINE(走势-AA6>85,103,100,15,1),COLORWHITE,LINETHICK2;主力线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(L OW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,2 7))*100,5,1),3,1),LINETHICK1,POINTDOT;超短线:(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线, 21)))*(4))*(25),LINETHICK2,COLORLICYAN;VAR11:=3;VAR21:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,2 7))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));股价准备启动:IF(CROSS(VAR21,VAR11),100,0),COLORWHITE,LI NETHICK2;。
【股票指标公式下载】-【通达信】新思路(趋势线、行情线、加码跟进)
【通达信】新思路〔趋势线、行情线、加码跟进〕-指标公式源码VARA:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));趋势线:EMA(((VARA/10)+EMA(CLOSE,10)),3),COLORFFFF00,LINETHICK2; VARB:=(OPEN+HIGH+LOW)/3;VARC:=EMA(VARB,4);行情线:VARC,COLORYELLOW;STICKLINE(行情线<趋势线,H,L,1,1),COLORGREEN;STICKLINE(行情线<趋势线,C,O,6,1),COLORGREEN;STICKLINE(行情线>=趋势线,C,O,6,1),COLORRED;BUYA:=IF(CROSS(行情线,趋势线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线>趋势线),1,0);STICKLINE(行情线>=趋势线,H,L,1,1),COLORRED;STICKLINE(行情线>=趋势线,OPEN,CLOSE,4.5,0),COLOR000099;STICKLINE(行情线>=趋势线,OPEN,CLOSE,3,0),COLOR0000BB;STICKLINE(行情线>=趋势线,OPEN,CLOSE,2,0),COLOR0000FF;STICKLINE(行情线<趋势线,H,L,1,1),COLOR00FF00;STICKLINE(行情线<趋势线,OPEN,CLOSE,4.5,0),COLOR009900;STICKLINE(行情线<趋势线,OPEN,CLOSE,3,0),COLOR00BB00;STICKLINE(行情线<趋势线,OPEN,CLOSE,2,0),COLOR00FF00;{买入显示}DRAWTEXT(CROSS(行情线,趋势线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线>趋势线),LOW*0.98,'▲'),COLOR0000FF;DRAWTEXT(CROSS(行情线,趋势线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线>趋势线),LOW*0.975,'∣'),COLOR0000FF;DRAWTEXT(CROSS(行情线,趋势线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线>趋势线),LOW*0.975,'‖'),COLOR0000FF;DRAWTEXT(CROSS(行情线,趋势线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线>趋势线),LOW*0.97,'∣'),COLOR0000FF;DRAWTEXT(CROSS(行情线,趋势线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线>趋势线),LOW*0.97,'‖'),COLOR0000FF;DRAWTEXT(CROSS(行情线,趋势线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线>趋势线),LOW*0.965,'∣'),COLOR0000FF;DRAWTEXT(CROSS(行情线,趋势线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线>趋势线),LOW*0.965,'‖'),COLOR0000FF;{买出显示}DRAWTEXT(CROSS(趋势线,行情线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线<趋势线),HIGH*1.02,'▼'),COLOR00FF00;DRAWTEXT(CROSS(趋势线,行情线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线<趋势线),HIGH*1.025,'∣'),COLOR00FF00;DRAWTEXT(CROSS(趋势线,行情线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线<趋势线),HIGH*1.025,'‖'),COLOR00FF00;DRAWTEXT(CROSS(趋势线,行情线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线<趋势线),HIGH*1.03,'∣'),COLOR00FF00;DRAWTEXT(CROSS(趋势线,行情线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线<趋势线),HIGH*1.03,'‖'),COLOR00FF00;DRAWTEXT(CROSS(趋势线,行情线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线<趋势线),HIGH*1.035,'∣'),COLOR00FF00;DRAWTEXT(CROSS(趋势线,行情线) OR (REF(行情线,1)=REF(趋势线,1) AND 行情线<趋势线),HIGH*1.035,'‖'),COLOR00FF00;FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);FA:=IF(CROSS(FF,MA15),1,0);{加码跟进}TR:=MAX(MAX((HIGH - LOW),ABS(REF(CLOSE,1) - HIGH)),ABS(REF(CLOSE,1) - LOW));ATR:=MA(TR,14);AA:=(HHV(HIGH,20) - (2 * ATR));BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);BBB:=BARSLAST(BB);SSSB:=BARSLAST(SSS);B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));B1B:=BARSLAST(B1);B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));B2B:=BARSLAST(B2);B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2));DRAWTEXT((B1=1 AND 行情线>=趋势线 AND BUYA=0) OR (B2=1 AND 行情线>=趋势线 AND BUYA=0),LOW*0.98,'加仓'),COLORFF00FF;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A, 11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A, 18)+REF(A,20))/210;Y:=EMA(X,13);加仓A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;DRAWTEXT(FILTER((CROSS(加仓A,0) OR CROSS(CLOSE,Y)) AND 行情线>=趋势线AND BUYA=0 AND FA=0,3),LOW*0.98,'加仓'),COLORFF00FF;加仓:=(B1=1 AND 行情线>=趋势线 AND BUYA=0) OR (B2=1 AND 行情线>=趋势线AND BUYA=0) OR FILTER((CROSS(加仓A,0) OR CROSS(CLOSE,Y)) AND 行情线>=趋势线 AND BUYA=0 AND FA=0,3);STICKLINE(加仓,H,L,1,1),COLORFF00FF;{STICKLINE(加仓,C,O,6,1),COLORFF00FF;}STICKLINE(加仓,OPEN,CLOSE,4.5,0),COLOR660099;STICKLINE(加仓,OPEN,CLOSE,3,0),COLOR6600CC;STICKLINE(加仓,OPEN,CLOSE,2,0),COLORFF00FF;{减仓}VARJ1:=REF(CLOSE,1);VARJ2:=((SMA(MAX(CLOSE-VARJ1,0),6,1))/(SMA(ABS(CLOSE-VARJ1),6,1)))*(1 00);减仓A:=CROSS(85,VARJ2);DRAWTEXT(减仓A AND 行情线>=趋势线,HIGH*1.03,'减仓'),COLORYELLOW; MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);DY:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX); LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;减仓B:=FILTER(CROSS(84,RSI) OR DY,5);{下穿84}DRAWTEXT(减仓B AND 行情线>=趋势线,H*1.03,'减仓'),COLORYELLOW;减仓:=减仓A OR 减仓B;STICKLINE(减仓,H,L,1,1),COLORYELLOW;{STICKLINE(减仓,C,O,6,1),COLORYELLOW;}STICKLINE(减仓,OPEN,CLOSE,4.5,0),COLOR00CCCC;STICKLINE(减仓,OPEN,CLOSE,3,0),COLOR33FFCC;STICKLINE(减仓,OPEN,CLOSE,2,0),COLOR00FFFF;{一阳穿三线}BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;上:=BBI+3*STD(BBI,10);中:=BBI;下:=BBI-3*STD(BBI,10);优选:=BETWEEN(上,OPEN,CLOSE) AND BETWEEN(中,OPEN,CLOSE) AND BETWEEN(下,OPEN,CLOSE) AND CLOSE>OPEN AND 上>=REF(上,1) AND中>=REF(中,1) AND 下>REF(下,1);DRAWTEXT(FILTER(优选,2),LOW*0.95,'优选'),COLOR00FF00;{底背离}DRAWTEXT(FA AND BUYA=0,(LOW * 0.98),'底背离'),COLOR0099FF;{波浪顶底}TY:=C;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10); LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10); A2:=REF(C,BARSLAST(HD));B2A:=REF(C,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);顶:IF(T1,A2,A2),COLOR00FF00,POINTDOT,LINETHICK2;STICKLINE(T1,A2,A2,9,0),COLOR00FF00;底:IF(T2,B2A,B2A),COLORFF00FF,POINTDOT,LINETHICK2;STICKLINE(T2,B2A,B2A,9,0),COLORFF00FF;{多空线}VAR2:=(C+L+O+H)/4;多头线:=(20*VAR2+19*REF(VAR2,1)+18*REF(VAR2,2)+17*REF(VAR2,3)+16*REF(VAR2 ,4)+15*REF(VAR2,5)+14*REF(VAR2,6)+13*REF(VAR2,7)+12*REF(VAR2,8)+11*RE F(VAR2,9)+10*REF(VAR2,10)+9*REF(VAR2,11)+8*REF(VAR2,12)+7*REF(VAR2,13 )+6*REF(VAR2,14)+5*REF(VAR2,15)+4*REF(VAR2,16)+3*REF(VAR2,17)+2*REF(V AR2,18)+REF(VAR2,20))/210;空头线:=EMA(多头线,4);STICKLINE(多头线>空头线,多头线,空头线,4,10),COLORYELLOW;STICKLINE(多头线<空头线,多头线,空头线,4,10),COLORCCCCCC;{DRAWLINE(C=HHV(C,60),HHV(H,3),C=HHV(C,30) ANDC<HHV(C,45),HHV(HIGH,3),1),COLORYELLOW;};【通达信】新思路〔趋势线、行情线、加码跟进〕-指标公式效果图 (文档来源:假设水财经社区)。
通达信选股公式(庄家专用不外传)
通达信选股公式(庄家专用不外传)本文介绍了三种股票选股公式和策略,包括MACD、KDJ、RSI底背离、老鼠仓和抄底高手。
MACD、KDJ、RSI底背离公式如下:DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3 ,3)),1));B2:=REF(C,A2+1)>C ANDREF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.R SI2"(6,12,24)),1));B3:=REF(C,A3+1)>C ANDREF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));底背离条件为B1>0 OR B2>0 OR B3>0.老鼠仓公式如下:AA1:=AMOUNT/VOL;BB1:=L< AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100.1.2;DD1:=L< MA(C,5)*0.921;EE1:=VOL< MA(V,5)*1.5;老鼠仓条件为BB1 AND CC1 AND DD1 AND EE1.抄底高手公式如下:VAR1:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100+M<0;VAR2:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+N<0;VAR3:=VAR1 AND VAR2;VAR4:=VAR1 AND VAR2 AND COUNT(VAR3,2)=1 AND DATE> AND (CLOSE>OPEN OR CLOSE<OPEN) AND (OPEN<CLOSE);其中M、N、D为参数,VAR4为抄底高手条件。
通达信波段抄底逃顶指标公式
通达信波段抄底逃顶指标公式通达信是一款常用的股票分析软件,波段抄底逃顶是一种常见的股票交易策略。
为了帮助投资者更好地利用通达信软件进行波段抄底逃顶交易,下面介绍一些常用的指标公式。
1. DMA指标:DMA指标是由短期移动平均线(DMA)、长期移动平均线(AMA)和无方向变动均值指标(ADX)组成。
其计算公式为:DMA = AMA - DMA,其中AMA可选用5日、10日或20日的移动平均线,DMA通常选用20日、30日或60日的移动平均线。
2. DMI指标:DMI指标是计算股价趋势的指标,包括正向趋势线(+DI)和负向趋势线(-DI),其计算公式为:+DI = (H - L)/TR * 100,-DI = (L - H)/TR* 100,其中H为当日最高价,L为当日最低价,TR为真实波动范围。
3. WR指标:WR指标也称为威廉指标,用于判断股价是否超买或超卖。
其计算公式为:WR = (Hn - C)/(Hn - Ln) * 100,其中Hn为最近n天的最高价,Ln为最近n天的最低价,C为当日收盘价。
4. MACD指标:MACD指标是计算股价趋势和动能的指标,包括快线(DIF)和慢线(DEA)。
其计算公式为:DIF = EMA(C, short) - EMA(C, long),DEA = EMA(DIF, mid),MACD = 2 * (DIF - DEA),其中C为当日收盘价,short、long和mid分别表示快线、慢线和MACD线的周期。
以上是通达信波段抄底逃顶指标的一些常用公式。
投资者可以根据自己的交易策略和对市场走势的判断,结合这些指标进行交易决策。
然而,需要注意的是,仅仅凭借指标公式并不能保证获利,还需要结合其他因素进行分析,并制定科学合理的风险控制措施。
在使用通达信软件进行股票交易时,建议投资者注重学习和实践,逐步积累经验,提高自己的交易技巧。
通达信指标公式大全
通达信指标公式大全在股票交易中,技术分析是一种非常重要的分析方法,而通达信作为国内领先的股票软件,提供了丰富的指标公式供投资者使用。
本文将为大家详细介绍通达信中常用的指标公式,希望能对投资者的股票交易有所帮助。
1. 移动平均线。
移动平均线是一种常用的趋势分析工具,通达信中提供了多种不同周期的移动平均线指标公式,包括简单移动平均线(MA)、指数移动平均线(EMA)和加权移动平均线(WMA)。
投资者可以根据自己的交易策略选择不同周期的移动平均线进行分析。
2. 相对强弱指标(RSI)。
相对强弱指标是一种用于衡量股价超买超卖情况的指标,通达信中提供了RSI的计算公式。
投资者可以通过RSI指标判断股票的买卖时机,提高交易的准确性。
3. 指数平滑移动平均线(MACD)。
MACD是一种趋势跟踪指标,通达信中提供了MACD的计算公式。
通过观察MACD的金叉死叉情况,投资者可以判断股票的买卖信号,把握住交易机会。
4. 布林带。
布林带是一种用于衡量股价波动情况的指标,通达信中提供了布林带的计算公式。
投资者可以通过观察股价与布林带的位置关系,判断股价的波动情况,从而制定合理的交易策略。
5. 成交量指标。
成交量是股票交易中非常重要的一个指标,通达信中提供了多种成交量指标的计算公式,包括成交量均线、成交量震荡等。
投资者可以通过观察成交量指标,判断股票交易的活跃程度,从而作出交易决策。
6. 动量指标。
动量指标是一种用于衡量股价变化速度的指标,通达信中提供了动量指标的计算公式。
投资者可以通过观察动量指标,判断股价的趋势变化,从而把握住交易机会。
7. 威廉指标。
威廉指标是一种用于衡量股价超买超卖情况的指标,通达信中提供了威廉指标的计算公式。
投资者可以通过观察威廉指标,判断股价的超买超卖情况,制定合理的交易策略。
总结:以上是通达信中常用的指标公式,投资者可以根据自己的交易策略选择合适的指标进行分析,提高交易的准确性和盈利能力。
希望本文能对投资者在股票交易中的指标选择和分析有所帮助。
通达信DMI指标公式
『通达信DMI指标公式』DMI捕捉爆涨股-极品指标公式源码免费奉送1.炒股一招鲜系列之二——DMI捕捉爆涨股公式分析:PDI上穿三线,并且涨幅大于5%,并且成交量大于昨日CROSS("DMI.PDI","DMI.MDI") and CROSS("DMI.PDI","DMI.ADX") and CROSS(" DMI.PDI","DMI.ADXR") and C>REF(C,1)*1.05 and VOL>REF(VOL,1)2.炒股一招鲜系列之二——DMI一阳穿三线选股n:2,90,14m:2,60,6TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLO SE,1)-LOW)),N);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);PDI:=DMP*100/TR;MDI:=DMM*100/TR;ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);ADXR:=EXPMEMA(ADX,M);买点:(CROSS(PDI, MDI)AND CROSS(PDI, ADX)AND CROSS(PDI, ADXR))AND CLOSE>OPENAND C/REF(C,1)>0.5 AND VOL>MA(VOL,5)*1.5,COLORRED,LINETHICK3;*3我现在给大家送上一招用DMI捕捉爆涨股的绝招!其要点是:第一:PDI线很长时间在其他3条线下运行,突然某一日,PDI线以极强的力度连上穿3线。
【股票指标公式下载】-【通达信】ASI战法(前期高点、前期低点、相对能量)
【通达信】ASI战法(前期高点、前期低点、相对能量)-指标公式源码A1:=ABS(H-REF(C,1));B1:=ABS(L-REF(C,1));C1:=ABS(H-REF(L,1));D1:=ABS(REF(C,1)-REF(O,1));E1:=C-REF(C,1);F1:=C-O;G1:=REF(C,1)-REF(O,1);X:=E1+0.5*F1+G1;K:=MAX(A1,B1);R:=IF(A1>B1 AND A1>C1,A1+0.5*B1+0.25*D1,IF(B1>A1 ANDB1>C1,B1+0.5*A1+0.25*D1,C1+0.25*D1));L1:=3;SI:=16*(X/R)*(K/L1);ASI:SUM(SI,0);MA_:MA(ASI,6);AA1:=REF(ASI,P)=HHV(ASI,2*P+1);BB1:=FILTER(AA1,P);CC1:=BACKSET(BB1,P+1);DD1:=FILTER(CC1,P);{高点}AA2:=REF(ASI,P)=LLV(ASI,2*P+1);BB2:=FILTER(AA2,P);CC2:=BACKSET(BB2,P+1);DD2:=FILTER(CC2,P);{低点}前期高点:REF(ASI,BARSLAST(DD1)),COLORFF00FF,NODRAW;前期低点:REF(ASI,BARSLAST(DD2)),COLOR00FF00,NODRAW;相对能量:(ASI-前期低点)/(前期高点-前期低点)*100,COLORYELLOW,NODRAW; R11:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);S11:=R11>REF(R11,1);DRAWLINE(DD1,ASI,S11,ASI,1),COLORYELLOW;T11:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);U11:=T11>REF(T11,1);DRAWLINE(DD2,ASI,U11,ASI,1),COLOR00FF00;STICKLINE(C>0,前期低点,前期低点,1,0),COLOR00FF00;STICKLINE(C>0,前期高点,前期高点,1,0),COLORFF00FF;DRAWICON(CROSS(ASI,前期高点),ASI,1);【通达信】ASI战法(前期高点、前期低点、相对能量)-指标公式效果图(文档来源:若水财经社区)。
【指标公式源码下载】通达信看盘极品主图指标公式【多线】
通达信看盘极品主图指标公式【多线】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(MI D,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*R EF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,LINETHICK1,COLORY ELLOW;生命线:MA(取舍线,6),LINETHICK1,COLORRED;五日线:MA(CLOSE,5),POINTDOT,COLORLIBLUE;水平面:MA(CLOSE,60),CIRCLEDOT,COLORLIMAGENTA;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,30);MA4:=MA(CLOSE,60);WYA001:=(2*CLOSE+HIGH+LOW)/4;WYA002:=EMA(WYA001,4);WYA003:=EMA(WYA002,4);WYA004:=EMA(WYA003,4);WYA柱:=(WYA004-REF(WYA004,1))/REF(WYA004,1)*100;WYA线1:=MA(WYA柱,2);WYA线2:=MA(WYA柱,1);WY分时1线:=MA(CLOSE,1);WY分时21线:=MA(CLOSE,21);DRAWICON(WYA线1>0.25 AND WYA线2>0.25 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);DRAWICON(WYA线1<0 AND WYA线2<0 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);DRAWICON( CROSS(WY分时21线,WY分时1线),HIGH*1.0128,6) ;DRAWICON(WYA线1<-0.25 AND WYA线2<-0.25 AND CROSS(WYA线2,WYA线1),LOW*0.99,5);DRAWICON(WYA线1>0 AND WYA线2>0 AND CROSS(WYA线2,WYA线1),LOW*0.99,5),COLORYELLOW;DRAWICON(CROSS(WY分时1线,WY分时21线),LOW*0.99,5),COLORYELLOW;。
【股票指标公式下载】[通达信] 加密的通达信布林线(源码、主图、贴图)
很多朋友在找通达信的布林线指标,今天我将源码公布N:=20;MIDA:=MA(C,N);V ART1:=POW((C-MIDA),2);V ART2:=MA(V ART1,N);V ART3:=SQRT(V ART2);UPPERA:=MIDA+2*V ART3;LOWERA:=MIDA-2*V ART3;BOLL:REF(MIDA,1);UB:REF(UPPERA,1);LB:REF(LOWERA,1);今天还有朋友要sar指标,也叫抛物线指标,网上有,今天也给朋友V AR1:=SAR(10,2,20);S:IF(V AR1>C,V AR1,DRAWNULL),COLORRED,CIRCLEDOT;X:IF(VAR1<C,V AR1,DRAWNULL),COLORGREEN,CIRCLEDOT;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 OR REF(SS,1)<0,REF(SS,1),IF(REF(SS,2)>0 OR REF(SS,2)<0,REF(SS,2),IF(REF(SS,3)>0 OR REF(SS,3)<0,REF(SS,3),IF(REF(SS,4)>0 OR REF(SS,4)<0,REF(SS,4),IF(REF(SS,5)>0 OR REF(SS,5)<0,REF(SS,5),IF(REF(SS,6)>0 OR REF(SS,6)<0,REF(SS,6),IF(REF(SS,7)>0 OR REF(SS,7)<0,REF(SS,7),0)))))));MC:IF(REF(SS,1)>0 OR REF(SS,1)<0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2))),COLORFF00FF;STICKLINE(SS=1 OR SM>=1 AND SS=0,B1,C,0.8,1),COLORRED;STICKLINE(SS=-1 OR SM<=-1 AND SS=0,B1,C,0.8,0),COLORFF9000;STICKLINE(SS=2,B2,C,0.8,1),COLORRED;STICKLINE(SS=-2,B2,C,0.8,0),COLORFF9000;STICKLINE((SS=-1 OR SS=-2) AND SM>0,B2,B1,0.8,1),COLORRED;STICKLINE((SS=1 OR SS=2) AND SM<0,B2,B1,0.8,0),COLORFF9000;。
通达信]珍藏自用抓牛股超好指标{源码,副图,附图}
通达信]珍藏自用抓牛股超好指标{源码,副图,附图}kdj和macd指标的日,周,月周期的完美结合,抓牛股必不可少!指标用法很简单,仔细看看附图就能明白!强势股需日,周,月周期共振。
经典的才是最好的!淘指标淘到最后你自己就能明白相信不少人都懂的......源码:{MACD}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,3,1),LINETHICK2,COLORWHITE;D:SMA(K,3,1),LINETHICK2,COLOR00DDDD;J:3*K-2*D,LINETHICK2,COLOR800080;DIF:EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK0,COLOR0099FF;DEA :EMA(DIF,9),LINETHICK0,COLORD89837;MACD:2*(DIF-DEA),COLORFF9999,LINETHICK0;YLZC:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDE XO)/4,AMOUNT/(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(DIF,KX);MHD:=HHV(DEA,KX);MHM:=HHV(MACD,KX);MLF:=LLV(DIF,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;DIFA:=(DIF-FHLB)*(KHLC/FHLC)+KHLB;DEAA:=(DEA-FHLB)*(KHLC/FHLC)+KHLB;MACDA:=(MACD-FHLB)*(KHLC/FHLC)+KHLB;CDA:=MACD<REF(MACD,1) AND MACD>0;CDB:=MACD>=REF(MACD,1) AND MACD>0;CDC:=MACD>REF(MACD,1) AND MACD<0;CDD:=MACD<=REF(MACD,1) AND MACD<0;STICKLINE(CDA,SH,MACDA,2,0),COLOR00AAFF;{黄色段}STICKLINE(CDB,SH,MACDA,2,0),COLOR0000AA; {红色段}STICKLINE(CDC,SH,MACDA,2,0),COLORAA00BB;{向上粉红}TYP:=(HIGH+LOW+CLOSE)/3;STICKLINE(DIF>REF(DIF,1),20,20,2,0),COLORRED;STICKLINE(DIF<REF(DIF,1),20,20,2,0),COLORGREEN;STICKLINE(K>=REF(K,1) OR K>D AND DIF>REF(DIF,1),80,80,2,1),COLORRED;STICKLINE(K<REF(K,1),80,80,2,1),COLORGREEN;MACD金叉:=CROSS(MACD,DIF) AND MACD>=(0-0.05) AND MACD<=0.02;DRAWTEXT(MACD金叉,MACDA*0.82,'▲MACD金叉'),COLOR00FFFF;XX:=EMA(MA(LOW,3)*0.96,30);DIF金叉:=IF(CROSS(DIF,DEA) AND XX-REF(XX,1)>0 AND MACD>=REF(MACD,1) AND DIF<=0,1,0);DRAWTEXT(DIF金叉=1,DIFA*1.68,'DIF金叉'),COLORCDFFBB;低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;DRAWTEXT(低位金叉,DEAA*0.99,'▲DIF低位金叉'),COLOR0099DD;DIFDEA:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(DIFDEA=2,21)=1;DRAWTEXT(二次金叉,DEAA*0.99-8,'▲DIF 二次金叉'),COLORFF00FF;A1:=BARSLAST(REF(CROSS(DIF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);DRAWTEXT(底背离,DEAA*0.99-16,'▲DIF底背离'),COLOR0099FF;A2:=BARSLAST(REF(CROSS(DEA,DIF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);DRAWTEXT(FILTER(顶背离,5),DEAA*1.02,'▲DIF顶背离'),COLORDDAAAA;MD1:=MA(CLOSE,80)-MA(CLOSE,13)/3;MD2:=MA((CLOSE-MD1)/MD1,3);买点1:=CROSS(MD2,0) AND LOW/REF(HIGH,1)<1.012 AND J<75 AND J>REF(J,1);MA12:=MA(CLOSE,12);佳点:=IF(FILTER(MACD>=REF(MACD,5) AND OPEN<=REF(CLOSE,1) AND XX-REF(XX,1)>0 AND MACD<=0 AND MA12-REF(MA12,1)>=0,3) AND J<80 AND J>REF(J,1) AND D>REF(D,1) AND (DIF>=REF(DIF,1) OR DEA>=REF(DEA,1)),1,0);DRAWTEXT(佳点=1,MACDA*0.98,'★佳点'),COLOR0099FF;DX0:=EMA(CLOSE,2)-EMA(OPEN,5);DX1:=IF(CROSS(DX0,MACD) AND LOW<=XX AND MACD<=(0-0.11) AND (J<20 OR K<20),1,0);DRAWTEXT(FILTER(DX1,3),0,'★短10%'),COLOR00CC00;{短线} MA10:=MA(CLOSE,10);SS:=EMA(MA(HIGH,3)*1.05,30);LQS:=IF(FILTER(0.7*(CROSS(DIF,DEA) AND CLOSE<SS AND XX-REF(XX,1)>0 AND CROSS(MACD,0) AND MACD>=0 ANDDIF>0 AND MA10-REF(MA10,1)>0 AND VOL>REF(VOL,1))>=0.7 AND (CLOSE<SS AND XX-REF(XX,1)>0),5) AND J<80,1,0);DRAWTEXT(LQS=1,MACDA*0.98,'★量价齐上'),COLORCDFFDD;{量价齐上}最佳点:=IF(COUNT(MD2>REF(MD2,1),3)=3 AND COUNT(MD2<0,10)=10 AND REF(MD2,3)=LLV(MD2,10) AND J<80 AND J>REF(J,1),1,0);DRAWTEXT(最佳点=1,J,'★最佳点'),COLORFF00CC;买点2:=REF(MD2,2)=LLV(MD2,20) AND REF(MD2,2)<0.071 AND REF(MD2,2)<REF(MD2,1) ANDNOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1) AND J<75 AND J>REF(J,1);DRAWTEXT(买点1 OR 买点2,D-1,'买'),COLORFF00CC;{预涨}YZ:=(INTPART(SMA(RSV,3,1))+INTPART(SMA(K,3,1)))/2;预涨:=CROSS(YZ,50) AND J<95 AND DIF>REF(DIF,1) AND LOW<REF(CLOSE,1);DRAWTEXT(预涨,D*0.6,'★预涨'),COLORA52A2A;【/thread-1584013-1-1.html】。
【股票指标公式下载】-【通达信】主力动向(分时、MACD定位顶底、MACD趋势)
【股票指标公式下载】-【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)-指标公式源码{-------------------------通达信新分时源码深度优化版--------------------}A:=CURRBARSCOUNT;A1:=DAY!=REF(DAY,1);A2:=BARSLAST(A1)+1;A3:=MA(C,A2);A4:=SUM(AMO,A2)/SUM(VOL,A2)/100;A5:=IF(CAPITAL>0,A4,A3);均价线:=IF(A<=CONST(A2),A5,DRAWNULL);分钟有效周期:=IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,DRAW NULL))));分时价:=TFILT(CLOSE,CURRBARSCOUNT,00,CURRBARSCOUNT,00);分时判断:=IF(分时价=DRAWNULL,1,IF(分钟有效周期=DRAWNULL,DRAWNULL,1)); {-----------------------------由MACD定位顶底-------------------------------}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);KX:=BARSSINCE(CLOSE);{←⾸次开盘价距⾦的天数}HHN:=CONST(HHV(DIFF,KX));HLN:=CONST(LLV(DEA,KX));RC1:=CONST((HHN+HLN)/2);SS:=((HHN-HLN)/200);MACD底部:=(-100*SS+RC1)+-(-100*SS+RC1),COLOR669999;MACD顶部:=(100*SS+RC1)+-(-100*SS+RC1),COLORFF0033;MACD中轴:=0+-(-100*SS+RC1);DIFF修正:=DIFF+-(-100*SS+RC1),COLOR008080;DEA修正:=DEA+-(-100*SS+RC1),COLOR00FF00;MACD修正:=2*(DIFF修正-DEA修正)+MACD中轴,COLOR0000BB,NODRAW;MACD超跌:=CONST(LLV(MACD修正,KX));MACD超跌线:=IF(MACD超跌{----------------------利⽤MACD趋势进⾏精确顶底判断------------------------}顶部:=MACD顶部+-MACD超跌线;天际:=顶部*0.809;中轴:=MACD中轴+-MACD超跌线;海⾯:=顶部*0.191;底部:=MACD底部;{------------------------传统KDJ指标结合MACD优化---------------------------}RSVA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*顶部;{采⽤21⽇⽉线优化}K:SMA(RSVA,3,1),COLORFFFFFF,NODRAW;D:SMA(K,3,1),COLOR00FFFF,NODRAW;原J值参数:=3*K-2*D;JD:=IF(原J值参数<底部,底部,原J值参数);{J值底部钝化处理}J:IF(JD>顶部,顶部,JD),COLORFF00FF,NODRAW;{底部钝化处理后再进⾏顶部钝化处理}{---------------------------MACD多空量能判断-------------------------------}MACD多头:DIFF修正+-MACD超跌线,COLOR339999;空头:DEA修正+-MACD超跌线,COLOR00FF00;量能柱:2*(MACD多头-空头)+中轴,COLOR0000BB,NODRAW;超前DEA:=(EMA(MACD多头,7));超前MACD:=2*(MACD多头-超前DEA)+中轴;{-----------------------------------⼤盘动向-------------------------------}VAR1⼤盘:=LLV(LOW,13);VAR2⼤盘:=HHV(HIGH,13);VAR3⼤盘:=(SMA((CLOSE-VAR1⼤盘)/(VAR2⼤盘-VAR1⼤盘)*顶部,5,1))-顶部/2;VAR4⼤盘:=SMA((VAR2⼤盘-CLOSE)/(VAR2⼤盘-VAR1⼤盘)*顶部,5,1)-顶部/2; ⼤盘散户:=IF(VAR4⼤盘<底部,底部,VAR4⼤盘),COLOR408000;⼤盘主⼒:=IF(VAR3⼤盘<底部,底部,VAR3⼤盘),COLOR330088;{---------------------------------密集成本突破-----------------------------}最⾼获利参数:=顶部/100;VAR1C:=(COST(89)-COST(11))*最⾼获利参数;VAR2C:=(COST(99.9)-COST(1))*最⾼获利参数;单峰:=((1-VAR1C/VAR2C))*顶部;低密:=((COST(90)-COST(60))/VAR2C)*顶部;⾼密:=((COST(40)-COST(1))/VAR2C)*顶部;赢利:= (SMA(WINNER(AMOUNT/VOL/99),2,1))*顶部;活跃度:顶部-顶部/(1+EXPMA(HSL,21)),COLOR774455;{←CYF公众追涨热情指标}70%成本集中度:=IF(VAR1C>顶部,顶部,VAR1C),COLORFFFFFF;90%成本集中度:=IF(VAR2C>顶部,顶部,VAR2C),COLORFF0000;套牢筹码上升:=IF((单峰-赢利)>底部,(单峰-赢利),底部);个股散户:=IF(套牢筹码上升>顶部,顶部,套牢筹码上升),COLOR408000;散户:IF(个股散户=DRAWNULL,DRAWNULL,个股散户),COLOR408000;获利筹码上升:=IF((赢利-单峰)>底部,(赢利-单峰),底部);个股主⼒:=IF(获利筹码上升>顶部,顶部,获利筹码上升),COLOR330088;主⼒:IF(个股主⼒=DRAWNULL,DRAWNULL,个股主⼒),COLOR330088;{--------------------换⼿率,五⽇换⼿率辅助判断个股活跃度-------------------}换⼿:SUM(VOL,1)/CAPITAL*100,COLOR666666,NODRAW;⑤⽇换:SUM(VOL,5)/CAPITAL*100,COLOR999999,NODRAW;{----------------------密集成本突破指标筹码峰画线--------------------------}⾦⾊背景修边1:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,底部,3.05,0),COLOR003333;⾦⾊背景修边2:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,中轴,3.05,0),COLOR003333;⾦⾊背景补充:DRAWBAND(顶部,RGB(51,51,0),中轴,RGB(51,51,0));⾦⾊背景:DRAWBAND(顶部,RGB(51,51,0),底部,RGB(128,128,128));追涨热度峰紫⾊:DRAWBAND(活跃度,RGB(66,52,81),底部,RGB(204,0,0));⾼密峰墨蓝⾊:=DRAWBAND(⾼密,RGB(0,0,51),底部,RGB(0,0,255));低密峰纯蓝⾊:=DRAWBAND(低密,RGB(0,0,102),底部,RGB(0,0,255));90%成本峰:DRAWBAND(90%成本集中度,RGB(0,0,153),底部,RGB(0,0,153)); 70%成本峰:DRAWBAND(70%成本集中度,RGB(0,128,0),底部,RGB(255,255,255));散户峰绿⾊:DRAWBAND(散户,RGB(0,64,0),底部,RGB(204,0,0));主⼒峰红⾊:DRAWBAND(主⼒,RGB(102,26,51),底部,RGB(0,0,255));MACD多空趋势:DRAWBAND(MACD多头,RGB(204,51,51),空头,RGB(0,179,0)); MACD多头重画:DRAWBAND(MACD多头,RGB(153,153,51),MACD多头,RGB(153,153,51));MACD空头重画:DRAWBAND(空头,RGB(0,204,0),空头,RGB(0,204,0));{--------若⽔论坛‘131488’会员提供的通达信■新宝塔线■-----原码-----------}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); VARD:=CLOSEVARE:=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); 三平底翻⾦:=(REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1))AND VAR1;主⼒启动线:=MA(V,5),COLORFFFFFF;主⼒洗盘线:=MA(V,35),COLOR00FFFF;资⾦异动线:=MA(V,135),COLORFF0000;{----------------------------买卖参考--------------------------------------}出击:=(CROSS(主⼒启动线,资⾦异动线) OR ((主⼒洗盘线 > 资⾦异动线) AND CROSS(主⼒启动线,主⼒洗盘线))),COLORYELLOW;启动:=(主⼒启动线>REF(主⼒启动线,1) AND (CROSS(VOL,主⼒启动线) AND (REF(VOL,1)线,2)))),COLOR45AAEE;成⽴:=三平底翻⾦ AND (出击 OR 启动);买⼊提⽰:=IF(成⽴=1,海⾯*0.5,0) AND 分时判断=1;{------------------------顶部线,天际线,海⾯线,底部线重画-------------------}顶部线:DRAWBAND(顶部,RGB(51,0,255),顶部,RGB(51,0,255));天际线:DRAWBAND(天际,RGB(128,64,64),天际,RGB(128,64,64));海⾯线:DRAWBAND(海⾯,RGB(0,153,153),海⾯,RGB(0,153,153));{------------------------超前MACD多空量能柱--------------------------------}超前MACD红柱1:STICKLINE(超前MACD>=中轴,超前MACD,中轴,1.50,0),COLOR226688;超前MACD红柱2:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.95,0),COLOR4488BB;超前MACD红柱3:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.31,0),COLOR55AADD;超前MACD兰柱1:STICKLINE(超前MACD<=中轴,超前MACD,中轴,1.50,0),COLOR006600;超前MACD兰柱2:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.95,0),COLOR007700;超前MACD兰柱3:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.31,0),COLOR008800;{--------------------------MACD多空量能柱----------------------------------}MACD红柱1:STICKLINE(量能柱>=中轴,量能柱,中轴,1.5,0),COLOR000077; MACD红柱2:STICKLINE(量能柱>=中轴,量能柱,中轴,1.1,0),COLOR000088; MACD红柱3:STICKLINE(量能柱>=中轴,量能柱,中轴,0.6,0),COLOR000099; MACD红柱4:STICKLINE(量能柱>=中轴,量能柱,中轴,0.15,0),COLOR0000AA; MACD兰柱1:STICKLINE(量能柱<=中轴,量能柱,中轴,1.5,0),COLORAA6633;MACD兰柱2:STICKLINE(量能柱<=中轴,量能柱,中轴,1.1,0),COLORBB7744; MACD兰柱3:STICKLINE(量能柱<=中轴,量能柱,中轴,0.6,0),COLORCC8855; MACD兰柱4:STICKLINE(量能柱<=中轴,量能柱,中轴,0.15,0),COLORDD9966; {---------中轴线重画及顶部线,天际线,海⾯线,底部线,多空线⽂字说明-----------}中轴线:DRAWBAND(中轴,RGB(128,128,255),中轴,RGB(128,128,255));顶部线⽂字:DRAWTEXT(CURRBARSCOUNT=1,顶部*0.98,' 顶部线'),COLORFF0033;天际线⽂字:DRAWTEXT(CURRBARSCOUNT=1,天际*0.98,' 天际线'),COLOR404080;海⾯线⽂字:DRAWTEXT(CURRBARSCOUNT=1,海⾯,' 海⾯线'),COLOR999900; 底部线⽂字:DRAWTEXT(CURRBARSCOUNT=1,底部,' 底部线'),COLOR669999; 中轴线⽂字:DRAWTEXT(CURRBARSCOUNT=1,中轴,' 多空线'),COLORFF8080; {-------------------------------传统KDJ指标线重画--------------------------}D线重画:DRAWBAND(D,RGB(255,255,0),D*0.998,RGB(255,255,0));K线重画:DRAWBAND(K,RGB(255,255,255),K,RGB(255,255,255));J线重画:DRAWBAND(J,RGB(255,0,255),J,RGB(255,0,255));【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)-指标公式效果图(⽂档来源:若⽔财经社区)。
【股票指标公式下载】-【通达信】机构神偷(目标出现、股海神偷)
【通达信】机构神偷(目标出现、股海神偷)-指标公式源码AA:=LLV(LOW,36);BB:=HHV(HIGH,30);DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);股海神偷:DD,COLOR80FF8F,LINETHICK1;股海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);跟踪:=10;神偷出现:=IF((COUNT((股海神偷>REF(股海神偷,1)),1)=1) AND (REF(股海神偷,1)<REF(REF(股海神偷,1),1)) AND (股海神偷<跟踪),50,0);QQ:=CROSS(神偷出现,跟踪);{目标出现:=IF(CROSS(股海,90) AND (股海神偷<40),40,0),COLOR20FF00;}目标出现:=IF(CROSS(股海,5) AND (QQ<10),40,0);VAR1:=EMA(EMA(CLOSE,13),13);控盘:= (VAR1-REF(VAR1,1))/REF(VAR1,1)*5000;A10:=CROSS(控盘,0);开始控盘:IF(A10,50,0),COLORYELLOW;无庄控盘: 0,COLORWHITE;STICKLINE(控盘<0,控盘,0,4,0),COLORWHITE;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,4,1),COLORRED;有庄控盘:0,COLORRED;VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,4,0),COLOR00FF00;主力出货: 0,COLOR00FF00;STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,4,0),COLORFF00FF;高度控盘: 0,COLORFF00FF;DRAWICON( VAR2>50 AND COST(85)<CLOSE AND 控盘>0 AND REF(控盘,1)>= 控盘,控盘+30,2);【通达信】机构神偷(目标出现、股海神偷)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】筹码分布控盘(高度控盘、主力控盘)
【通达信】筹码分布控盘(高度控盘、主力控盘)-指标公式源码HH:90;KKK:=60;DRAWTEXT(ISLASTBAR,65,' ■高度控盘'),COLORMAGENTA;DRAWTEXT(ISLASTBAR,55,' ■主力控盘'),COLOR0000FF;DRAWTEXT(ISLASTBAR,45,' ■无庄控盘'),COLORFFFFFF;DRAWTEXT(ISLASTBAR,32,' ■主力出货'),COLOR00FF00;DRAWTEXT(ISLASTBAR,20,' ■开始控盘'),COLOR00FFFF;DRAWTEXT(ISLASTBAR,8,' ■渐强走势'),COLOR4B50F8;DRAWTEXT(ISLASTBAR,-5,' ■超强走势'),COLOR4F06C8;DRAWTEXT(ISLASTBAR,-16,' ■开始变盘'),COLORFFFF00;VAR1:=EMA(EMA(CLOSE,9),9);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,KKK*控盘,0,0,0),COLORWHITE;A10:=CROSS(控盘,0);无庄:=IF(控盘<0,控盘,0);开始控盘:IF(A10,50,0),LINETHICK1,COLORYELLOW;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,KKK*控盘,0,0,0),COLORRED;有庄:=IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0);VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,KKK*控盘,0,1,0),COLORFF00FF;高控:=IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0);STICKLINE(控盘<REF(控盘,1) AND 控盘>0,KKK*控盘,0,0,0),COLOR00FF00; 出货:=IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0);L1:=(EMA(CLOSE,3) - EMA(CLOSE,13));L2:=EMA(L1,9);L3:=BARSLAST(CROSS(L1,L2));L4:=REF(L3,L3+1);L5:=L2;变盘:=CROSS(L1,L2) AND L5;STICKLINE(变盘,-8,0,1,0),COLORFFFF00;DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*20;DEA:=EMA(DIFF,9);DIFL:=EMA(V,12)-EMA(V,26);DIF:=EMA(C,12)-EMA(C,26);BL:=DIFL>REF(DIFL,1) AND DIF<REF(DIF,1);四天:=REF(BL,3)=1 AND REF(BL,2)=1 AND REF(BL,1)=1 AND BL;三天:=REF(BL,2)=1 AND REF(BL,1)=1 AND BL;强势:=KKK*IF(DIFF>DEA,DIFF,0);STICKLINE(强势,-8,0,1,0),COLOR4F06C8;渐强:=KKK*IF(DIFF>DEA AND DIFF<0,DIFF,0);STICKLINE(渐强,-8,0,1,0),COLOR4B50F8;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);DRAWICON(FILTER(CROSS(K,D) AND D<26,6),2,1);【通达信】筹码分布控盘(高度控盘、主力控盘)-指标公式效果图(文档来源:若水财经社区)。
通达信神偷牵牛主图指标公式
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));红色持股:STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),4,0),COLOR000099; STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),3,0),COLOR0000CC; STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 ORVAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),2,0),COLOR0000FF;STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),1,0),COLOR0000FF; STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),0,0),COLOR0000FF; STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,LOW,HIGH,0.1,0),COLOR0000FF;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));青色观望:STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),4,0),COLORDDDD00;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),3,0),COLOREEEE00;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),2,0),COLORFFFF00;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),1,0),COLORFFFF00;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),0,0),COLORFFFF00;STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,LOW,HIGH,0.1,0),COLORFFFF00; VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);黄色短买:STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR33DDCC;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR33EECC;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR33FFCC;STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR33FFCC;DRAWTEXT(VAR19,REF(CLOSE,1),'短买'),COLOR33FFCC;VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);品红离场:STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),4,0),COLORFF66FF;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORFF77FF;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORFF88FF;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLORFF99FF;DRAWTEXT(VAR1A,REF(CLOSE,1)+0.01,'离场'),COLORFF99FF;MA3:=MA(CLOSE,3),COLORGREEN,LINETHICK3;YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4) +15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9) +10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,1 4)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20) )/211,COLORFF0000;牵牛线:MA(CLOSE,26),COLORFF00FF;等待:IF(MA3>辰星线,辰星线,MA3);IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK3,COLOR0000FF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF;IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00;IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK2,COLORFF00FF;IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933;。
【股票指标公式下载】-【通达信】机构K线(均线、收、开、高、低)
【通达信】机构K线(均线、收、开、高、低)-指标公式源码N:=7; N2:=8; N3:=9;VAR1:=REF(MA(C,20),10);开:=O-VAR1;高:=H-VAR1;低:=L-VAR1;收:=C-VAR1;MID:=MA(C,20);UPPER:=MID+2*STD(C,20);LOWER:=MID-2*STD(C,20);V1:=(C-LOWER)/(UPPER-LO WER)*100;V2:=V1-EMA(V1,5);K1:=SUM(LLV(V2,4),4)/4;V3:=EMA(V2,64)*10;V4:=EMA(0.4 *V2*(-1),3);V5:=-1*EMA(V2,39)*10;A:=V3>10;B:=V2>V4;D:=V5>10;E:=V3<=10 OR V2<=V4 OR V5<=10;均线1:MA(收, N);均线2:MA(收, N2);均线3:MA(收, N3);STICKLINE(C,0,0,6,0), COLORYELLOW;STICKLINE(收>=开 AND E,高,低,0,0), COLORRED;STICKLINE(收>=开 AND E,收,开,2,0) ,COLORRED;STICKLINE(收< 开 AND E,高,低,0,0) ,COLORGREEN;STICKLINE(收< 开 AND E,收,开,2,0) ,COLORGREEN;STICKLINE(开> 收 AND A ,低,高,0,0),COLORFF0000;STICKLINE(开> 收 AND A ,收,开,2,0),COLORFF0000;STICKLINE(开<=收 AND A,低,高,0,0),COLORYELLOW;STICKLINE(开<=收 AND A,收,开,2,1),COLORYELLOW;STICKLINE(开> 收 AND B,低,高,0,0),COLORRED;STICKLINE(开> 收 AND B,收,开,2,0),COLORRED;STICKLINE(开<=收 AND B,低,高,0,0),COLORRED;STICKLINE(开<=收 AND B,收,开,2,1),COLORRED;STICKLINE(开> 收 AND D,低,高,0,0),COLORGREEN;STICKLINE(开> 收 AND D,收,开,2,0),COLORGREEN;{STICKLINE(开<=收 AND D,收,开,2,1),COLORGREEN};【通达信】机构K线(均线、收、开、高、低)-指标公式效果图(文档来源:若水财经社区)。