【股票指标公式下载】-【通达信】牛熊时段(大盘)

合集下载

通达信指标公式大全

通达信指标公式大全

通达信指标公式大全:1.主力大单指标公式ZZ:=(HHV(H,3)+LLV(L,3))/2;A:=IF(C>ZZ,VOL,0);B:=IF(C<ZZ,VOL,0);总0:=(A-B);BBD:EMA(总0,3)/SUM(VOL,5)*100,LINETHICK;STICKLINE(BBD>=0,0,BBD,3,0),COLOR000088;STICKLINE(BBD>=0,0,BBD,1.5,0),COLOR0000AA;STICKLINE(BBD>=0,0,BBD,1,0),COLOR0000CC;STICKLINE(BBD>=0,0,BBD,0.5,0),COLOR0000FF;STICKLINE(BBD<0,0,BBD,3,0),COLOR888800;STICKLINE(BBD<0,0,BBD,1.5,0),COLORAAAA00;STICKLINE(BBD<0,0,BBD,1,0),COLORCCCC00;STICKLINE(BBD<0,0,BBD,0.5,0),COLORFFFF00;XH1:=REF(BBD,1)<REF(BBD,2) AND REF(BBD,1)<-10 AND BBD>REF(BBD,1) AND BBD>0;XH2:=REF(BBD,1)>=REF(BBD,2) AND REF(BBD,1)>8 AND BBD<REF(BBD,1) AND BBD<0;DRAWICON(XH1,-20,1);DRAWICON(XH2,20,2);2.主力控盘指标公式V AR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V AR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V AR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V AR5:=(((V AR2 + (2 * V AR3)) + (3 * V AR4)) / 6);V AR6:=MA(V AR5,3);开始控盘:STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR00AAFF;STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR0044FF;STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),2.5,0),COLOR0088FF;STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),3,0),COLOR00AAFF;V AR1:=EMA(EMA(CLOSE,3),1);控盘:=(V AR1-REF(V AR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,3.5,0),COLORFFAA00;STICKLINE(控盘<0,控盘,0,3.5.2,0),COLORFF4400;STICKLINE(控盘<0,控盘,0,2.5,0),COLORFF8800;STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;无控盘:0,COLORFFAA00;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR000088;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR0000AA;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR0000CC;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR0000EE;高度控盘:0,COLOR0000FF;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR008800;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR00AA00;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR00CC00;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR00EE00;STICKLINE(DDX<0,0,DDX,3.5,0),COLOR008800;STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;对倒出货:0,COLOR00FF00;3.通达信资金进出分时指标公式(C,1),C*V,0),FROMOPEN),STICK,COLORRED;资金流出:-SUM(IF(C<REF(C,1),C*V,0),FROMOPEN),STICK,COLOR00FF00;资金差:资金流入+资金流出,COLORYELLOW;4.通达信做T+0的分时公式MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};5.通达信超准分时图指标公式BGTYU:=IF(DATE<=1150530,1,0);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*1 00,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95);VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARS COUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))));底线:1.003,COLORRED,LINETHICK2;高线:1.03,COLORRED,LINETHICK3;黄色起动线:EXPMA((DCLOSE/VBNH),20),COLORYELLOW,POINTDOT;绿色散户线:EXPMA((DCLOSE/VBNH),120),COLORGREEN,LINETHICK2;DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),EXPMA((DCLOSE/ VBNH),60)*1,1);DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),EXPMA((DCLOSE/VBNH),60)),EXPMA((DCLOSE/ VBNH),120)*1,2);DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02+0.005,18);STICKLINE(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02,1.025,4,0), , COLORMAGENTA; STICKLINE(EXPMA(C,10)>EXPMA(C,60) ,1.03,1.034,1.0,0),COLORRED;STICKLINE(EXPMA(C,10)<EXPMA(C,60) ,1.03,1.025,1.0,0),COLORGREEN;DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.04),1.04,'可能涨停'),COLORWHITE; STICKLINE(EXPMA((DCLOSE/VBNH),120)>1.003 ,1.03,1.039,1.0,0),COLORMAGENTA; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.028,'买进'),COLORWHITE; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.036,'观察分时量 '),COLORWHITE; DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),1.003*1,13);6.通达信观察分时指标公式BG:=IF(DATE<=1150530,1,0);GH:=BETWEEN((DCLOSE*BG)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BG)))/SUM(VOL*100,BARSCOU NT((DCLOSE*BG)))),1.05,0.95);VB:=IF(GH=0,MA((DCLOSE*BG),BARSCOUNT((DCLOSE*BG))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BG)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BG)))));中线:1,COLORBLUE,LINETHICK2;快趋势线:EXPMA((DCLOSE/VB),21),COLORYELLOW,,LINETHICK1;慢趋势线:EXPMA((DCLOSE/VB),54),COLORGREEN,LINETHICK1;DRAWICON(CROSS(快趋势线,中线),快趋势线,1);DRAWICON(CROSS(慢趋势线,中线) AND (快趋势线>中线),中线-0.002,15);DRAWTEXT(CROSS(EXPMA((DCLOSE/VB),20),1),快趋势线-0.0025,'涨'),COLORRED; DRAWTEXT(CROSS(快趋势线,中线),快趋势线-0.0055,'买进'),COLORYELLOW;DRAWICON(CROSS(快趋势线,慢趋势线),慢趋势线,13);STICKLINE(快趋势线>中线 AND 快趋势线>REF(快趋势线,1) AND 快趋势线>慢趋势线,快趋势线,快趋势线+0.0015,1,0),COLORMAGENTA;DRAWTEXT(CROSS(中线,快趋势线),中线,'注意'),COLORWHITE;DRAWICON(CROSS(慢趋势线,快趋势线),慢趋势线,2);V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:= EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10);CCC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);见顶清仓:= STICKLINE(趋势线>=90 AND V12,中线,快趋势线,2,0),COLORCYAN; DRAWICON(CCC,快趋势线,12);DRAWICON(BB,快趋势线,23);DRAWTEXT (BB,快趋势线,'补仓'),COLORLIRED;7.通达信分时买卖力道指标公式A1:=(VOL/CLOSE)/3;A2:=SUM((IF(((A1>0.29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1>0.29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1<0.29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A5:=SUM((IF(((A1<0.29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((ISLASTBAR=1),((100*A2)/A6),0);A8:=((IF((ISLASTBAR=1),((100*A3)/A6),0)));A9:=((IF((ISLASTBAR=1),((100*A4)/A6),0)));A10:=((IF((ISLASTBAR=1),((100*A5)/A6),0)));机构买盘:(A2),LINETHICK0;机构卖盘:(A3),LINETHICK0;散户买盘:(A4),LINETHICK0;散户卖盘:(A5),LINETHICK0;STICKLINE(机构买盘>0 AND 机构买盘>=机构卖盘 AND 机构买盘>=REF(机构买盘,1),20,20+100,1,0),COLORRED;STICKLINE(机构卖盘>0 AND 机构卖盘>=机构买盘 AND 机构卖盘>=REF(机构卖盘,1),20,20+100,1,0),COLORWHITE;STICKLINE(散户买盘>0 AND 散户买盘>=散户卖盘 AND 散户买盘>=REF(散户买盘,1),-20,-20-100,1,0),COLORLIMAGENTA;STICKLINE(散户卖盘>0 AND 散户卖盘>=散户买盘 AND 散户卖盘>=REF(散户卖盘,1),-20,-20-100,1,0),COLORCYAN;VAR2:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*2000;买卖力道: SMA(VAR2,3,1),COLORLIGRAY;VAR3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));VAR4:=(IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),V OL/2))/(IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-L OW),0-VOL/2))*(-1))-IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3 *(HIGH-OPEN+CLOSE-LOW),VOL/2)));VAR5:=AMOUNT/(100*VOL);VAR6:=MA(VAR5,40);VAR7:=100*(CLOSE-VAR6)/VAR6;底部追击:= IF(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,300,200),COLORGREEN; STICKLINE(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,1200,200,10,0) , COLORGREEN; VAR8:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;VAR9:=SMA(VAR8,3,1);VARA:=SMA(VAR9,3,1);D: SMA(VARA,5,1)*20, COLORCYAN;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:= EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;BB:(趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10);买入股票:= (趋势线<=13 AND V12>13),COLORRED;CCC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);清仓:=FILTER(趋势线>=90 AND V12 AND CROSS(D,买卖力道),5),COLORYELLOW;卖出区: 清仓+1800,COLORYELLOW;中:(0+卖出区)/2, COLORGREEN;{股旁网-股票公式网站 }STICKLINE(买卖力道>=中 AND 买卖力道>=REF(买卖力道,1),中,买卖力道+中/10,0,0),COLORMAGENTA;STICKLINE(买卖力道>=中 AND 买卖力道< REF(买卖力道,1),中,买卖力道+中/10,0,0),COLORBROWN;STICKLINE(买卖力道<中 AND 买卖力道>=REF(买卖力道,1),中,买卖力道-中/10,0,0),COLORGREEN;STICKLINE(买卖力道<中 AND 买卖力道< REF(买卖力道,1),中,买卖力道-中/10,0,0),COLORBLUE;DRAWICON(买入股票,中,15);DRAWTEXT (BB,0,'买股'),COLORYELLOW;DRAWTEXT(清仓,买卖力道,'顶'),COLORYELLOW;STICKLINE(清仓,买卖力道,买卖力道+0.01,2,0),COLORBLUE; DRAWICON(CROSS(D,中),中,13);DRAWICON(CROSS(中,买卖力道),买卖力道,2);DIF:=(EMA(CLOSE,13) - EMA(CLOSE,24));DEA:=(EMA(DIF,6));MACD:=(DIF-DEA)*3;红线:=IF(MACD>=0 AND MACD>REF(MACD,1),中,DRAWNULL);青线:=IF(MACD>=0 AND MACD< REF(MACD,1),中,DRAWNULL);粉线:=IF(MACD<0 AND MACD>=REF(MACD,1),中,DRAWNULL);蓝线:=IF(MACD<0 AND MACD< REF(MACD,1),中,DRAWNULL); STICKLINE(红线,200,250,1,0),COLORRED,LINETHICK1;STICKLINE(青线,200,250,1,0),COLORCYAN,LINETHICK1;STICKLINE(粉线,200,250,1,0),COLORMAGENTA,LINETHICK1; STICKLINE(蓝线,200,250,1,0),COLORBLUE,LINETHICK1;DRAWICON(CROSS((A2),(A3)),200,23);通达信如何使用分时指标的教程找到通达信软件的安装位置,打开“T0002”文件夹,找到“user.ini”文件,用记事本打开,把里面“Zstzb=MACD”这一句中的MACD修改为自己要用的指标名称就OK啦。

通达信牛熊主图公式

通达信牛熊主图公式

{牛熊主图}{十字图标为获利比例接近零钱袋图标为回踩144线买点绿三角图标是回踩144的卖点红色向上箭头图标为突破233线买点绿色向下箭头图标是突破233的卖点绿色虚线为止损线黄色梨图标是第五天回调笑脸图标是低位买点踢的图标是低位卖点数字为天数计数}平均:COST(50);牛熊:MA(C,144),COLORYELLOW,LINETHICK1;低值:=COST(2.5);高值:=COST(97.5);低利:COST(5);MA5:MA(C,5);MA233:MA(C,233);MA266:MA(C,266);MA311:MA(C,311);STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0),COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;A1:=ABS(100*((平均/牛熊)-1))<1;A2:=ABS(100*(MIN(O,C)/牛熊-1))<1;A3:=COUNT(MIN(O,C)>牛熊,5)>2;买入:=CROSS(A1 AND A2 AND A3,0.1);SJ:=BARSLAST(买入);DRAWICON(买入,L,9);DRAWICON(SJ=5,L*0.96,16);DRAWNUMBER(C>牛熊AND SJ>0 AND SJ<30,L*0.98,SJ),COLORBROWN; STICKLINE(买入,O,C,1,0),COLORYELLOW;卖出:=CROSS(H,MA233);DRAWICON(CROSS(卖出OR MAX(O,C)<牛熊OR CROSS(H,高值),0.1) AND SJ<30 AND SJ>0,H,39); A4:=REF(MIN(C,O),SJ);止损:IF(SJ<15 AND SJ>0,A4,DRAWNULL),COLORGREEN,DOTLINE;Z1:=REF(CROSS(C,MA233),2);Z2:=COUNT(MIN(O,C)>MA233,2)>1;买入1:=CROSS(Z1 AND Z2,0.1);SJ1:=BARSLAST(买入1);DRAWICON(买入1,L,1);DRAWICON(SJ1=5,L*0.96,11);DRAWNUMBER(C>MA233 AND SJ1>0 AND SJ1<30,L*0.98,SJ1),COLORBROWN;STICKLINE(买入1,O,C,1,0),COLORYELLOW;卖出1:=CROSS(H,MA311);DRAWICON(CROSS(卖出 1 OR MAX(O,C)<MA233 OR CROSS(H,高值),0.1) AND SJ1<30 AND SJ1>0,H,2);Z3:=REF(MIN(C,O),SJ1);止损1:IF(SJ1<15 AND SJ1>0,Z3,DRAWNULL),COLORGREEN,DOTLINE;获利比例:=CROSS(100*WINNER(C)<0.3,0.1);DRAWICON(获利比例,L,23);TJ:=BARSLAST(获利比例);两阳:=CROSS(EVERY(C>O,2) AND TJ>0 AND TJ<30,0.1);DRAWTEXT(两阳,L,'两阳'),COLORYELLOW;JS1:=COUNT(两阳AND TJ>0 AND TJ<30 AND C<牛熊,TJ);DRAWNUMBER(两阳AND C<牛熊,H*1.02,JS1);JS2:=COUNT(两阳AND TJ>0 AND TJ<30 AND C>牛熊,TJ);DRAWNUMBER(两阳AND C>牛熊,H*1.02,JS2);买入2:=FILTER(CROSS(MA5,低利) AND TJ>0 AND TJ<30,20);ZQ:=BARSLAST(买入2);DRAWICON(买入2,L*0.96,5);LL:=REF(L,TJ);DRAWICON(FILTER((CROSS(H,牛熊) OR C<LL OR MAX(O,C)<MIN(REF(O,1),REF(C,1))) AND ZQ>0 AND ZQ<30,20),H*1.03,15);DB:=REF(MIN(C,O),TJ);止损2:IF(TJ<15 AND TJ>0,DB,DRAWNULL),COLORGREEN,DOTLINE;总额:=AMOUNT;买:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));买%:=买/AMOUNT*100;流入:=AMOUNT*买%/10000000000;流出:=AMOUNT/100000000-流入;净流:=(流入-流出);总额3:=SUM(AMOUNT,3);流入3:=SUM(流入,3);流出3:=SUM(流出,3);净流3:=SUM(流入-流出,3);总额5:=SUM(AMOUNT,5);流入5:=SUM(流入,5);流出5:=SUM(流出,5);净流5:=SUM(流入-流出,5);总额10:=SUM(AMOUNT,10);流入10:=SUM(流入,10);流出10:=SUM(流出,10);净流10:=SUM(流入-流出,10);BBB1:=STRCAT(STRCAT('净流(亿): 1日',CON2STR((净流),3)),''); DRAWTEXT_FIX(1,0.02,0.05,0,BBB1),COLOR8080FF,LINETHICK1;BBB2:=STRCAT(STRCAT(' 3日',CON2STR((净流3),3)),''); DRAWTEXT_FIX(1,0.02,0.1,0,BBB2),COLOR8080FF,LINETHICK1;BBB3:=STRCAT(STRCAT(' 5日',CON2STR((净流5),3)),''); DRAWTEXT_FIX(1,0.02,0.15,0,BBB3),COLOR8080FF,LINETHICK1;BBB4:=STRCAT(STRCAT(' 10日',CON2STR((净流10),3)),''); DRAWTEXT_FIX(1,0.02,0.2,0,BBB4),COLOR8080FF,LINETHICK1;买一总量:=DYNAINFO(20)*DYNAINFO(58) ;卖一总量:=DYNAINFO(21)*DYNAINFO(59);AAA1:=STRCAT(STRCAT('买一总金额:',CON2STR(买一总量,0)),'元');AAA2:=STRCAT(STRCAT('卖一总金额:',CON2STR(卖一总量,0)),'元'); DRAWTEXT_FIX(1,0.02,0.3,0,AAA1),COLORRED;DRAWTEXT_FIX(1,0.02,0.35,0,AAA2),COLORFFFF55;。

通达信指标公式源码 牛股主图指标

通达信指标公式源码 牛股主图指标

价量:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);主力活跃力度:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25);快线:=(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25);RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K1:=SMA(RSV,3,1);D1:=SMA(K1,3,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;TGLXS:=(TFXXS-REF(TFXXS,1));主力筹码:=EMA(WINNER(CLOSE)*70,3);散户筹码:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);金叉疯牛:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24)) /4,2);界:=MA(CLOSE,27);持股时段:IF((金叉疯牛>界)AND(散户筹码<主力筹码)AND((主力活跃力度>50)OR(主力活跃力度>REF(主力活跃力度,1))),-40,0),COLORRED,NODRAW;ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//小筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//小股民套牢筹码比率}ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比}ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//走牛天数}ZSHJJ:=EMA(ZSHTL,89);{//小股民警戒}ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}BB:=MA(C,1);持币阶段:SMA(SMA(SMA(BB,2,1),2,1),2,1);主升持股波段:=HHV(MA(持币阶段,1),13);SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);牛股出现预警:=WINNER(C/1.10)*100,COLOR00FFFF,NODRAW;主力赢利25持仓:=WINNER(C/1.25)*100,COLORFF00FF,NODRAW;散户套牢筹码:=散户筹码/(主力筹码+散户筹码)*100;主升浪波段:=主力筹码/(主力筹码+散户筹码)*100,COLORFF6100,NODRAW; 主力主导行情:=EMA(主升浪波段,55),NODRAW,COLORFF00FF;M:=60;N:=30;SHX:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)) COLORGRAY;庄家主力线:=50-SMA(SMA(SMA(SHX,2,1),2,1),2,1)/2,COLOR00FFFF,LINETHICK2;散户持股线:=50-HHV(MA(庄家主力线,1),13)/2,COLORFF00FF,LINETHICK4; 跌幅:=(REF(C,1)-C)/REF(C,1)*100;涨幅:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,POINTDOT,COLOR009900,LI NETHICK0;ER:=V/FINANCE(7)*100;A0:=TMA(ER,(1-ER),1);MAXCYC:=DMA((C+O)/2,ER/TMA(ER,(1-ER),1));T1:=BARSLAST(C>MAXCYC*POW(1.1,0.9));T2:=BARSLAST(C<MAXCYC*POW(1.1,-0.9));T3:=CROSS(T1,T2) OR CROSS(T2,T1) OR BARSSINCE(T1+1)=0 OR BARSSINCE(T2+1)=0 OR BARSCOUNT(C)=0;T4:=REF(MAXCYC,BARSLAST(T3));HZ:=HHV((H+L)/2,120);AA:=(2*C+H+L)/4;VAR1:=IF(DATE=10301201,0,1);VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);VAR3:=EMA(CLOSE,3);VAR4:=(2*CLOSE+LOW+HIGH)/4*VAR1;VAR5:=VAR2-VAR3;VAR6:=CLOSE*VOL;VAR7:=EMA((EMA(VAR6,3)/EMA(VOL,3)+EMA(VAR6,6)/EMA(VOL,6)+EMA(VA R6,12)/EMA(VOL,12)+EMA(VAR6,24)/EMA(VOL,24))/4,13);VAR8:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;VAR9:=(CLOSE+OPEN)/2;MA5:=MA(CLOSE,5);VAR11:=3*SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,5,1)-2*SMA(SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,180,1),15,1);超级主升:=EMA(VAR11,5);主升1:=超级主升-100;D8:=EMA(C,5);D2:=(EMA(C,1)+EMA(C,5)+EMA(C,10)+EMA(C,15)+EMA(C,20)+EMA(C,25)+ EMA(C,30)+EMA(C,35)+EMA(C,40)+EMA(C,45)+EMA(C,50)+EMA(C,55)+EMA(C,60)+EMA(C,65)+EMA(C,70)+EMA(C,75)+EMA (C,80)+EMA(C,85)+EMA(C,90)+EMA(C,95)+EMA(C,100)+EMA(C,105)+EMA(C,110)+EMA(C,115)+EMA(C,120)+EMA(C,12 5)+EMA(C,130)+EMA(C,135)+EMA(C,140)+EMA(C,150))/30;DDE:=(D8/D2)*100;主升2:=DDE-110;A:=(H+L+2*C)/4;A1:=(A-REF(A,3))/3+A;J:=EMA(HHV(A1,20),60),LINETHICK3;CB5:=EMA(COST(80),30),CIRCLEDOT;HMX:=EMA(1.4*EMA(FORCAST(A1,20),40),20),LINETHICK2;金牛线:=(J+CB5+HMX)/3,LINETHICK2;MA20:=MA(C,20);UP:=EMA(EMA(C*1.38,50),50),DOTLINE,COLOR0000FF;白色:=SMA(HIGH,21,2)*1.05;黄色:=SMA(LOW,21,2)*0.95;中线:=(白色+黄色)/2;UP1:=中线+2*STD(中线,20);UP2:=REF(UP1,0);CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(A1,20))/MA(A1,20);DT:=DMA(CLOSE,CC);通道3:=(1+9/100)*DT;通道4:=(1-7/100)*DT;界限:=(REF((金牛线+UP+EMA(UP1*1.04,40)+通道3)/4,10)+MA(C,20)*1.04)/2;AHC1:=H*VOL;AHC24:=EMA((EXPMA(AHC1,180)/EXPMA(VOL,180)+EXPMA(AHC1,360)/EXPMA(VOL,360)+EXPMA(AHC1,720)/EXPMA(VOL,720)+EXPMA(AHC1,1440)/EXP MA(VOL,1440))/4,34);C上X:=1.06*AHC24;C下X:=AHC24*0.94;AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(V OL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL ,316))/4,34);上X:=1.06*AHC22;下X:=AHC22*0.94;AHC23:=EMA((EXPMA(AHC1,5)/EXPMA(VOL,5)+EXPMA(AHC1,10)/EXPMA(VO L,10)+EXPMA(AHC1,20)/EXPMA(VOL,20)+EXPMA(AHC1,40)/EXPMA(VOL,40))/ 4,34);D上X:=1.06*AHC23;D下X:=AHC23*0.94;T:=(C上X+D上X+上X)/3*1.05;主升3:=(MA5*2/(界限+T)-1)*100;CBX80:=MA(COST(80),20);主升4:=(MA5/CBX80-1)*100;FT:=((HHV(H,42)-LLV(L,42)))/2+LLV(L,42);FT1:=ABS(HHV(H,40)-LLV(L,40)-LLV(L,40))+FT*0.5;主升5:=(FT/FT1-1)*100;P:=EMA(EMA(C*1.14,55),20);主升6:=(MA5/P-1)*100;金K线:=(EMA(HHV(H,60),60)+EMA(FT,453)*1.62)/2;主升7:=(MA5/金K线-1)*100;超牛拉升:=(主升1+主升2+主升3+主升4+主升5+主升6+主升7)/2,LINETHICK2;SMA2:=MA(持币阶段,3);V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,21);V3:=EMA(V2,5);V4:=2*(V2-V3)*100,COLORRED,LINETHICK2;筹码进:=IF(V4>=0,V4,0);VARAA:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR21:=SMA(ABS(HIGH-VARAA),13,1)/SMA(MIN(HIGH-VAR1,0),10,1); VAR31:=EMA(VAR21,10);VAR41:=HHV(HIGH,33);VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);主力抬轿:=IF(VAR51<REF(VAR51,1)AND(涨幅>0)AND(筹码进>150)AND(持股时段<-18)AND(跌幅<3),筹码进,0),COLORRED,NODRAW;上轨:=EMA(VAR8*1.15,15),COLORRED,LINETHICK1;黄线:=(EMA(VAR9,3)+EMA(VAR9,6)+EMA(VAR9,12)+EMA(VAR9,24))/4,COLOR YELLOW,LINETHICK1;HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*RE F(H,5)+14*REF(H,6)+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8* REF(H,12)+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*R EF(H,18)+REF(H,20))/210,COLORBLUE,LINETHICK1;LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L, 5)+14*REF(L,6)+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*RE F(L,12)+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF (L,18)+REF(L,20))/210,COLORBLUE,LINETHICK1;VAR80:=3*SMA((C-LLV(L,180))/(HHV(H,180)-LLV(L,180))*100,5,1)-2*SMA(S MA((C-LLV(L,180))/(HHV(H,180)-LLV(L,180))*100,180,1),15,1);疯牛潜力股:=EMA(VAR80,5), NODRAW,COLOR6600FF;牛熊分道:EMA(HH,90),COLORYELLOW,LINETHICK2;下:=牛熊分道-((C-牛熊分道)*C-牛熊分道)/牛熊分道*1.68,LINETHICK3,COLORRED;下轨:=MA(下,14),COLORGREEN,LINETHICK2;IF(持股时段<-28 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;IF(持股时段<-28 AND 疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;IF(疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股<=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORGREEN,LINETHICK6;IF(上轨>=下轨AND 下轨>REF(下轨,1),下轨,DRAWNULL),COLORGREEN,LINETHICK6;IF(持股时段<-28 AND BARSCOUNT(C)<250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;IF(持股时段=0 AND BARSCOUNT(C)<250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK6;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1) AND 牛熊分道>=下轨,上轨,DRAWNULL),COLORFF00FF,LINETHICK4;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLORFF00FF,LINETHICK4;IF(COUNT(C>上轨,5)>=2 AND 上轨>=牛熊分道AND 疯牛潜力股>REF(疯牛潜力股,1) AND 涨幅>0.5,上轨,DRAWNULL),COLOR0000FF,LINETHICK4;不参与阶段:IF(上轨<下轨,上轨,上轨),COLORGREEN,LINETHICK2;分道关注:IF(上轨>=下轨AND 牛熊分道<下轨AND 下轨<REF(下轨,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK2;IF(上轨>=下轨AND 牛熊分道<下轨AND 下轨<REF(下轨,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK2;行情主升浪:IF(持股时段<-28 AND 疯牛潜力股>50 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(持股时段<-28 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(持股时段<-28 AND 疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股<=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORGREEN,LINETHICK2;IF(上轨>=下轨AND 下轨>REF(下轨,1),下轨,DRAWNULL),COLORGREEN,LINETHICK2;IF(持股时段<-28 AND BARSCOUNT(C)<250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1) AND 牛熊分道>=下轨,上轨,DRAWNULL),COLORFF00FF,LINETHICK2;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLORFF00FF,LINETHICK2;超级疯牛分界:IF(持股时段<-28 AND 疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLORRED,LINETHICK2; IF(COUNT(C>上轨,5)>=2 AND 上轨>=牛熊分道AND 疯牛潜力股>REF(疯牛潜力股,1) AND 涨幅>0.5,上轨,DRAWNULL),COLORRED,LINETHICK2;开口选股:=BARSLASTCOUNT(上轨>下轨)=1,NODRAW;DRAWICON(开口选股,MIN(下轨,上轨)*1.08,26);DRAWTEXT(开口选股,LOW,71),COLORYELLOW;DRAWTEXT(开口选股,上轨*1.13,'开始关注'),COLORRED;变盘加速上扬:=CROSS(牛熊分道,下轨);DRAWICON(变盘加速上扬,LOW*0.9,25);{重仓介入}重仓目标:=FILTER((COUNT(变盘加速上扬,5)=1),15),COLORFFFF00,LINETHICK2;STICKLINE(重仓目标>0.8,牛熊分道*0.8,牛熊分道*0.88,0.5,0),COLORFFFF00,LINETHICK2;STICKLINE(重仓目标>0.8,牛熊分道*0.8,牛熊分道*0.86,2,0),COLORFF0080,LINETHICK2;STICKLINE(重仓目标>0.8,牛熊分道*0.8,牛熊分道*0.84,4,0),COLORFF00FF,LINETHICK2;DRAWTEXT(重仓目标>0.8,牛熊分道*0.76,'重点目标'),COLORRED;超强自选:=(CROSS(CLOSE,下轨) AND CROSS(CLOSE,超级疯牛分界) AND COUNT(上轨>下轨,2)=1 AND REF(下轨,2)>REF(上轨,2));STICKLINE(重仓目标>0.8 OR 超强自选,牛熊分道*0.8,牛熊分道*0.88,0.5,0),COLORFFFF00,LINETHICK2;STICKLINE(重仓目标>0.8 OR 超强自选,牛熊分道*0.8,牛熊分道*0.86,2,0),COLORFF0080,LINETHICK2;STICKLINE(重仓目标>0.8 OR 超强自选,牛熊分道*0.8,牛熊分道*0.84,4,0),COLORFF00FF,LINETHICK2;DRAWTEXT(重仓目标>0.8 OR 超强自选,牛熊分道*1.05,'重点目标'),COLORRED;VARA:=SMA(AMOUNT,10,1)/1000000;VARB:=REF(VARA,1);VARC:=MA(REF(CLOSE,1),5);最高:=VARA*HIGH/VARC*1/10,POINTDOT,COLOR009900,COLORGRAY;最低:=VARA*LOW/VARC*1/10,POINTDOT,COLOR009900,COLORYELLOW; 开盘:=VARA*OPEN/VARC*1/10,POINTDOT,COLOR009900,COLORMAGENTA; 收盘:=VARA*CLOSE/VARC*1/10,COLOR009900,COLORGREEN,POINTDOT; 涨跌:=(收盘-REF(收盘,1))/REF(收盘,1)*100,POINTDOT,COLOR009900,LINETHICK0;STICKLINE((CLOSE>下轨AND 涨跌>15 AND CLOSE<上轨AND OPEN<上轨AND 下轨<牛熊分道),CLOSE,OPEN,3,0),COLORYELLOW;{超强突破}自选:=IF((CROSS(CLOSE,上轨) AND 下轨<=牛熊分道),18,0),COLORRED,LINETHICK2;重点自选:=FILTER((自选>8),20),COLORRED,LINETHICK2;STICKLINE(重点自选,CLOSE*1.1,CLOSE*1.15,0.5,0),COLORRED; DRAWICON(重点自选,CLOSE*1.06,12),COLORRED;DRAWTEXT(重点自选,CLOSE*1.2,'快马加鞭'),COLORRED;STICKLINE((涨跌>20 AND CLOSE>上轨),OPEN+(CLOSE-OPEN),OPEN,3,0),COLORRED;STICKLINE((涨幅>5 AND 涨跌>0 AND 涨跌<20 AND CLOSE>上轨AND OPEN<上轨),CLOSE,OPEN,3,0),COLORRED;STICKLINE((涨幅>5 AND 涨跌>0 AND 涨跌<20 AND CLOSE>上轨AND OPEN<上轨),OPEN+(CLOSE-OPEN)*2/3,OPEN,3,0),COLORBLUE; STICKLINE((涨跌>40 AND CLOSE>上轨AND OPEN<上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORYELLOW; STICKLINE((涨跌>20 AND CLOSE>上轨AND OPEN<上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORBLUE; STICKLINE((涨跌>10 AND CLOSE>上轨AND OPEN>上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORYELLOW; DRAWICON(变盘加速上扬,LOW*0.9,25);{大胆博}MB5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);FA:=BARSLAST(CROSS(MA10,MB5)) AND CROSS(MB5,MA10);FB:=FA AND MB5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1); DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;V11:=EMA(CLOSE,5);V22:=EMA(EMA(CLOSE,90)*1.01,10);DRAWTEXT(CROSS(V11,V22),V11+0.05,'牛起步'),COLOR00FF00;VAR11A:=LLV(LOW,21);VAR22A:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR11A) / (VAR22A - VAR11A)) * 100),5);AK:=EMA((((CLOSE - VAR11A) / (VAR22A - VAR11A)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),COLORYELLOW;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF; DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF;DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;VAR6A:=REF(C,1);VAR7A:=SMA(MAX(C-VAR6A,0),6,1)/SMA(ABS(C-VAR6A),6,1)*100; DRAWTEXT(CROSS(82,VAR7A),H*1.01,'逃顶')COLORYELLOW;。

【股票指标公式下载】-【通达信】大牛主图(牛熊线、底背离、操盘)

【股票指标公式下载】-【通达信】大牛主图(牛熊线、底背离、操盘)

【股票指标公式下载】-【通达信】大牛主图(牛熊线、底背离、操盘)【通达信】大牛主图(牛熊线、底背离、操盘)-指标公式源码MA5:=EMA(C,5);MA13:=EMA(C,13);牛熊线:MA(C,55),COLORRED,COLOR0099FF;UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1) ,LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1) ,HHV(H,BARSLAST(C ROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA1 3))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1 ),LLV(L,BARSLAST (CROSS(MA13,MA5))+1),0),COLOR00FF00;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);TJ2:=REF(DOWN,1)REF(DOWN,1) AND C<hry33;< p="">TJ1:=REF(DOWN,1)REF(DOWN,1) AND CDRAWICON(FILTER(TJ2=1,5),HIGH*1.03,25);AA:=(3*CLOSE+LOW+OPEN+HIGH)/6;MID:=3*MA(AA,1)-2*MA(AA,1);DKX:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3 )+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+1 1*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13) +6*REF(MID,14 )+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20) )/210,COLOR3A504D,LINETHICK2;A1:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,3 0))/(HHV(H,30)-LLV(L,30))*100,5);A2:=LLV(L,21);A3:LLV(L,30),COLOR3A504D,LINETHICK1;A4:=EMA(A1,5);A5:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);LZ1:=(DIFF<-0.1 AND DIFF>DEA);LZM:=CROSS(A1,A4)AND (A5-A4)>40 AND LZ1;STICKLINE( LZ1,A3,A3*1.03,1,0),COLOR3A504D;STICKLINE(CROSS(A1,A4) AND (A5-A4)>40 ANDLZ1 ,A3,A3*1.04,1,0),COLORYELLOW;LC2:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC2),0),3,1) / SMA(ABS((CLOSE - LC2)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(FF,MA15),(LOW * 0.965),'底背离'),COLOR3A504D;CPS:=EMA(C,26);VAR12:=(C-REF(C,2))/REF(C,2)*100;DRAWTEXT(CROSS(C,CPS) AND VAR12>5,L*0.965,'操盘'),COLORFF0080,LINETHICK1;工作:=CROSS(C,EMA(C,14)) AND C>REF(C,1)*1.03 AND C>AMOUNT/100/V AND REF(V,3)<=REF(V,30)*1.1 AND SUM(VOL*100/CAPITAL,50)>=100AND BETWEEN(V/CAPITAL,0.01,0.08)ANDBETWEEN(C/REF(C,20)/(INDEXC/REF(INDEXC,20)),0.95,1.1); DRAWTEXT(工作=1,LOW *0.998,'工作点'),COLOR00DDFF;【通达信】大牛主图(牛熊线、底背离、操盘)-指标公式效果图(文档来源:若水财经社区)</hry33;<>。

通达信大盘顶底副图指标公式

通达信大盘顶底副图指标公式

通达信⼤盘顶底副图指标公式见顶线:90,LINETHICK1 ,COLOR55AA77;见底线:10,LINETHICK1 ,COLOR888888;VAR1 := REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;VAR3:= REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:= REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;VAR7:= REF(LOW,1);VAR9:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100;VAR8:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001 ;VAR10:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;VAR11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;VAR12:=EMA(VAR11,8)*10<-26;{}VAR13:=IF(VAR8 AND MA(VAR10,5)<50 AND VAR12,30,0);开盘值:VAR2,POINTDOT, LINETHICK0 ;收盘值:VAR4,POINTDOT, LINETHICK0 ;最⾼值:VAR6,POINTDOT, LINETHICK0 ;最低值:VAR9,POINTDOT, LINETHICK0 ;STICKLINE(收盘值>开盘值,开盘值,最低值,0.5,1),COLORRED;STICKLINE(收盘值>开盘值,最⾼值,收盘值,0.5,1),COLORRED;STICKLINE(收盘值>开盘值,收盘值,开盘值,5,1),COLORRED;STICKLINE(收盘值<开盘值,最⾼值,开盘值,0.5,1),COLORFFFF00;STICKLINE(收盘值<开盘值,最低值,收盘值,0.5,0),COLORFFFF00;STICKLINE(收盘值<开盘值,收盘值,开盘值,5,0),COLORFFFF00;⼊顶:80,POINTDOT,LINETHICK1,COLORGREEN;⼊底:20,POINTDOT LINETHICK1 COLORMAGENTA;。

通达信牛熊分道公式

通达信牛熊分道公式

通达信牛熊分道公式
通达信牛熊分道公式是一种用于技术分析的指标,主要用于判断股票市场的牛熊转换点。

该指标基于股票的价格、成交量等因素,通过数学计算得出。

具体公式如下:
牛市分道点 = [最高价 + 最低价 + 收盘价 + 成交量] ÷ 4 熊市分道点 = [最高价 + 最低价 + 收盘价] ÷ 3
其中,最高价表示一段时间内的最高价,最低价表示一段时间内的最低价,收盘价表示一段时间内的收盘价,成交量表示一段时间内的成交量。

通过计算牛市分道点和熊市分道点,可以判断当前市场处于牛市还是熊市,并根据趋势进行相应的交易。

当市场处于牛市时,可以考虑买入股票,而当市场处于熊市时,则可以考虑卖出股票或持有现金等安全资产。

- 1 -。

适合在熊市中使用的股票通达信指标公式(一)

适合在熊市中使用的股票通达信指标公式(一)

看清主力V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;庄家秘密撤: IF(V4<=0,V4,0),COLOR00FF00,LINETHICK2;庄家秘密进: IF(V4>=0,V4,0),COLORFF00FF,LINETHICK2;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场: IF(VB>=0,VB,0),COLORYELLOW,LINETHICK2;大盘资金撤走: IF(VB<=0,VB,0),COLORBLUE,LINETHICK2;AA:=WINNER(CLOSE+CLOSE*15/100)*100;BB:=WINNER(CLOSE+CLOSE*0/100)*100;CC:=AA-BB;DD:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100; EE:=CC<3 AND DD<0.5;A1:=DYNAINFO(6);A2:=IF(LOW>A1,0,IF(HIGH<A1,1,(A1-LOW+0.01)/(HIGH-LOW+0.01)));A3:=VOL/WINNER(LOW);A4:=REF(HHV(CLOSE,120),1);A5:=REF(LLV(CLOSE,120),1);A6:=100*(CLOSE-A5)/(A4-A5);A7:=A2>0 OR A2=1;A8:=A7 AND A3/REF(A3,3)>=3 AND A6<80;A9:=REF(A8,1) OR REF(A8,2) OR REF(A8,3) OR REF(A8,4);A10:=A8 AND A9;A11:=IF(FILTER(A8,3),5,0);A12:=IF(FILTER(A10,3) OR EE,10,0);资金进场日:IF(A11,8,0),LINETHICK0;STICKLINE(A12,0,15,5,1),COLORFF00FF;资金加仓日:IF(A12,88,0),LINETHICK0;STICKLINE(A12,0,15,5,1),COLORFF00FF;STICKLINE(A11,0,5,1,0),COLORFFEE00;STICKLINE(A12,0,15,1,0),COLOR1020FF;DRAWTEXT(A11,8,'资金进场');DRAWTEXT(A12,17,'资金加仓');VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4;VAR3:=EMA(VAR2,13);VAR4:=LLV(LOW,34);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:STICKLINE(VAR5>REF(VAR5,1),0,VAR5,7,1 ),COLORRED;洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,LINETHICK2;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2,1),COLORGREEN;VAR6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2 *SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2* SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR8:=VAR6<REF(VAR7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(VAR8 AND COUNT(VAR8,30)=1,40,'有大资金进场迹象,关注!');售价3800元不知如何用VAR2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR3:=SMA(VAR2,5,1);VAR4:=REF(VAR3,1);VAR5:=SMA(VAR3,10,1);VAR6:=(HHV(HIGH,52)-CLOSE)/(HHV(HIGH,52)-LLV(LOW,52))*100;VAR7:=MA(VAR6,5);VAR8:=LLV(LOW,5)=LLV(LOW,120);VAR9:=REF(CLOSE,1);VARA:=SMA(MAX(CLOSE-VAR9,0),6,1)/SMA(ABS(CLOSE-VAR9),6,1)*100;VARB:=SMA(MAX(CLOSE-VAR9,0),12,1)/SMA(ABS(CLOSE-VAR9),12,1)*100; VARC:=(CLOSE+LOW+HIGH)/3;VARD:=SUM((VARC-REF(LOW,1)-(HIGH-VARC))*VOL/100000/(HIGH-LOW),0); VARE:=EMA(VARD,1);VARF:=VARE; VAR10:=MA(VARE,12);VAR11:=MA(VARE,26); VAR12:=(VARF-VAR10)*60;VAR13:=IF(VAR12>0.05,VAR12,0);VAR14:=IF(VAR13>50,50,VAR13);VAR15:=CAPITAL/EMA(VOL,5)/30*1.1;VAR16:=VAR15; VAR17:=EMA(COST(85),10);VAR18:=EMA(COST(1),10);VAR19:=EMA(CLOSE,10);VAR1A:=(VAR19-VAR18)*100/(VAR17-VAR18);VAR1B:=REF(VAR1A,1);VAR1C:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;VAR1D:=(INDEXC-REF(INDEXC,12))/REF(INDEXC,12)*100;VAR1E:=EMA(VAR1C-VAR1D,4);VAR1F:=EMA(VAR1D-VAR1C,4);STICKLINE(VAR1E>0,0,-5,6,0),COLORBLUE;STICKLINE(VAR8,-5,-10,6,0),COLORYELLOW;VAR20:=MA(VAR1C,4);VAR21:=MA(VAR1C,8);VAR22:=REF(VAR20,1);VAR23:=MA((VAR1A-REF(VAR1A,12))/REF(VAR1A,12)*100,4);VAR24:=IF(VAR23<=-20,-20,VAR23);VAR25:=IF(VAR24>=20,20,VAR24);VAR26:=VAR25;VAR27:=REF(VAR26,1);VAR28:=REF(VAR26,5);VAR29:=IF(CROSS(VAR14,VAR16),1,0);VAR2A:=IF(VAR14<VAR16,-10,10);VAR2B:=IF(VAR1E>VAR1F,5,-5);VAR2C:=IF(VAR3>VAR5,5,-5);VAR2D:=IF(VAR20>VAR21,6,-6);VAR2E:=IF(VAR20>0 AND VAR20>VAR21,8,-8);VAR2F:=IF(VAR26<0,-10,10);VAR30:=IF(VAR20>VAR22,10,-10);VAR31:=IF(VAR26>VAR27,5,0);VAR32:=IF(VAR26<VAR27,-5,0);VAR33:=IF(CLOSE>OPEN,3,-3);走势:(VAR2A+VAR2B+VAR2C+VAR2D+VAR2E+VAR2F+VAR30+VAR31+VAR32+VAR33 );VAR34:=REF(CLOSE,2)*0.865;VAR35:=REF(CLOSE,13)*0.772;VAR36:=MIN(VAR34,VAR35);VAR37:=100*VOL/CAPITAL;VAR38:=MA(CLOSE,13);VAR39:=CLOSE>0.899*REF(CLOSE,1) AND CLOSE<0.901*REF(CLOSE,1);VAR3A:=EMA(WINNER(CLOSE)*100,5);VAR3B:=EMA(WINNER(CLOSE)*100,30)-CAPITAL/EMA(VOL,30)/5;VAR3C:=CAPITAL/EMA(VOL,5)/5;VAR3D:=VAR3A;VAR3E:=IF(VAR3D>0,0-VAR3D,0-VAR3D); VAR3F:=REF(VAR3D,1);主力趋势: (VAR3B+50);VAR40:=VAR3B+50; VAR41:=REF(VAR40,1); VAR42:=MA(CLOSE,5);VAR43:=MA(CLOSE,10); VAR44:=MA(CLOSE,30);VAR45:=MA(CLOSE,12);VAR46:=MA(CLOSE,26); VAR47:=REF(VAR45,1); VAR48:=REF(VAR46,1);VAR49:=(VAR45-VAR46)/VAR45*100; VAR4A:=ABS(VAR45-VAR47)/VAR45*100; VAR4B:=REF(VAR46,1); VAR4C:=REF(VAR4A,1);VAR4D:=REF(VAR42,1); VAR4E:=REF(VAR43,1);VAR4F:=COUNT(CLOSE>REF(CLOSE,1),5)/5*100;VAR50:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR51:=SMA(VAR50,5,1);VAR52:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;VAR53:=SMA(VAR52,2,1);VAR54:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30)*8;VAR55:=REF(VAR51,1); VAR56:=REF(VAR53,1);VAR57:=REF(VAR54,1); VAR58:=MA(VAR53,5);VAR59:=MA(VAR53,12); VAR5A:=MA(VAR53,26);VAR5B:=REF(VAR4F,1); VAR5C:=(VAR54-VAR57)/VAR54*100;VAR5D:=SMA(VAR50,5,1); VAR5E:=REF(VAR5D,1); VAR5F:=SMA(VAR52,2,1);VAR60:=REF(VAR5F,1); VAR61:=IF(CLOSE>OPEN,1,0);VAR62:=IF(VAR42>VAR4D,1,0); VAR63:=IF(VAR43>VAR4E,1,0);VAR64:=IF(VAR4A>VAR4C,1,0); VAR65:=IF(VAR53>VAR56,5,0);VAR66:=IF(VAR55>VAR51,5,0); VAR67:=IF(VAR54>VAR57,2,0);VAR68:=IF(VAR49>2.25,10,0); VAR69:=IF(VAR53>60,6,0); VAR6A:=IF(VAR53>80,8,0); VAR6B:=IF(VAR53>VAR51,10,0); VAR6C:=IF(VAR53>VAR51,VAR59-VAR5A,0);VAR6D:=IF(VAR53>VAR51 AND VAR51<20,5,0); VAR6E:=IF(CLOSE>VAR45 AND VAR45>VAR46,5,0); VAR6F:=IF(VAR45>VAR46,5,0); VAR70:=IF(VAR46>VAR4B,5,0); VAR71:=IF(VAR51<18,VAR58-VAR51,0);VAR72:=IF(VAR51>VAR53 AND VAR51>50,8,0);VAR73:=(VAR61+VAR62+VAR63+VAR64+VAR65+VAR66+VAR67+VAR68+VAR69+VA R6A+VAR6B+VAR6C+VAR6D+VAR6E+VAR6F+VAR70+VAR71-VAR72);VAR74:=REF(VAR73,1); 多头: MA(VAR73,5); VAR75:=MA(VAR73,8);VAR76:=MA(VAR73,12); VAR77:=MA(VAR73,26); VAR78:=MA(VAR73,13);VAR79:=REF(VAR76,1); VAR7A:=REF(VAR76,2);VAR7B:=IF(CROSS(VAR3,VAR5) AND VAR4<35 AND VAR7>50 AND VAR1A<25 AND VAR1A>VAR1B AND VAR41<VAR40 AND (VARA>VARB AND VARB>VAR3 OR VARA>VAR3 AND VAR8),100,0);VAR7C:=IF((CLOSE-VAR36)/CLOSE<0.1 AND VAR41<VAR40 ANDSUM(VAR37,5)/5<1.8,100,0);VAR7D:=IF(CROSS(VAR3,VAR5) AND VAR8 AND VAR3<25 AND VAR1A<20 OR CROSS(VAR3,VAR5) AND VAR8 AND VAR3<40 AND VAR1A<10,100,0);信号: IF(VAR7B=100 OR VAR7C=100 OR VAR7D=100,20,-50),COLORYELLOW; STICKLINE(走势<0,0,走势,1,0),COLORGREEN;STICKLINE(走势>0,走势,0,1,0),COLORRED;。

【股票指标公式下载】-【通达信】主力动向(分时、MACD定位顶底、MACD趋势)

【股票指标公式下载】-【通达信】主力动向(分时、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趋势)-指标公式效果图(⽂档来源:若⽔财经社区)。

【股票指标公式下载】-【通达信】神奇牛熊线(大盘均价、均价、中线转强、大盘趋势)

【股票指标公式下载】-【通达信】神奇牛熊线(大盘均价、均价、中线转强、大盘趋势)

【通达信】神奇牛熊线(大盘均价、均价、中线转强、大盘趋势)-指标公式源码STICKLINE(C,95,95,0.5,0.5),COLOR3C3CFF;STICKLINE(C,5,5,0.5,0.5),COLORCYAN;均价:=(HIGH+LOW+CLOSE)/3;大盘均价:=(INDEXH+INDEXL+INDEXC)/3;个股趋势:SMA(((均价-LLV(均价,28))/(HHV(均价,28)-LLV(均价,28))*100),3,1),COLORYELLOW;大盘趋势:SMA(((大盘均价-LLV(大盘均价,28))/(HHV(大盘均价,28)-LLV(大盘均价,28))*100),3,1),COLORRED;中线转强:IF(个股趋势>50,个股趋势,DRAWNULL),COLORYELLOW;中线转弱:IF(个股趋势<50,个股趋势,DRAWNULL),COLORWHITE;RSV:=(均价-LLV(均价,9))/(HHV(均价,9)-LLV(均价,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);CCI:=(均价-MA(均价,14))/(0.015*AVEDEV(均价,14));DIFF:=EMA(均价,2)-EMA(均价,55);DEA:=EMA(DIFF,6);MACD:=2*(DIFF-DEA);转点:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);顶部:STICKLINE(C,75,75,0.5,0.5),COLOR3C3CFF;底部:STICKLINE(C,25,25,0.5,0.5),COLORCYAN;VAR1:=LLV(LOW,12);VAR2:=HHV(HIGH,5);快线:=EMA((均价-VAR1)/(VAR2-VAR1)*100,4);慢线:=EMA(0.667*REF(快线,1)+0.333*快线,2);转点1:=IF(快线>慢线,1,0);N:=28;个股LC:=REF(均价,1);个股牛熊:SMA(MAX(均价-个股LC,0),N,1)/SMA(ABS(均价-个股LC),N,1)*100,COLORWHITE;DRAWBAND(个股牛熊,RGB(155,50,50),50,RGB(0,100,50));LC:=REF(大盘均价,1);大盘牛熊:SMA(MAX(大盘均价-LC,0),N,1)/SMA(ABS(大盘均价-LC),N,1)*100,COLORYELLOW;长线转强:IF(个股牛熊>50,个股牛熊,DRAWNULL),COLORRED;长线转弱:IF(个股牛熊<50,个股牛熊,DRAWNULL),COLORGREEN;DRAWBAND(大盘趋势,RGB(155,50,50),50,RGB(0,110,30));DRAWBAND(个股趋势,RGB(1955,155,0),50,RGB(161,161,161)); DRAWBAND(大盘牛熊,RGB(225,0,225),50,RGB(0,255,255));DRAWBAND(个股牛熊,RGB(255,215,0),50,RGB(193,210,230)); DRAWICON(转点>REF(转点,1),50,1);DRAWICON(转点<REF(转点,1),50,2);DRAWICON(转点1>REF(转点1,1),50,11);DRAWICON(转点1<REF(转点1,1),50,12);【通达信】神奇牛熊线(大盘均价、均价、中线转强、大盘趋势)-指标公式效果图(文档来源:若水财经社区)。

判大势的“牛熊时段”通达信指标公式源码

判大势的“牛熊时段”通达信指标公式源码

判大势的“牛熊时段”思路是K线叠加。

通过颜色的变化体现大趋势的强弱度。

源码:MA120:=MA(C,120);MA250:=MA(C,250);STICKLINE(C>=O,H,L,0,1),COLORCYAN;STICKLINE(C>=O,C,O,3,1),COLORCYAN;STICKLINE(C<O,H,L,0,0 ),COLORCYAN;STICKLINE(C<O,C,O,3,0 ),COLORCYAN;STICKLINE(C>MA120 AND C>O,H,C,0,0 ),COLORRED;STICKLINE(C>MA120 AND C>O,L,O,0,0 ),COLORRED;STICKLINE(C>MA120 AND C>O,O,C,3,1),COLORRED;STICKLINE(C>MA120 AND C<=O,H,L,0,0 ),COLORRED;STICKLINE(C>MA120 AND C<=O,O,C,3,0),COLORRED;STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C>O,H,C,0,0),COLORRED; STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C>O,O,L,0,0),COLORRED; STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C>O,O,C,3,1),COLORRED; STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C<=O,H,L,0,0),COLORRED; STICKLINE(C>MA120 AND MA120>REF(MA120,1) AND C<=O,O,C,3,0),COLORRED; STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C>O,H,C,0,0),COLORCYAN; STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C>O,O,L,0,0),COLORCYAN; STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C>O,O,C,3,1),COLORCYAN; STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C<=O,H,L,0,0),COLORCYAN; STICKLINE(C<MA120 AND MA120<REF(MA120,1) AND C<=O,O,C,3,0),COLORCYAN; STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C>O,H,C,0,0),COLORCYAN; STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C>O,O,L,0,0),COLORCYAN; STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C>O,O,C,3,1),COLORCYAN; STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C<=O,H,L,0,0),COLORCYAN; STICKLINE(C>MA120 AND MA120<REF(MA120,1) AND C<=O,O,C,3,0),COLORCYAN; STICKLINE(MA120>MA250 AND C>MA120 AND C>O,H,C,0,0),COLORRED; STICKLINE(MA120>MA250 AND C>MA120 AND C>O,O,L,0,0),COLORRED; STICKLINE(MA120>MA250 AND C>MA120 AND C>O,O,C,3,1),COLORRED; STICKLINE(MA120>MA250 AND C>MA120 AND C<=O,H,L,0,0),COLORRED; STICKLINE(MA120>MA250 AND C>MA120 AND C<=O,O,C,3,0),COLORRED; STICKLINE(MA120>MA250 AND C<MA120 AND C>O,H,C,0,0),COLORGREEN; STICKLINE(MA120>MA250 AND C<MA120 AND C>O,O,L,0,0),COLORGREEN; STICKLINE(MA120>MA250 AND C<MA120 AND C>O,O,C,3,1),COLORGREEN; STICKLINE(MA120>MA250 AND C<MA120 AND C<=O,H,L,0,0),COLORGREEN; STICKLINE(MA120>MA250 AND C<MA120 AND C<=O,O,C,3,0),COLORGREEN; STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) ANDC>O,H,C,0,0),COLORCYAN;STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) ANDC>O,O,L,0,0),COLORCYAN;STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) ANDC>O,O,C,3,1),COLORCYAN;STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) ANDC<=O,H,L,0,0),COLORCYAN;STICKLINE(MA120>MA250 AND C>MA120 AND MA120<REF(MA120,1) ANDC<=O,O,C,3,0),COLORCYAN;STICKLINE(C<MA250 AND C>O,H,C,0,0),COLORBLUE;STICKLINE(C<MA250 AND C>O,O,L,0,0),COLORBLUE;STICKLINE(C<MA250 AND C>O,O,C,3,1),COLORBLUE;STICKLINE(C<MA250 AND C<=O,H,L,0,0),COLORBLUE;STICKLINE(C<MA250 AND C<=O,O,C,3,0),COLORBLUE;STICKLINE(C>MA120 AND MA120<MA250 AND C>O,H,C,0,0),COLORYELLOW; STICKLINE(C>MA120 AND MA120<MA250 AND C>O,O,L,0,0),COLORYELLOW; STICKLINE(C>MA120 AND MA120<MA250 AND C>O,O,C,3,1),COLORYELLOW; STICKLINE(C>MA120 AND MA120<MA250 AND C<=O,H,L,0,0),COLORYELLOW; STICKLINE(C>MA120 AND MA120<MA250 AND C<=O,O,C,3,0),COLORYELLOW;。

通达信超好的抓牛主图指标公式【主力成本、短期底部、红牛、牛窝、老鼠仓、大胆搏、加仓、逃顶】

通达信超好的抓牛主图指标公式【主力成本、短期底部、红牛、牛窝、老鼠仓、大胆搏、加仓、逃顶】

通达信超好的抓牛主图指标公式【主力成本、短期底部、红牛、牛窝、老鼠仓、大胆搏、加仓、逃顶】A:=(3*C+L+O+H)/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;S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:=2*(S2-S6);主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00;IF(MA(C,3),MA(C,3),DRAWNULL),COLORYELLOW,LINETHICK2;IF(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2;IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);MA5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;V1:=EMA(CLOSE,5);V2:=EMA(EMA(CLOSE,90)*1.01,10);DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;VAR1:=LLV(LOW,21);VAR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),COLORYELLOW;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF; DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF; A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;VAR6:=REF(C,1);VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼逃顶'),COLORYELLOW;。

【股票指标公式】-【通达信】牛熊趋势线(副图)

【股票指标公式】-【通达信】牛熊趋势线(副图)

【通达信】牛熊趋势线(副图)-指标公式源码亿:AMOUNT/100000000,COLORFF00FF,NODRAW;VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));流入亿:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLO SE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;流出亿:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR 1*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;额亿:流入亿+流出亿,COLORFFFF00,NODRAW;{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;{量:(线),VOLSTICK;}分界:0;STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR0D0C6A; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0D06AA; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.5,0)COLOR2108C1; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR9F5DFF;STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR22736F; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR22AAD5; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR10C7BF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR80FFFF;STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR1B7411; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR17A715;STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR08D306; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR40FF00;STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR080E71; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0B0E8C; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.52,0)COLOR0905B0; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR0204F2; {}DRAWTEXT(CROSS(0,YUWEI),0,'空');DRAWTEXT(CROSS(YUWEI,0),0,'买');{趋势}主力:=(CLOSE*2+HIGH+LOW+O)/4;散户:=EMA(主力,11)-EMA(主力,22);量比:=EMA(散户,5);量: (-2)*(散户-量比)*5,COLOR00FF00,LINETHICK3;量1: 2*(散户-量比)*5,COLOR0000FF,LINETHICK3;轴:0;【通达信】牛熊趋势线(副图)-指标公式效果图(文档来源:好股票网)。

通达信指标公式大全

通达信指标公式大全

SZ3天地人天: IF(HHVBARS(V ,60) ,REF(C ,HHVBARS(V ,60) ) ,C ),COLORLIBLUE,POINTDOT;地: IF(LLVBARS(V,5), REF (C,LLVBARS(V,5)),C),COLORYELLOW,POINTDOT;人: IF(LLVBARS(V,13), REF (C,LLVBARS(V,13)),C),COLORMAGENTA,POINTDOT;MA3:MA(C,3);MA13:MA(C,13);主力成本:COST(5),POINTDOT;获利了结: COST(98),POINTDOT;ZLX:STICKLINE(C<O AND REF(C,1)>REF(O,1),REF(C,1),REF(C,1)*0.995,4,0),COLOR00FF00;SZ1交易量WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORBLUE; VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V20:MA(VOLUME,20);V60:MA(VOLUME,60);V AR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),VOL/2)),COLORRED,POINTDOT;主卖:IF(CLOSE>OPEN,V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,V AR1*(HIG H-LOW),VOL/2))COLORRED,POINTDOT;SZ2短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;高浪日:=REF(短期,1)<2 AND REF(中期,1)<2 AND REF(中长期,1)<2 AND REF(长期,1)<2;高浪日抄底:IF(高浪日,1,0),COLORYELLOW,LINETHICK3;STICKLINE(高浪日抄底,20,40,2,0),COLORMAGENTA,LINETHICK5;DRAWTEXT(高浪日抄底,35,'买入'),COLORYELLOW,LINETHICK3;强势线:80,COLORRED,DOTLINE,LINETHICK2;弱势线:20,COLORGREEN,LINETHICK2;SZ4惜筹A:=H/C>1.03;B:=V/REF(V,1)<=2 AND V/REF(V,1)>=0.8;D:=H=HHV(H,3);A ANDB AND D;SZ仙人LC:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORW HITE,LINETHICK1;GAO:=HHV(C,60)-LLV(C,60);RSI:=SMA(MAX(LC-REF(LC,1),0),5,1)/SMA(ABS(LC-REF(LC,1)),5,1);仙人:LC+GAO*(RSI-0.5),COLORFF3399,LINETHICK1;{STICKLINE(CROSS(RSI,0.1),仙人,REF(仙人,1),1,0),COLORYELLOW;STICKLINE(CROSS(0.9,RSI),仙人,REF(仙人,1),1,0),COLORCYAN;}攻防价位:(REF((H-L)*0.618+L,1)),NODRAW,COLORYELLOW;STICKLINE(ISLASTBAR,攻防价位-0.01,攻防价位,6,0),COLORYELLOW;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*REF( MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;空:MA(多,6),COLORGREEN;水平面:MA(CLOSE,60),COLORYELLOW,POINTDOT;MS:IF(多>=REF(多,1),多,DRAWNULL),COLORRED,LINETHICK2;MM:IF(空>=REF(空,1),空,DRAWNULL),COLORYELLOW,LINETHICK2;买:=CROSS(多,空);卖:=CROSS(空,多);DRAWICON(买,L*0.97,1);DRAWICON(卖,H*1.03,2);SZ7短线MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'买'),COLORYELLOW;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'抛'),COLORGREEN;{抛};SZ8极品底MA6:MA(C,6),COLOR0000FF;MA18:MA(C,18),COLOR0096FF;MA30:MA(C,30),COLOR00FF99;MA60:MA(C,60),COLORFF00FF;MA120:MA(C,120),COLORWHITE;{MA250:MA(C,250),COLORCY AN;}D1:=((MEMA(CLOSE,3) - MEMA(CLOSE,6)) * 5);S:=MA(C,9);Z:=((EMA(D1,7) + EMA(CLOSE,5))-S)*100;P:=EMA(Z,2);D2:=IF(Z>P,1,0);STICKLINE(D2=0,OPEN,CLOSE,0.8,0),COLORBLUE;STICKLINE(D2=1,OPEN,CLOSE,0.8,0),COLORWHITE;A:=C-MA6;A1:=CROSS(A,0);A2:=CROSS(0,A);A3:=0.68*MA(FORCAST(CLOSE,2),40);A4:=IF(C<A3 OR L<A3,1,0);A5:=CLOSE-OPEN;A6:=OPEN-CLOSE;A7:=IF(CLOSE>OPEN,A5,A6);A8:=IF(OPEN<CLOSE,OPEN,CLOSE);DRAWICON(A1 AND REF(A1,1)=0 ,L*0.98,7);DRAWICON(A2 AND REF(A2,1)=0 ,H*1.02,8);LC:=REF(C,1);LD:=IF(C<LC*0.89,1,0);LE:=COUNT(LD=1,20);LF:=COUNT(LD=1,6);LG:=MA6/4.5;RSI1:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100,NODRAW,COLOR YELLOW;EE:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, ;AA:=((REF(EE,1)<REF(EE,2) AND EE<-30) AND EE>=REF(EE,1)) OR (REF(CROSS(-30,EE),1) AND CROSS(EE,-30)) OR EE=-30;MJ0:=IF(AA AND LE<1,1,0);V AR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);V AR2:=DMA(CLOSE,VOL/MA(VOL,31)/31);V AR3:=(CLOSE-V AR1)/V AR1*100<-10;V AR4:=(V AR1-VAR2)/V AR2*100<-16;V AR5:=V AR3 AND V AR4;V AR6:=V AR5 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0;DRAWTEXT(MJ0=1 AND MACD>REF(MACD,1),L*0.95,'极品底'),COLORMAGENTA; DRAWTEXT(A<-LG AND LF=0,L*0.96,'下跌过急'),COLORYELLOW;STICKLINE(A4=1,A8,A8+A7/2,2.8,0),COLORMAGENTA;DRAWICON(V AR6,L*0.96,11);PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:=IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻力位:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORCYAN;M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);支撑位:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW,COLORLIRED;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;RSI:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,NODRAW,COLORYELL OW;DRAWICON(CROSS(J,0) AND RSI<33,L*0.995,1);DRAWICON(CROSS(102,J),H*1.005,2);DRAWTEXT(CROSS(J,5)AND RSI<40,L*0.98,'短买');DRAWICON(CROSS(90,RSI),H+0.2,2);SZ15多方炮A1:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN;{三日均线描述}A2:=REF(C,2)/REF(O,2)>1.03;{前天的涨幅大于3%}A3:=REF(H,1)/REF(L,1)>1.03;{昨振幅大于3%}A4:=C/REF(C,1)>1.03;{今天涨幅大于3%}A5:=REF(C,1)/REF(C,2)<1.01 AND REF(O,1)/REF(C,2)<1.01;{昨天阴线开盘及收盘价均在前日收盘价1.01以内}A6:=REF(C,1)>REF(O,2);{昨天阴线收盘要大于前日开盘价}A7:=C>REF(O,1);{今日收盘价大于昨日的开盘价}A8:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);多方炮:A8 AND J<65;SZ19熊熊迹:MA(CLOSE,49),LINETHICK2,COLORYELLOW;KS:=((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13))*(-100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:= - 100 *(趋势线- CLOSE)/趋势线;AC:=EMA(AA,5);AG:=SUM((VOL / FINANCE(7)),1);SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,2);SA:=(MM * 0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));动态:IF(((SSL > MM)),SSL,SA),LINETHICK1,COLORGREEN;熊掌:IF(((SSL > MM) ),MM,SA),LINETHICK1,COLORGREEN;猎刀:IF(((SSL > MM)),MM,SA),LINETHICK2,COLORWHITE;V AR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);V AR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);V AR4Y:=REF(CLOSE,1);V AR5Y:=((SMA(MAX((CLOSE - V AR4Y),0),6,1) / SMA(ABS((CLOSE - V AR4Y)),6,1)) * 100);VAR6Y:=((SMA(MAX((CLOSE - V AR4Y),0),12,1) / SMA(ABS((CLOSE - V AR4Y)),12,1)) * 100);V AR7Y:=((SMA(MAX((CLOSE - V AR4Y),0),24,1) / SMA(ABS((CLOSE - VAR4Y)),24,1)) * 100);VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);V AR9Y:=SMA(V AR8Y,3,1);V ARAY:=SMA(V AR9Y,3,1);V ARBY:=((3 * VAR9Y) - (2 * V ARAY));VARCY:=(CROSS(V AR5Y,10) AND (V AR3Y < (0 - (28 * 20))));V ARDY:=((100 - CROSS(76,V AR5Y)) AND (V AR3Y > (5 * 20)));DRAWICON(((CROSS(76,V AR5Y) AND (V AR3Y > 5)) ),(HIGH * 1.0099),6),COLORFFFFFF;VAREY:=((((CROSS(V AR9Y,V ARAY) AND (V ARAY < 10)) AND (V AR3Y < (0 - 30))) AND (V AR2Y > 3)) * 30);VARFY:= - ((((V ARAY < 11) AND (V AR5Y < 15)) AND (V AR3Y < (0 - 26))) * 10);DRAWICON((CROSS(V ARFY,(0 - 9))),(LOW * 0.998),5);能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));V AR3C:=EMA(能量线,1);V AR4C:=REF(能量线,1);X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);LL:=REF(CLOSE,2);MD:=((SMA(MAX((CLOSE - LL),0),6,1) / SMA(ABS((CLOSE - LL)),6,1)) * 100);DB:=IF(((MD < REF(MD,1)) AND (MD > 79)),MD,0);DRAWICON(CROSS(Y,X),(LOW *0.985),1),LINETHICK3,COLORRED;DRAWICON(CROSS(X,Y),(HIGH *1.02),2),LINETHICK2,COLOR00FF00;DRAWTEXT(DB,(HIGH * 1.02),'抛'),LINETHICK2,COLOR00FF00;VAR1:=LLV(LOW,21);V AR2:=HHV(HIGH,21);AK:=EMA(((( CLOSE - VAR1) / (V AR2 - V AR1)) * 50),13);AK1:=EMA((((CLOSE - V AR1) / (V AR2 - V AR1)) * 100),5);V AR3:=LLV(LOW,55);V AR4:=HHV(HIGH,34);V AR5:=EMA((((CLOSE - VAR3) / (V AR4 - V AR3)) * 100),3);V AR6:=((AK + V AR5) / 2);V AR8:=EMA(VAR6,5);BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * V AR8)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);DRAWICON((CD = 0.6),(LOW * 0.99),9),LINETHICK1,COLOR33CC99;N:=5;回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D; MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))/(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));上线:=SMA(C,6.5,1);一号支撑线:SMA(C,14.5,1);上线1:=SMA(C,3,1);一号支撑线1:=SMA(C,8,1);上线2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,'洗盘'),COLOR00FF00;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT( CROSS(82,RSI) AND CLOSE<上线 1 , HIGH*1.04,'减仓') ,COLORFF9966,LINETHICK2;A7:=(2*C+H+L)/4;操作:MA(A7,5),COLORBLUE,LINETHICK2;操作1:=MA(A7,5)*1.03,LINETHICK2;操作2:=MA(A7,5)*0.97,LINETHICK2;DRAWTEXT( CROSS(上线1,上线) AND 上线1>操作,LOW *0.92,'买进' ),COLORYELLOW; V AR1:LLV(A7,21);V AR2:HHV(A7,30);DRAWTEXT( CROSS(上线1,操作) AND 上线1<一号支撑线AND 上线1<一号支撑线1 AND 上线1<上线AND CLOSE>V AR1,LOW *0.98,'见底' ),COLORYELLOW;YCX:=操作>=REF(操作,1);H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);DRAWTEXT(CROSS(上线1,一号支撑线1) AND 上线1>操作,LOW *0.98,'全仓' ),COLORYELLOW;SK:=EMA((A7-V AR1)/(V AR2-V AR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975;M2:=1000*一号支撑线1/一号支撑线<=1020 AND 一号支撑线1/一号支撑线>=980;M3:=1000*上线/一号支撑线<=1015 AND 上线/一号支撑线>=985;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 ANDCOUNT(SK>SD,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*0.94,'买进') ,COLORYELLOW;D:=MA(CLOSE,89)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,'抄底'),COLORBROWN;RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;K:=SMA(RSV,3,1);D1:=SMA(K,3,1);J:=3*K-2*D1;V AR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}V AR4:=EMA(EMA(EMA(V AR3,4),4),4);{可将3该为4,信号少点}E:=(V AR4-REF(VAR4,1))/REF(V AR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN;DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND H1<C AND O<L1 AND YCX AND CROSS(上线1,操作) AND LOW>V AR1 AND 上线1>一号支撑线AND J<90,LOW *0.9,'主升' ),COLORRED; DRAWTEXT( CROSS(上线1,操作) AND M1 AND M2 AND M3,LOW *0.94,'买进' ),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CLOSE>MA(CLOSE,一号支撑线) AND 操作>=REF(CLOSE,操作) AND CROSS(上线1,操作) AND LOW>V AR1 AND J<90,LOW *0.9,'主升' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND 操作>上线AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CROSS(上线1,操作) AND LOW>V AR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;DRAWTEXT(CLOSE>OPEN AND CROSS(上线,一号支撑线) AND LOW>V AR1 AND J<90,LOW *0.86,'回踩买进' ),COLORRED;STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{红K}; STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.1,0), COLORFF66FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,1.5,0),COLORFF99FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;SHOOTQ_1:=C-REF(C,1);Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);Q_3:=CROSS( EMA(C,19),EMA(C,7));Q_4:=CROSS(EMA(C,7),EMA(C,19));Z1:=L=LLV(L,BARSLAST(Q_3 )+1);Z2:=LLV(L,BARSLAST(Q_3)+1);Z3:=H=HHV(H,BARSLAST(Q_4)+1);Z4:=HHV(H,BAR SLAST(Q_4)+1);Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0);Y1:=H=HHV(H,BARSLAST(Q_4)+1);Y2: =HHV(H,BARSLAST(Q_4)+1);Y3:=L=LLV(L,BARSLAST(Q_3)+1);Y4:=LLV(L,BARSLAST( Q_3)+1);Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0);X1:=LLV(Q_2,2)=LLV(Q_2,7) ;X2:=COUNT(Q_ 2<0,2);X3:=CROSS(Q_2,MA(Q_2,2));X4:=REF(Q_B,1)<REF(Q_B,2);X5:=Q_A>REF(Q_B,1);买进:=(X1 AND X2 AND X3) AND X4 AND X5;TJ:=IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,1,0);SHOOT:REF(TJ,1)=0 AND TJ>=1;SZ18背离DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;DRAWTEXT(CROSS(DIFF,DEA),DIFF,'☆'),COLORRED;{DRAWICON(CROSS(DIF,DEA),DIF*1.05,1);DRAWICON(CROSS(DEA,DIF),DEA*0.90,2);}月DIFF:="MACD.DIF#MONTH"COLOR0080FF;月DEA:="MACD.DEA#MONTH",COLOR0080FF,LINETHICK2;周DIFF:="MACD.DIF#WEEK"COLORRED;周DEA:="MACD.DEA#WEEK",COLORRED,LINETHICK2;日DIFF:="MACD.DIF",COLORWHITE;日DEA:="MACD.DEA",COLORWHITE,LINETHICK2;日金:IF(CROSS(日DIFF,日DEA),0.125,0),COLORYELLOW;周金:IF(CROSS(周DIFF,周DEA),0.15,0),COLORRED;月金:IF(CROSS(月DIFF,月DEA),0.175,0),COLORGREEN;DRAWICON(周金AND 日金,-0.1,7);DRAWICON(周金AND 月金,-0.15,11);DRAWICON(日金AND 月金,-0.1,1);日死:IF(CROSS(日DEA,日DIFF),-0.1,0),COLORYELLOW;周死:IF(CROSS(周DEA,周DIFF),-0.125,0),COLORRED;月死:IF(CROSS(月DEA,月DIFF),-0.15,0),COLORGREEN;DRAWICON(周死AND 日死,-0.1,8);DRAWICON(周死AND 月死,-0.15,12);DRAWICON(日死AND 月死,-0.15,2);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1,NODRAW;STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,NODRAW; STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;DRAWICON(二次金叉,DEA*0.9,1) ;DRAWTEXT(二次金叉,0.225,' 二次金叉'),COLORYELLOW;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),NODRAW;STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,NODRAW;DRAWTEXT(底背离,0.10,' 底背离'),COLORFF00FF;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),NODRAW;顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;DRAWTEXT(低位金叉AND 二次金叉AND 底背离,0.275,'三全项'),COLOR0000FF,LINETHICK2;DRAWICON(CROSS(DIFF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIFF),DEA,2);WW:=DEA>REF(DEA,1);DD:=CROSS(DIFF,REF(DIFF,1));反身向上:IF((WW AND DD),0.25,0),COLORWHITE;DRAWTEXT(反身向上,0.17,' 反身上'),COLORWHITE;AD:=LOW=LLV(LOW,14) AND LOW<REF(LOW,1) AND LOW<REF(LOW,5) AND MACD>REF(MACD,1) AND 0>MACD AND 0>REF(MACD,1);DRAWICON(AD,MACD,9);SZ17火焰山V AR1:=EMA(HHV(HIGH,500),21);V AR2:=EMA(HHV(HIGH,250),21);V AR3:=EMA(HHV(HIGH,90),21);V AR4:=EMA(LLV(LOW,500),21);V AR5:=EMA(LLV(LOW,250),21);V AR6:=EMA(LLV(LOW,90),21);V AR7:=EMA((V AR4*0.96+V AR5*0.96+V AR6*0.96+V AR1*0.558+V AR2*0.558+V AR3*0.558)/ 6,21);V AR8:=EMA((V AR4*1.25+V AR5*1.23+V AR6*1.2+V AR1*0.55+V AR2*0.55+V AR3*0.65)/6,21 );V AR9:=EMA((V AR4*1.3+V AR5*1.3+V AR6*1.3+V AR1*0.68+V AR2*0.68+V AR3*0.68)/6,21); V ARA:=EMA((V AR7*3+V AR8*2+V AR9)/6*1.738,21);V ARB:=REF(LOW,1);V ARC:=SMA(ABS(LOW-V ARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;V ARD:=EMA(IF(CLOSE*1.35<=V ARA,V ARC*10,V ARC/10),3);V ARE:=LLV(LOW,30);V ARF:=HHV(VARD,30);V AR10:=IF(MA(CLOSE,58),1,0);火焰山: EMA(IF(LOW<=V ARE,(V ARD+V ARF*2)/2,0),3)/618*V AR10;火焰: STICKLINE(火焰山>0,0,火焰山,4,1);今量: 火焰山;STICKLINE(火焰山>0,0,今量*1.2,8,0) COLOR0000FF;STICKLINE(火焰山>0,0,今量*0.8,8,0) COLOR0066FF;STICKLINE(火焰山>0,0,今量*0.6,8,0) COLOR0099FF;STICKLINE(火焰山>0,0,今量*0.4,8,0) COLOR00CCFF;STICKLINE(火焰山>0,0,今量*0.2,8,0) COLOR00FFFF;SZ16水池STICKLINE(C>0,90,95,10,0),COLOR408000;STICKLINE(C>0,10,5,10,0),COLOR408000;ZHENGYI:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);DRAWBAND(ZHENGYI,RGB(255,000,139),10,RGB(255,255,71));STICKLINE(C>0,90,10,10,0),COLOR000000;风险值:ZHENGYI,COLORCY AN,LINETHICK1;警示线:45,COLORMAGENTA,LINETHICK1,POINTDOT;SZ10综合预警V AR1:=EMA(HHV(HIGH,500),21);V AR2:=EMA(HHV(HIGH,250),21);V AR3:=EMA(HHV(HIGH,90),21);V AR4:=EMA(LLV(LOW,500),21);V AR5:=EMA(LLV(LOW,250),21);V AR6:=EMA(LLV(LOW,90),21);V AR7:=EMA((V AR4*0.96+V AR5*0.96+V AR6*0.96+V AR1*0.558+V AR2*0.558+V AR3*0.558)/ 6,21);V AR8:=EMA((V AR4*1.25+V AR5*1.23+V AR6*1.2+V AR1*0.55+V AR2*0.55+V AR3*0.65)/6,21 );V AR9:=EMA((V AR4*1.3+V AR5*1.3+V AR6*1.3+V AR1*0.68+V AR2*0.68+V AR3*0.68)/6,21);V ARA:=EMA((V AR7*3+V AR8*2+V AR9)/6*1.738,21);V ARB:=REF(LOW,1);V ARC:=SMA(ABS(LOW-V ARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;V ARD:=EMA(IF(CLOSE*1.35<=V ARA,V ARC*10,V ARC/10),3);V ARE:=LLV(LOW,30);V ARF:=HHV(VARD,30);V AR10:=IF(MA(CLOSE,58),1,0);EMA(IF(LOW<=VARE,(V ARD+V ARF*2)/2,0),3)/618*V AR10>0;SZ11笑脸M13:=MA(C,13);M250:=MA(C,250);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);M:=(DIF-DEA)*2;定位:=BARSLAST(REF(CROSS(DIF,DEA),1));前股价低值:=MIN(REF(L,定位+1),MIN(REF(L,定位+2),MIN(REF(L,定位+3),MIN(REF(L,定位+4),MIN(REF(L,定位+5),MIN(REF(L,定位+6),REF(L,定位+7)))))));DIF前低:=MIN(REF(DIF,定位+1),MIN(REF(DIF,定位+2),MIN(REF(DIF,定位+3),MIN(REF(DIF,定位+4),MIN(REF(DIF,定位+5),MIN(REF(DIF,定位+6),REF(DIF,定位+7)))))));今股价低值:=MIN(REF(L,1),MIN(REF(L,2),MIN(REF(L,3),MIN(REF(L,4),MIN(REF(L,5),MIN(REF(L, 6),REF(L,7)))))));DIF现低:=MIN(REF(DIF,1),MIN(REF(DIF,2),MIN(REF(DIF,3),MIN(REF(DIF,4),MIN(REF(DIF,5),M IN(REF(DIF,6),REF(DIF,7)))))));底部背离:=IF(CROSS(DIF,DEA) AND 今股价低值<前股价低值AND DIF现低>DIF前低,100,0);信号1:=IF(底部背离=100 OR REF(底部背离,1)=100 OR REF(底部背离,2)=100 OR REF(底部背离,3)=100 OR REF(底部背离,4)=100 OR REF(底部背离,5)=100OR REF(底部背离,6)=100 OR REF(底部背离,7)=100,100,0);ZG:=HHV(H,60);ZD:=LLV(L,60);ZJ:=IF(M13>REF(M13,1) AND REF(M13,1)<=REF(M13,2) AND REF(M13,2)<REF(M13,3),100,0);TJ:=IF(REF(L,1)=ZD AND ZG/ZD>1.3,100,0);DD:=IF(REF(TJ,1)=100 OR REF(TJ,2)=100 OR REF(TJ,3)=100 OR REF(TJ,4)=100 OR REF(TJ,5)=100OR REF(TJ,6)=100 OR REF(TJ,7)=100 OR REF(TJ,8)=100 OR REF(TJ,9)=100 OR REF(TJ,10)=100 ORREF(TJ,11)=100 OR REF(TJ,12)=100 OR REF(TJ,13)=100 OR REF(TJ,14)=100 OR REF(TJ,15)=100OR REF(TJ,16)=100 OR REF(TJ,17)=100 OR REF(TJ,18)=100 OR REF(TJ,19)=100 OR REF(TJ,20)=100,100,0);超跌:=IF(ZJ=100 AND DD=100 AND C>M13,100,0);入场:=IF(超跌=100 AND 信号1=100,100,0);XG:入场=100;SZ12跟庄A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);V AR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);V AR2:=EMA(VAR1,8);V AR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(V AR3,3)-10;STICKLINE(趋势>80,趋势,80,5,0);DRAWICON(CROSS(趋势,0),0,1);STICKLINE((A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50)),0,A09,6,0),COLORFFFF00;机构建仓区:0,LINETHICK0,COLORFFFF00;V AR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;STICKLINE(趋势<=13,0,20,3,0),COLORCC9900;DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),COLORCC9900;STICKLINE(趋势<=13 AND V AR4>13,0,50,2,0),COLOR0099FF;V AR5:=FILTER((趋势<=13 AND V AR4>13),10);DRAWTEXT(V AR5,60,'买入'),COLOR0099FF;STICKLINE(趋势>=90 AND V AR4,0,30,3,0),COLORGRAY;V AR6:=FILTER((趋势>=90 AND V AR4),10);DRAWTEXT(V AR6,40,'清仓'),COLORGRAY;V AR7:=LLV(LOW,30);V AR8:=HHV(HIGH,30);V AR9:=EMA((CLOSE-V AR7)/(V AR8-V AR7)*4,4)*25;STICKLINE(V AR9>90,100,105,3,2),COLORRED;V AR10:=(V AR9-LLV(V AR9,4))/(HHV(V AR9,4)-LLV(V AR9,4))*100;DRAWTEXT(IF(CROSS(V AR9,V AR10) AND V AR9>87,95,0),88,'险'),COLOR00FF00; DRAWICON(CROSS(90,V AR9),95,9);V AR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;V AR12:=HHV(V AR11,30)*8;火焰山:EMA(IF(LOW<=V AR7 AND 趋势<40,(V AR11+V AR12),0),3)/618,COLORRED,LINETHICK2;STICKLINE(火焰山>0,0 ,火焰山*1.2,4,0 ),COLORRED;V AR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;V AR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趋势线: 趋势,COLORFF0000;V AR16:=MAX(EMA(V AR13,2)-EMA(V AR14,5),0)*200;V AR17:=EMA(V AR16,5);波浪峰:V AR17,STICK,COLORFF00FF;STICKLINE(V AR17<REF(V AR17,1),0,V AR17,1,0),COLOR00FF00;V AR18:=MA(趋势线,8);IF(CROSS(V AR2,V AR18) AND V AR2<15,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,V AR2)AND 趋势线>REF(趋势线,1)AND 趋势线<50,50,'追涨'),COLORFF00FF;风险区:IF(趋势>80,趋势,80),COLORFF00FF;SZ13波浪PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;SZ14老鼠仓AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,(LOW* 0.97),'老鼠仓'),COLOR4080FF;SZ250HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);HDY<45;SZ20逃跑V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5)>MA(V,40)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;收盘价逃顶:IF(V1 AND V2 AND V3 AND V4,50,0),LINETHICK2,COLORBLUE; DRAWTEXT(收盘价逃顶,80,'收盘价逃顶'),COLOR000999;SZ21总金额总亿:AMOUNT/100000000,COLORFF00FF,NODRAW;V AR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));流入亿:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;流出亿:IF(CLOSE>OPEN,0-V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*( HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00,NODRAW;额亿:流入亿+流出亿,COLORFFFF00,NODRAW;{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;{量:(线),VOLSTICK;}分界:0;STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR0D0C6A; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0D06AA; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.5,0)COLOR2108C1; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR9F5DFF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR22736F; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR22AAD5; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR10C7BF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR80FFFF; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR1B7411; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR17A715; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR08D306; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR40FF00; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR080E71; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0B0E8C; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.52,0)COLOR0905B0; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR0204F2; DRAWTEXT(CROSS(0,YUWEI),0,'空');DRAWTEXT(CROSS(YUWEI,0),0,'买');SZ钓鱼RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;K:=SMA(RSV,9,1);D:=SMA(K,3,1);趋势J1:=3*K-2*D,COLORRED;趋势J2:=EMA(K,3),LINETHICK1;BBIAS :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;反弹:= IF(CROSS(K,D) AND BBIAS<-6 AND D<16 AND CLOSE>REF(CLOSE,1),80,0),COLOR00FF00;DRAWICON(反弹=80,趋势J2-0.005,1);阶段底:=EMA(IF(L<= LLV(L,40),SMA(ABS(L-REF(L,1)),40,1)/SMA(MAX(L-REF(L,1),0),40,1),0),3)*10,STICK,CO LORRED,LINETHICK2;V1:=AMOUNT/VOL/100;V2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;V3:=SUM(AMOUNT,7)/V1/100;V4:=DMA(V2,VOL/V3);V5:=(CLOSE-V4)/V4*100;V6:=MA(V5,20)+STD(V5,20);BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;水面:=20;买入:=IF(趋势J1<30,趋势J1,DRAWNULL),COLORGREEN,LINETHICK5;买入2:=CROSS(买入,趋势J2);狮子钓鱼:IF(买入2>0.5,80,0)COLORRED;DRAWTEXT(买入2,80,'钓')COLORRED;DRAWTEXT(买入2,70,'鱼')COLORRED;STICKLINE(买入2,50,0,10,0);DY2NF:(C+REF(C,1)+REF(C,2)+H+REF(H,1)+REF(H,2)+L+REF(L,1)+REF(L,2)+O+ REF(O,1)+REF(O,2))/12,LINETHICK2,COLORLICYAN;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);保护价:(REF(CLOSE,2)+REF(CLOSE,1)+O)/3;N:=75;P:=5;P1:=10;A1:=REF(H,P)=HHV(H,2*P+1);B1:=FILTER(A1,P);C1:=BACKSET(B1,P+1);D1:=FILTER(C1,P);E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);F1:=E1>REF(E1,1);短压:DRAWLINE(D1,H,F1,H,1),COLORCY AN;A2:=REF(L,P)=LLV(L,2*P+1);B2:=FILTER(A2,P);C2:=BACKSET(B2,P+1);D2:=FILTER(C2,P);E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);F2:=E2>REF(E2,1);短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;AA1:=REF(H,P1)=HHV(H,2*P1+1);BB1:=FILTER(AA1,P1);CC1:=BACKSET(BB1,P1+1);DD1:=FILTER(CC1,P1);EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);FF1:=EE1>REF(EE1,1);长压:DRAWLINE(DD1,H,FF1,H,1),COLORGREEN;AA2:=REF(L,P1)=LLV(L,2*P1+1);BB2:=FILTER(AA2,P1);CC2:=BACKSET(BB2,P1+1);。

通达信牛熊线买卖点主图指标公式

通达信牛熊线买卖点主图指标公式

通达信牛熊线买卖点主图指标公式动力线:MA(C,5),LINETHICK3,COLOR00CCFF;牛熊线:MA(C,13),CIRCLEDOT,COLORYELLOW;生命线:MA(C,34),CIRCLEDOT,COLORMAGENTA;MA05:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA05)/MA05*100;BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB05>30 AND MA05>REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB05<0 AND MA05<REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORGREEN;三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1);BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05<REF(MA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10<REF(MA10,1),10);DRAWTEXT(加仓,LOW*0.98,'◆加二'),COLORYELLOW;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND MA10>REF(MA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'◆风险'),COLORCYAN;DRAWTEXT(买入,LOW*0.96,'◆买二'),COLORYELLOW;DRAWTEXT(清仓,HIGH*1.00,'◆清仓'),COLORGREEN;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;{彩色K线}TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);TYX4:=MA((C+L+O+H)/4,13);TYX5:=EMA((C+L+O+H)/4,21);{空心红}STICKLINE(C<TYX5 AND C>O,H,L,0,0),COLORRED;STICKLINE(C<TYX5 AND C>O,C,O,3,1),COLORRED;{深绿}STICKLINE(C<TYX5 AND C<O,H,L,0,0),COLOR007700;STICKLINE(C<TYX5 AND C<O,C,O,3,0),COLOR005500; STICKLINE(C<TYX5 AND C<O,C,O,2,0),COLOR006600; STICKLINE(C<TYX5 AND C<O,C,O,1,0),COLOR007700; {蓝}STICKLINE(C>TYX5 AND C<O,H,L,0,0),COLORFFDD44; STICKLINE(C>TYX5 AND C<O,C,O,3,0 ),COLORFF7700; STICKLINE(C>TYX5 AND C<O,C,O,2,0 ),COLORFFAA22; STICKLINE(C>TYX5 AND C<O,C,O,1 ,0 ),COLORFFDD44; {黄}STICKLINE(C>TYX5 AND C>O,H,L,0,0 ),COLOR00EEFF; STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00AAFF; STICKLINE(C>TYX5 AND C>O,C,O,2,0 ),COLOR00CCFF; STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00EEFF;{粉红}STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA; STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF11FF; STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF44FF; STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF66FF;{亮灰}STICKLINE(C>TYX4 AND C<O,H,L,0,0),COLOR999999; STICKLINE(C>TYX4 AND C<O,C,O,3,0),COLOR555555; STICKLINE(C>TYX4 AND C<O,C,O,2,0),COLOR777777; STICKLINE(C>TYX4 AND C<O,C,O,1,0),COLOR999999;{深红}STICKLINE(C>TYX3 AND C>O,H,L,0,0),COLOR0000DD; STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099; STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB; STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD;{涨跌停K线}STICKLINE(HIGH=LOW AND CLOSE=OPEN AND(CLOSE/REF(CLOSE,1))>1.048,HIGH,LOW,3,0) ,COLORRED;STICKLINE(HIGH=LOW AND CLOSE=OPEN AND (REF(CLOSE,1)/CLOSE)>1.048,HIGH,LOW,3,0) ,COLOR00FF00;{突破}STICKLINE(REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 AND C>O,C,O,1,0),COLOR00CCFF;{买卖主图}MA18:=MA(CLOSE,18);MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));DRAWTEXT(FILTER(买=1,5),LOW,'★买一'),COLORRED;加1:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);DRAWTEXT(加1,LOW*0.99,'★加一'),COLORCC66FF;卖一:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);DRAWTEXT(FILTER(卖一=1,1),HIGH*1.01,'★卖一'),COLORGREEN;{牛熊通吃}AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,LOW*0.99,'老鼠仓'),COLOR4080FF;{预测明天}XXS:=MA(LOW,5)*(1-5/100);XXS1:=MA(HIGH,5)*(1+5/100);均线:=C,COLORGREEN;AAAA:=CLOSE/REF(CLOSE,3)<=0.85 AND CROSS(C,XXS) AND C>REF(C,1),LINETHICK0 ;DRAWTEXT(AAAA,L*0.95,'下影买'),COLORRED;BBAA:=CROSS(XXS1,C);DRAWTEXT(CROSS(XXS1,C),H,'开盘逃'),COLORWHITE;DDDD:=CROSS(C,XXS1);DRAWTEXT(DDDD,H,'明日走'),COLORYELLOW;{兄弟指标}AAA:=MA(LOW,5)*(1-5/100);BBB:=(HHV(AAA,5)+LLV(AAA,5))/2;DRAWTEXT(CROSS(BBB,L) AND BBB>REF(BBB,1),L*0.98,'←兄弟回马枪'),COLORWHITE;{天河指标}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);DRAWTEXT(REF(CROSS(DEA,DIF),1) AND CROSS(DIF,DEA),L*0.97,'←天河回马抢'),COLORMAGENTA;{见好就收}VSR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VSR3:=SMA(VSR2,4,1);VSR4:=SMA(VSR3,2,1);DRAWTEXT(VSR4>82 AND VSR3>89,HHV(C,30)*1.02,'收'),COLORGREEN;。

9点半到10点半的通达信公式

9点半到10点半的通达信公式

9点半到10点半的通达信公式标题:精品通达信公式揭秘:揭开9点半到10点半的奥秘导语:通达信是广受股民喜爱的交易软件,而其中9点半到10点半的时间段,更是备受关注。

今天我们将为您揭开这个时间段的通达信公式背后的奥秘,为您提供全面指导,助您成功把握市场。

1. MACD通达信公式:MACD是一种趋势指标,可以帮助投资者判断股票的买卖方向和时机。

9点半到10点半是股市开盘后的重要阶段,通过应用MACD通达信公式,可以帮助投资者准确把握短期趋势,从而更好地决策。

2. 成交量通达信公式:成交量是衡量市场活跃度的重要指标之一。

在9点半到10点半的时间段,成交量通常会呈现一定的规律。

借助通达信公式,投资者可以对成交量进行分析,判断市场的买卖热度,制定合理的交易策略。

3. KDJ通达信公式:KDJ指标是一种相对强弱指标,能够帮助投资者找到买卖信号点。

在9点半到10点半之间,投资者可以运用KDJ通达信公式,对股票的波动情况进行分析,找到合适的买卖时机,提高交易准确性。

4. 均线通达信公式:均线是一种技术分析工具,通过计算一定时间内的股价平均值,帮助投资者判断趋势的走向。

在9点半到10点半这个时间段,均线通达信公式可以帮助投资者捕捉到市场短期波动,提供有效的交易参考。

5. BOLL通达信公式:BOLL指标是一种布林线指标,可以帮助投资者判断股票价格的上下限,从而更好地制定买入和卖出策略。

在9点半到10点半期间,通过应用BOLL通达信公式,投资者可以抓住股票价格的突破情况,提高交易的成功率。

总结:在9点半到10点半这一时间段,通过运用MACD、成交量、KDJ、均线和BOLL等通达信公式,投资者可以更好地了解市场的趋势和变化,制定科学的交易策略。

然而,市场是多变的,公式只是辅助工具,投资者还应综合考虑其他因素,谨慎决策。

同时,建议投资者在使用通达信公式时,要多加实践和学习,不断调整和优化,以适应市场的变化。

相信通过学习和应用通达信公式,加上自己的经验积累,投资者必将能够在这个时间段获得更好的投资收益。

四季牛熊指标源码

四季牛熊指标源码

四季牛熊指标源码
(实用版)
目录
1.四季牛熊指标的定义和含义
2.四季牛熊指标的计算方法和公式
3.四季牛熊指标的应用和意义
4.四季牛熊指标的优缺点分析
5.四季牛熊指标的源代码展示
正文
1.四季牛熊指标的定义和含义
四季牛熊指标,是一种用于判断股票市场或者某个股票的牛熊状态的技术指标。

该指标主要通过对股票价格的走势进行分析,判断其是否处于牛市或者熊市,并进一步预测未来的走势。

2.四季牛熊指标的计算方法和公式
四季牛熊指标的计算方法比较复杂,其主要包括两个部分:四季线和牛熊线。

四季线的计算公式为:(当前价格 - 过去 12 个月的最低价格)/(过去 12 个月的最高价格 - 过去 12 个月的最低价格)*100。

牛熊线的计算公式为:(过去 12 个月的最高价格 + 过去 12 个月的最低价格)/2。

当四季线超过牛熊线,且价格上涨时,被认为是牛市;当四季线低于牛熊线,且价格下跌时,被认为是熊市。

3.四季牛熊指标的应用和意义
四季牛熊指标在股票市场中的应用非常广泛,它可以帮助投资者判断股票价格的走势,从而决定是否买入或者卖出。

同时,该指标也可以用于预测未来的股票价格走势,为投资者提供决策依据。

4.四季牛熊指标的优缺点分析
四季牛熊指标的优点在于其可以较为准确地判断股票价格的走势,从而帮助投资者做出决策。

然而,该指标也存在一些缺点,例如计算方法复杂,需要花费较长时间,而且对于短期股票价格的波动无法做出准确预测。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档