分时乾坤决策眼分时主图指标通达信指标公式源码
通达信经典分时主图 源码指标公式
DRAWGBK(O>=0,RGB(60,35,0),RGB(0,60,60),0,'背景图',0),LINETHICK2;{========================额外==========================} Z1:=STRCAT(DYBLOCK,' ');Z2:=STRCAT(Z1,HYBLOCK);Z3:=STRCAT(Z2,' ');Z4:=STRCAT(Z3,GNBLOCK);Z5:=STRCAT(Z4,' ');Z6:=STRCAT(Z5,FGBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.01,0.012,0,STRCAT(Z6,ZHBLOCK)),COLORCYAN;DRAWTEXT_FIX(ISLASTBAR,0,0.14,0,STRCAT('概念: ',GNBLOCK)),COLORWHITE;A1:=(VOL/CLOSE)/3;A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1>40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1<40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);突破:=REF(EMA(C,14),1);A1X:=(EMA(C,10)-突破)/突破*100;多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL); STICKLINE(A1X>=0,多方,突破,0,0),COLOR000099;STICKLINE(A1X<0,空方,突破,0,0),COLOR00CC66;最新:CLOSE,LINETHICK1,COLORWHITE;AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));BB:=BETWEEN(C/AA,C+H,C-H);DRAWTEXT( ISLASTBAR AND 最新>REF(最新,1),最新,STRCAT(' 涨▲',CON2STR(最新,2))),COLORMAGENTA;DRAWTEXT( ISLASTBAR AND 最新<REF(最新,1),最新,STRCAT(' 跌▼',CON2STR(最新,2))),COLOR00FF00;DRAWTEXT_FIX(1,0.880,1-0.97,0,DYBLOCK),COLORWHITE;DRAWTEXT_FIX(1,0.940,1-0.97,0,HYBLOCK),COLORYELLOW;均价:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;DXJP:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,21)-LLV(LOW,34))*100;FSZX:=(EMA(DXJP,3)-50)*2,COLORGRAY;BGTYU:=IF(DATE<=1150530,1,0);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)) )/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95);VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU))) ));DRAWICON(FSZX<=-95,C,38);DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.04),C,'板'),COLORCYAN; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),C,'追'),COLORYELLOW;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:=L1+P1*7/8,COLORGREEN;支撑:=L1+P1*0.5/8,COLORMAGENTA;DRAWICON(LONGCROSS(支撑,C,2),C,5);AYGB1:=(DVOL/C)/2,NODRAW;AYGB2:=SUM(IF(AYGB1>100 AND CLOSE>REF(CLOSE,1),AYGB1,0),0);AYGB3:=SUM(IF(AYGB1>100 AND CLOSE<REF(CLOSE,1),AYGB1,0),0);AYGB4:=SUM(IF(AYGB1<100 AND CLOSE>REF(CLOSE,1),AYGB1,0),0);AYGB5:=SUM(IF(AYGB1<100 AND CLOSE<REF(CLOSE,1),AYGB1,0),0);AYGB6:=AYGB2+AYGB3+AYGB4+AYGB5;机买:=(AYGB2/AYGB6)*100-100,LINETHICK1,COLORRED;机卖:=(AYGB3/AYGB6)*100-100,LINETHICK1,COLORGREEN;主力差:=机买-机卖;LQH:=主力差>0 AND REF(主力差,1)<=0;DRAWICON(LQH,C,25);JJXX:=IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),1.05,0.95)=0,MA(C,0),(SUM( AMOUNT,0)/SUM(VOL*100,0))),COLORYELLOW;JJXXH:=(JJXX*1.007 ),COLORFF6600;FFLL:=SUM(VOL,6)>REF(MA(VOL,30),1)*10;HHPP:=((HHV(CLOSE,BARSCOUNT(CLOSE))-LLV(CLOSE,BARSCOUNT(CLOSE)))/CLOSE)< 1;HHZZ:=HHPP AND FFLL AND (C>JJXXH);TTPP2:=FILTER(HHZZ,100);DRAWICON(TTPP2,C,26);ZS:=DYNAINFO(3);KP:=DYNAINFO(4);ZX:=DYNAINFO(7);ZG:=DYNAINFO(5);ZD:=DYNAINFO(6);分时均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW;RC:=DYNAINFO( 3);量比超2.5:=IF(DYNAINFO(17)>2.5,RC-0.15,DRAWNULL),COLORFF9933;量比超5:=IF(DYNAINFO(17)>5,RC-0.15,DRAWNULL),COLORBA75FF;DRAWBAND(量比超2.5,RGB(51,153,255),量比超2.5+0.015,RGB(51,153,255)); DRAWBAND(量比超5,RGB(255,118,188),量比超5+0.015,RGB(255,118,188));{首次起爆}TT:=BARSCOUNT(C);{取得有效收盘价}均价黄:SUM(C*V,TT)/SUM(V,TT),LINETHICK1,COLOR00FFE1;{分时均线的取值}量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);价上岗量破5:=C>均价黄AND V>MA(V,5);量起爆:=V>=REF(V,1)*2 ;价创新高:=C>=HHV(C,0);量创新高:=V>=HHV(V,0);对昨日涨幅:=C/DYNAINFO(3)<=1.02;{涨幅控制2个点以内}每日一点:=量两步AND 价两步AND 价上岗量破5 AND 量起爆AND 价创新高AND 量创新高AND 对昨日涨幅;{计算收益、已爆分钟}VC:=BARSSINCE(每日一点)+1;首次起爆价:REF(C,VC-1),NODRAW;今天收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;起爆时间:REF(TIME/10000,VC),NODRAW;已爆分钟:VC-1,NODRAW;首次起爆量:=REF(VOL,VC-1);DRAWICON(已爆分钟>=2,RC-0.1,11);{出现金手指,至少已经确认2分钟了};R1:=MA(C,13);R2:=SMA(R1,5,2);DRAWBAND(R1,RGB(255,0,125),R2,RGB(0,111,255));C,LINETHICK2,COLORDDDDDD;{涨停}地:=DYNAINFO(11)+(DYNAINFO(11)*0.021);涨停:IF(DYNAINFO(7)>地,1,0),NODRAW,COLOR0088FF;涨:=IF(涨停=1,C+0.0075,DRAWNULL),COLOR8000FF,LINETHICK2;DRAWBAND(涨,RGB(255,211,0),C-0.0075,RGB(255,125,0));时间:=TIME=100000;N:=BARSLAST(时间);常数:=CONST(IF(N=0,C,REF(C,N))),COLORGREEN,DOTLINE;CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N)));STICKLINE(时间=1,CS1,CS2,1.2,0),COLOR008888;{涨停2}AAZ:=BARSLAST(TIME=103000);CC:=REF(HHV(C,0),AAZ+1);VV:=REF(HHV(V,0),AAZ+1);ZF:=CC/DYNAINFO(3)<1.05;涨停2:=CROSS(C,CC) AND V>VV AND ZF,COLOR0000FF; DRAWICON(涨停2,RC-0.06,13);A:=O>C AND C>REF(C,1) AND O/REF(C,1)>1.03; DRAWTEXT(ABS(A)>0,L, '假阴'),COLORYELLOW;均价5:AMOUNT/VOL/100,NODRAW;假阴0:=O>C AND 均价5>REF(C,1);DRAWTEXT(假阴0,L-0.2,'假阴真阳'),COLORE8E8E8; STICKLINE(假阴0,O,C,1,0),COLORRED;时间N:=TIME=100000;NN:=BARSLAST(时间N),COLOR808080;常数N:CONST(IF(NN=0,C,REF(C,N))),COLOR004848,DOTLINE;。
通达信乾坤决策眼 + 超级涨停 最新优化 分时副图 源码
{乾坤眼}H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00FFFF,DOTLINE;支撑:L1+P1*0.5/8,COLORRED,DOTLINE;中:(支撑+阻力)/2,COLORC0C0C0,DOTLINE;现价:CLOSE,COLORWHITE,LINETHICK1;MR:=C<支撑AND CROSS(C,REF(C,2));MC:=C>阻力AND CROSS(REF(C,2),C);均价:=SUM(V*C,0)/SUM(V,0),COLOR004080,DOTLINE;DRAWTEXT(CURRBARSCOUNT=1,阻力,'--------阻力'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=1,支撑,'--------支撑'),COLORA2A2FF;DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,'--------中'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=4,均价,'--------均'),COLORFFFFFF,LINETHICK2;{---------------------------------}DRAWTEXT(CROSS(支撑,现价),(支撑-中)/5+支撑,'★底'),COLORYELLOW; DRAWTEXT(CROSS(现价,阻力),阻力-(支撑-中)/5,'★顶'),COLORMAGENTA;{------------新图---------------------}Q:=250;高点:=HHV(C,Q);低点:=LLV(C,Q);最高:=CONST(高点),NODRAW;最低:=CONST(低点),NODRAW;轴差:=最高-最低;中价轴:=(最高+最低)/2;HL3:=(100-0)/2*1.3;HL4:=(100-0)/1*1.3;中间价轴:=中;平安轴:=中;BGTYU:=1;GHYJKU:=BETWEEN((CLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/S UM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))),1.05,0.95);VBNH:=IF(GHYJKU=0,MA((CLOSE*BGTYU),BARSCOUNT((CLOSE*BGTYU))),(SUM(AMOU NT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU))))); 起动线:=EXPMA((CLOSE/VBNH),20)*1,COLORYELLOW,POINTDOT;主力线:=EXPMA((CLOSE/VBNH),60)*1,COLORMAGENTA,LINETHICK2;散户线:=EXPMA((CLOSE/VBNH),120)*1,COLORGREEN,LINETHICK2;限制起动线:=起动线*中间价轴;限制主力线:=主力线*中间价轴;限制散户线:=散户线*中间价轴;主散MIN:=MIN(限制主力线,限制散户线);{分时转强:=主散MIN>金龙线AND ((LONGCROSS(限制主力线,金龙线,2) OR CROSS(限制主力线,限制散户线)) OR (限制主力线>限制散户线AND LONGCROSS(牵引线,金龙线,2)));} DRAWBAND(限制主力线,RGB(250,125,0),限制散户线,RGB(0,100,250));STICKLINE(起动线<主力线,限制起动线,限制主力线,1.0,0),COLOR00FF00;STICKLINE(起动线>主力线,限制起动线,限制主力线,1.0,0),COLORFFFFFF;STICKLINE(VOL>EMA(VOL,60) AND 起动线>主力线,限制起动线,限制主力线,1,0),COLORFF00FF;STICKLINE(VOL>EMA(VOL,30) AND 起动线>主力线AND 起动线>1.01 AND 起动线>REF(起动线,1),限制起动线,限制主力线,1,0),COLOR00FFFF;{乾坤眼划线}STICKLINE(CROSS(阻力,现价),C,中,2,0),COLORFFFF00;STICKLINE(MC=1,阻力,中,2,0),COLORFFFF00;DRAWICON(MC=1 OR CROSS(阻力,现价),中,35);STICKLINE(CROSS(现价,支撑),C,中,2,0),COLOR00F0F0;DRAWICON(MR=1 OR CROSS(现价,支撑),中,34);{---------分时均线-------------------}W:=BARSLAST(DAY-REF(DAY,1))+1;FSJX:=SUM(CLOSE*VOL,W)/SUM(VOL,W),LINETHICK2,COLORYELLOW;FSJX1:=IF(FSJX<REF(FSJX,1),FSJX,DRAWNULL),LINETHICK2,COLORGREEN;{-------鬼鬼分时-------};VARG1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;VARG2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;VARG3:=SMA(VARG2,2,1);天:=100+(-ABS(VARG1));下:=SMA(VARG3,2,1);无:=ABS(VARG1);买:=CROSS(下,无);卖:=CROSS(下,天);DRAWICON(买,C,25);DRAWICON(卖,C,26);{财神必买}VAR01:=EMA(EMA(CLOSE,13),13);控盘:=(VAR01-REF(VAR01,1))/REF(VAR01,1)*1000;JJ:=DYNAINFO(11);P:=55;S:=8;M1:=3;财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2; 神:=EMA(财,M1),COLORGREEN,LINETHICK1;BTJ11:=(C-JJ)/JJ<-0.03;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ3:=CROSS(财,神) AND 财<-0.3;BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);{必买}DRAWICON(BTJ811 AND TIME>10,C,24);{买底}BTJ1:=(C-JJ)/JJ<-0.005;BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);DRAWICON(BTJ81 AND TIME>10,L*0.999,1);{买底};{必卖}STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;STJ02:=控盘>0;STJ31:=CROSS(神,财);STJ32:=CROSS(神,财) AND 财>1.618;STJ1:=(C-JJ)/JJ>0.005;STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);STJ82:=FILTER(STJ02 AND STJ32 ,13);STJ83:=STJ81 AND STJ82;DRAWICON(STJ83 AND TIME>10,C*1.005,27);{可能顶}DRAWICON(STJ81,H*1.01,2);{分时心理}PSY:=COUNT(CLOSE>REF(CLOSE,1),13)/13*100,COLOR00FFFF; PA:=MA(PSY,3),COLOR0000FF;TJ1:=FILTER((C-JJ)/JJ<-0.04 AND PA<16,13);{红球---红买}DRAWICON(TJ1,C,13);TJ2:=FILTER((C-JJ)/JJ>0.05 AND PA>60,14);{蓝球---绿卖}DRAWICON(TJ2,C,14);{-------抓涨停-------}获利盘:=100*WINNER(CLOSE)<0.15;DRAWICON(获利盘,C,9);{钱袋};{波段}VAR7:=SMA(C,6.18,1);VAR8:=SMA(VAR7,3.14,1);DRAWBAND(VAR7,RGB(255,255,0),VAR8,RGB(0,255,255));{超级涨停1}CC:=C;TQT:=BARSCOUNT(CC);均价Q:=SUM(V*C,0)/SUM(V,0);均:=MA(CC,TQT);时长:=TIME>93000;涨幅:=CC/REF(C,1)>1.02;跌幅:=CC/REF(C,1)<0.98;横盘:=((HHV(CC,Q)-LLV(CC,TQT))/CC)<0.05;YY:=SMA(VOL,30,1);放量:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(LLV(YY,1),30))>0.95;涨跌幅:=涨幅OR 跌幅;横涨1:=涨跌幅=0 AND 横盘AND 放量AND CROSS(均价Q,均);{分时抓涨停2}KK1:=BARSLAST(CLOSE=HHV(CLOSE,2000));KK2:=BARSLAST(CLOSE=LLV(CLOSE,2000));{启动前期分时副}{可作预警3}VAR2:=LLV(LOW,21);VAR3:=HHV(HIGH,21);VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,20)*0.998;DXTD:=20;短线:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,1);{分时涨停4-猛虎狂猎涨停板}CQ:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05 ,0.95);Q2:=IF(CQ=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BA RSCOUNT(C))));{分时预警公式5}分时预警:=C/REF(C,1)>1.02 AND V*240/FROMOPEN/REF(MA(V,1),1)>=2 AND C=H AND REF(C,1)/L<1.015 AND C/REF(C,1)<1.07;{发家分时6}日1:=EMA(C,1),COLORFF00FF;日:=EMA((H+L+C)/3,1);日5:=MA(EMA((H+L+C)/3,1),5);日10:=MA(EMA((H+L+C)/3,1),10);对比日:=EMA(REF(日,240),1);对比日5:=MA(EMA(REF(日,240),1),5);对比日10:=MA(EMA(REF(日,240),1),10);强:=日5>对比日5 AND 日10>对比日10 AND 日5-对比日5>0 AND 日10-对比日10>0; 角:=(ATAN((日10/REF(日10,5)-1)*100)*180/3.14115926)>30;角2:=(ATAN((日10/REF(日10,5)-1)*100)*180/3.14115926)>20;弱:=日5<对比日5 AND 日10<对比日10 AND 日5-对比日5<0 AND 日10-对比日10<0 AND 对比日5>REF(对比日5,3);发家分时:=CROSS(日1,对比日) AND C>REF(C,240);{平安7}N:=7.5;MMA30:=EMA(CLOSE,30);强弱界定:=IF(PERIOD=0,EMA(CLOSE,900),DRAWNULL),COLORWHITE,LINETHICK2;分时价量线:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;实时涨幅限制:=(C/DYNAINFO(3)-1)*100;{买卖力度}YD:=DYNAINFO(3);MM:=IF(C=DYNAINFO(4)*1.1 AND L=DYNAINFO(4)*1.1,H-YD,H-REF(C,1));M:=IF(MM>0,MM,0.0);SS:=IF(C=DYNAINFO(4)*0.9 AND H=DYNAINFO(4)*0.9,YD-H,REF(C,1)-L);SXD:=IF(SS>0,SS,0.0);HJ:=M+SXD;买入力度:=M/HJ*AMOUNT/CAPITAL;卖出力度:=SXD/HJ*AMOUNT/CAPITAL;买卖力度:=SUM((买入力度-卖出力度),0);买卖力度比:=买卖力度/SUM((买入力度+卖出力度),0)*50;买卖力度比设置:=买卖力度比+50;买卖力度比限制:=IF(买卖力度比设置>80,80,IF(买卖力度比设置<20,20,买卖力度比设置));分时力度线:=SUM(C*买卖力度比限制,240)/SUM(买卖力度比限制,240);买卖力度参考线0:=MA(买卖力度比限制,8)*1.062;买卖力度参考线:=MA(买卖力度比限制,8)*1.091;买卖力度参考线2:=MA(买卖力度比限制,5)*1.191;平安分时关注:=买卖力度参考线<50 AND CROSS(买卖力度比限制,50);平安分时追涨:=(CROSS(买卖力度比限制,买卖力度参考线) OR (CROSS(买卖力度比限制,买卖力度参考线0) AND 买卖力度比限制>70))AND (买卖力度比限制>50) AND (MMA30>强弱界定OR 分时价量线>强弱界定ORC>MAX(MMA30,强弱界定)) AND C>分时价量线AND V>MA(V,20) AND DYNAINFO(17)>=1.2 AND 实时涨幅限制<N;平安追涨:=FILTER(平安分时追涨,20);平安:=平安追涨;{上涨区间}MRK:=C<支撑AND CROSS(C,REF(C,2));上涨1:=MRK=1 OR CROSS(现价,支撑);上涨:=COUNT(上涨1,FROMOPEN);买点限制:=IF(上涨,20,0);{下跌区间}MCK:=C>阻力AND CROSS(REF(C,2),C);下跌1:=MCK=1 OR CROSS(阻力,现价);下跌:=COUNT(下跌1,FROMOPEN);买点限制1:=IF(下跌=0,25,0);{强势涨停}地势:=DYNAINFO(11)+(DYNAINFO(11)*0.021);趋势涨停:=IF(DYNAINFO(7)>地势,1,0);势涨:=买点限制1 =25 AND 买点限制=20 AND 趋势涨停;涨停1:IF(横涨1 AND 势涨,(阻力-中)/3+中,中) ,COLORYELLOW,LINETHICK3;涨停2:IF(CROSS(KK1,KK2) AND 势涨,(阻力-中)/3+中,中),COLORLIMAGENTA,LINETHICK3;涨停3:IF(CROSS(短线,DXTD) AND 势涨,(阻力-中)/3+中,中),COLORGREEN,LINETHICK3; 涨停4:IF(CROSS((C/Q2),1.03) AND 势涨,(阻力-中)/3+中,中),COLORLIGRAY,LINETHICK3; 涨停5:IF(分时预警AND 势涨,(阻力-中)/3+中,中),COLORCYAN,LINETHICK3;涨停6:IF(发家分时AND 势涨,(阻力-中)/3+中,中),COLORLIRED,LINETHICK3;涨停7:IF(平安AND 势涨,(阻力-中)/3+中,中),COLORLIMAGENTA,LINETHICK3;{南川2代分时}AF1:=1;TT:=BARSLAST(HOUR=9 AND MINUTE=(30+AF1))+1;价位:C,COLORWHITE,LINETHICK4;盘整:IF(HOUR>9 ANDRANGE(HHV(C,60)/LLV(C,60),1,1.02),C,DRAWNULL),COLORRED,LINETHICK2;V1:=V;HH:=C>REF(C,1) AND C/均价>(1+0.03);LL:=C<REF(C,1) AND C/均价<(1-0.03);HH1:=CROSS(SUM(HH,0),0.5);LL1:=CROSS(SUM(LL,0),0.5);SS1:=SUM(HH1,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(HH1)),0.5);BB1:=SUM(LL1,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL1)),0.5);CS1:CONST(SUM(IF(SS1,REF(C,1),DRAWNULL),0)),COLORGREEN,LINETHICK2;CB1:CONST(SUM(IF(BB1,REF(C,1),DRAWNULL),0)),COLORRED,LINETHICK2;HH2:=CROSS(SUM(HH AND C>CS1*1.03,0),0.5);LL2:=CROSS(SUM(LL AND C<CB1*0.97,0),0.5);SS2:=SUM(HH2,0)*CROSS(COUNT(C<REF(C,1),BARSLAST(HH2)),0.5);BB2:=SUM(LL2,0)*CROSS(COUNT(C>REF(C,1),BARSLAST(LL2)),0.5);CS2:CONST(SUM(IF(SS2,REF(C,1),DRAWNULL),0)),COLORGREEN,LINETHICK1;CB2:CONST(SUM(IF(BB2,REF(C,1),DRAWNULL),0)),COLORRED,LINETHICK1; DRAWICON(HH1 OR HH2,C*1.01,39);DRAWICON(LL1 OR LL2,C*0.99,38);DRAWICON(BB1 OR BB2,REF(C,1)*0.99,7);DRAWICON(SS1 OR SS2,REF(C,1)*1.01,8);{无尽T+0}{VARY1:=LLV(LOW,100);VARY2:=HHV(HIGH,250);操盘线:=EMA((CLOSE-VARY1)/(VARY2-VARY1)*4,4);DRAWICON(CROSS(操盘线,0.3),L,1);DRAWICON(CROSS(操盘线,3.5),H,2);};{}GG:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(V*100,BARSCOUNT(C))),1.05,0.95);ZZ:=IF(GG=0,MA(C,BARSCOUNT(C)),SUM(AMOUNT,BARSCOUNT(C))/SUM(V*100,BARSC OUNT(C)));AAA:=IF(PERIOD<1,POW(C/ZZ,3)*100,0);BB8:=EXPMA(AAA,20),COLORFFFFFF;DRAWICON(AAA-BB8<-4 AND AAA<=92 AND C=LLV(C,30),C,1); DRAWICON(AAA-BB8>4 AND AAA>=108 AND C=HHV(C,30),C,2);。
通达信分时指标汇总(主图 源码 通达信
做短线看盘分时指标的参考很重要,而通达信分时指标只有一个MACD指标,如何盘中即时更换分时技术指标?方法如下:1.找到安装目录里面T0002文件夹下的user文件,2.用记事本方式打开找到Zstzb=MACD这一项改为=AAA,(由上往下点大约到98行位置,如图1),3.将你准备用作分时指标的公式改为AA开头的公式名。
4.进入K线分析图用键盘输入AA即可跳出AA开头的公式(如图2)。
5.选择你要用作分时指标的公式点击进入改名为AAA保存(如图3-4),6.回到分时分析图点技术指标即可(如图5)。
7如需更换其它指标时直接键入AAA进入该公式修改为另外的公式名,再重复4,5,6项即可通达信分时指标汇总通达信分时指标(虎主力散户)虎: (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK;主力:EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1) *100,120)-0.0004,LINETHICK5,COLORMAGENTA;散户:EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1) *100,200),LINETHICK5,COLORGREEN;DRAWICON(CROSS(EXPMA(虎,120)-0.0004,EXPMA(虎,200)),EXPMA(虎,200)*1,13); DRAWICON(CROSS(EXPMA(虎,200),EXPMA(虎,120)-0.0004),EXPMA(虎,200)*1,2);Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05, 0.95);Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BAR SCOUNT(C))));DRAWICON(CROSS((C/Q2),1.03),0.02,6);STICKLINE(CROSS((C/Q2),1.03),0.02,0,4,0), , COLORYELLOW;通达信分时指标分时专用指标,55上红柱谨慎看多, 50下绿柱保持警惕,结合多(黄)空(绿)线,选择正确操作时段,按照图中提示关注,严格遵守操作纪律, 心态平衡投资顺利.希望大家能得到好的收益!Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05, 0.95);天:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BAR SCOUNT(C))));DRAWICON(CROSS((C/天),1.01),25,3);STICKLINE(CROSS((C/天),1.01),25,0,2,0), ,COLORYELLOW;VAR1:=REF(CLOSE,3.5);VAR2:=REF(CLOSE,1);VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;Q2:=(CLOSE-LLV(LOW, 21))/(HHV(HIGH, 21)-LLV(LOW, 21))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);Q8:=HHVBARS(HIGH, 50);Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;快线: SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLORFFAA66; 慢线:EMA(Q3, 3),COLORRED;DRAWBAND(快线,RGB(115,95,120),慢线,RGB(95,120,115));A:=VOL*CLOSE;B:=SUM(A,3.52)/SUM(VOL,3.82);B1:=EMA(B,13);主力线:(B-B1)*191/B+50,COLORMAGENTA;多头:3*Q3-2*Q4,COLORRED;VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;空头: SMA(VAR12,3,1),COLORGREEN;DRAWTEXT(CROSS(慢线, 多头) AND REF(多头,1)>80, REF(多头,3), '*顶'),COLORRED,LINETHICK5;●关注: DRAWTEXT(REF(CROSS(空头,慢线),25) AND 空头>1.005*慢线,慢线,'●关注'),COLORBLUE,LINETHICK1;★关注: DRAWTEXT(REF(CROSS(慢线,多头),82) AND 慢线>1.3*多头,多头,'★关注'),LINETHICK1;★追涨: DRAWTEXT(REF(CROSS(多头,慢线),1) AND 多头>1.3*慢线,慢线,'★追涨'),COLORRED,LINETHICK1;★抄底:IF(CROSS(多头,慢线) AND 快线>=REF(快线,1) AND 多头>=REF(多头,1) AND 慢线<38.2 AND 慢线>=REF(慢线,1) AND COUNT(REF(快线,1)=2,30,0),COLORMAGENTA;DRAWTEXT(CROSS(多头, 8) AND Q10<-13,20,'*大底'),COLORYELLOW,LINETHICK5; ★逃亡:IF(快线< REF(快线,1) AND 快线>61.8,70,100),COLORBLUE;50,POINTDOT,COLORWHITE;AZ1:=AMOUNT/VOL/100;AZ2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;AZ3:=SUM(AMOUNT,40)/AZ1/100;AZ4:=SUM(AMOUNT,80)/AZ1/100;BZ1:=DMA(AZ2,VOL/AZ3);BZ2:=DMA(AZ2,VOL/AZ4);BZ3:=(CLOSE-BZ1)/BZ1*100;BZ4:=(CLOSE-BZ2)/BZ2*100;DRAWTEXT(ISLASTBAR AND C,93,' 冷眼分时专用指标'),COLOR00AAFF; DRAWTEXT(ISLASTBAR AND C,80,' 55上红柱谨慎看多'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,68,' 50下绿柱保持警惕'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,56,' 结合多(黄)空(绿)线'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,44,' 选择正确操作时段'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,32,' 按照图中提示关注'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,20,' 严格遵守操作纪律'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,8,' 心态平衡投资顺利'),COLOR00BBBB;STICKLINE(FILTER(C,60)>0,100,-0,0,0),COLORRED;STICKLINE(BZ4>0,50,50+13.82*BZ4,0,0),COLORYELLOW;STICKLINE(BZ3>0,50,50+13.82*BZ3,0,0),COLORRED;STICKLINE(BZ3<=0,50,50+13.82*BZ3,0,0),COLORGREEN;[通达信L-2] 动态买进通达信分时指标动态买进VAR0:=VOL/CLOSE/2;VAR1:=SUM(IF(VAR0 > 100 AND CLOSE > REF(CLOSE,1),VAR0,0),0);VAR2:=SUM(IF(VAR0 > 100 AND CLOSE < REF(CLOSE,1),VAR0,0),0);VAR3:=SUM(IF(VAR0 < 100 AND CLOSE > REF(CLOSE,1),VAR0,0),0);VAR4:=SUM(IF(VAR0 < 100 AND CLOSE < REF(CLOSE,1),VAR0,0),0);VAR5:=VAR1 + VAR2 + VAR3 + VAR4;VAR6:=IF(CURRBARSCOUNT,100 * VAR1/VAR5,0);VAR7:=IF(CURRBARSCOUNT,100 * VAR2/VAR5,0);VAR8:=IF(CURRBARSCOUNT,100 * VAR3/VAR5,0);VAR9:=IF(CURRBARSCOUNT,100 * VAR4/VAR5,0);机构买盘:VAR1,LINETHICK2,COLORFF55FF;机构卖盘:VAR2,LINETHICK2,COLORFFFF55;散户买盘:VAR3,COLOR5555FF;散户卖盘:VAR4,COLOR55FF55;自用分时(通达信分时指标副图、源码、贴图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),现价,'★卖'),COLORRED;{抛};日时转换:=IF(PERIOD=5,120,240);QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;VAR3:=(VAR1+VAR2)/2;VAR4:=EMA(VAR3,30);VAR5:=EMA(VAR3,60);VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5); DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));牵引线:VAR1,COLORYELLOW;强弱线:EMA(VAR1,日时转换),POINTDOT,COLORWHITE;趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;DRAWICON(趋势关注=1,EMA(VAR1,60),13);DRAWTEXT(量价关注=1,EMA(VAR1,60),'★'),COLORWHITE;通达信分时指标WW:3*SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,10,1),LINESTICK; 40;250;300;分时有庄(通达信分时指标源码VAR1:=EMA(EMA(CLOSE,13),13);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF;无庄控盘:=控盘<0;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLOR0000FF;有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(控盘0,控盘,0,1,1),COLORFFFF00;主力出货:=控盘0;STICKLINE(VAR2>50 AND COST(85)0,控盘,0,1,1),COLOR00FFFF;高度控盘: VAR2>50 AND COST(85)0,COLOR00FFFF,LINETHICK2;A10:=CROSS(控盘,0);控盘B:=FILTER(IF(A10,1,0),5);{分时价格原码}JJ:=DYNAINFO(11);{波段买卖原码}P:=55;S:=8;M1:=3;财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;神:=EMA(财,M1),COLORGREEN,LINETHICK1;DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50));{股价与均线偏离买卖条件}BTJ1:=(C-JJ)/JJ<-0.03;BTJ11:=(C-JJ)/JJ<-0.03;BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;STJ1:=(C-JJ)/JJ>0.005;{控盘买卖条件}STJ01:=控盘0.5;STJ02:=控盘>0;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;{波段买卖条件}BTJ3:=CROSS(财,神) AND 财<-0.3;BTJ32:=CROSS(财,神) AND 财<-0.1;STJ31:=CROSS(神,财);STJ32:=CROSS(神,财) AND 财>1.618;{以下为信号};BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);DRAWTEXT(BTJ81,神,'↑买底'),COLORRED;DRAWTEXT(BTJ811,神*1.2,'↑有庄'),COLORWHITE;STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);STJ82:=FILTER(STJ02 AND STJ32 ,13);STJ83:=STJ81 AND STJ82;DRAWTEXT(STJ83,神,'↓卖'),COLOR00FF00;DIFF: (EMA(CLOSE,8) - EMA(CLOSE,55))*10,COLORRED;DEA: EMA(DIFF,3),COLORGREEN;庄:= BTJ11 AND BTJ2 AND BTJ3;有庄:FILTER(庄,55),COLORWHITE;DRAWTEXT(BTJ811,有庄,'有庄'),COLORWHITE;分时买卖图(通达信分时指标源码图中分时买卖图,能看懂分时均价线的那就跳过,对分时走势均价图没有一定的功力,最好不要用,此指标有未来慎用!欣赏下还行。
分时看盘主图源码 通达信指标公式源码
DRAWGBK(C>0, RGB(50,60,250),RGB(17,21,89),0,'11',0);H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLORGREEN;支撑:L1+P1*0.5/8,COLORRED;中:(支撑+阻力)/2,COLORWHITE,POINTDOT;现价:CLOSE,COLORWHITE,LINETHICK2;顶卖:STICKLINE(C>阻力,阻力,C,5,0),COLORGREEN;底买:STICKLINE(C<支撑,支撑,C,5,0),COLORRED;MR:=C<支撑AND CROSS(C,REF(C,2));DRAWTEXT(CROSS(现价,支撑),中,'★买'),COLORRED;STICKLINE(CROSS(现价,支撑),C,中,2,0),COLORRED;STICKLINE(MR=1,支撑,中,2,0),COLORRED;DRAWICON(MR=1 OR CROSS(现价,支撑),中,1);STICKLINE(CROSS(支撑,现价),支撑,(支撑-中)/5+支撑,2,0),COLORYELLOW; DRAWTEXT(CROSS(支撑,现价),(支撑-中)/5+支撑,'★底'),COLORYELLOW; MC:=C>阻力AND CROSS(REF(C,2),C);DRAWTEXT(CROSS(阻力,现价),中,'★卖'),COLORGREEN;STICKLINE(CROSS(阻力,现价),C,中,2,0),COLORGREEN;STICKLINE(MC=1,阻力,中,2,0),COLORGREEN;DRAWICON(MC=1 OR CROSS(阻力,现价),中,2);STICKLINE(CROSS(现价,阻力),阻力,阻力-(支撑-中)/5,2,0),COLORMAGENTA;DRAWTEXT(CROSS(现价,阻力),阻力-(支撑-中)/5,'★顶'),COLORMAGENTA;冠军1号QQ:=474131998;DRAWTEXT(ISLASTBAR,阻力,'顶'),COLORGREEN;DRAWTEXT(ISLASTBAR,支撑,'底'),COLORRED;DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,'中'),COLORWHITE;每股净资产:=STRCAT(STRCAT('每股净资产:',CON2STR(FINANCE(34),2)),'元'); DRAWTEXT_FIX(1,0.22,0.92,0,每股净资产),COLORWHITE;主营同比增长:=STRCAT(STRCAT('主营同比增长:',CON2STR(FINANCE(44),2)),'%'); DRAWTEXT_FIX(1,0.33,0.99,0,主营同比增长),COLORCYAN;净利润同比增长:=STRCAT(STRCAT('净利润同比增长:',CON2STR(FINANCE(43),2)),'%'); DRAWTEXT_FIX(1,0.33,0.92,0,净利润同比增长),COLORYELLOW;{销售毛利率:=STRCAT(STRCAT('销售毛利率:',CON2STR(FINANCE(21)/FINANCE(20)*100,2)),'%');}销售毛利率:=STRCAT(STRCAT('销售毛利率:',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),'%');DRAWTEXT_FIX(1,0.22,0.99,0,销售毛利率),COLORCYAN;DRAWTEXT_FIX(1,0.11,0.99,0,'每股收益:')COLORYELLOW;DRAWTEXT_FIX(1,0.16,0.99,0,STRCAT(CON2STR(FINANCE(30)/FINANCE(1),2),'元'))COLORYELLOW;DRAWTEXT_FIX(1,0.11,0.92,0,'每股市盈率:')COLORYELLOW;DRAWTEXT_FIX(1,0.17,0.92,0,STRCAT(CON2STR(C/FINANCE(33),2),'倍'))COLORYELLOW;DRAWTEXT_FIX(1,0.01,0.99,0,'流通A股:')COLORCYAN;DRAWTEXT_FIX(1,0.06,0.99,0,STRCAT(CON2STR(CAPITAL/1000000,2),'亿股'))COLORCYAN;DRAWTEXT_FIX(1,0.11,0.87,0,'每股未分配:元')COLORYELLOW;DRAWTEXT_FIX(1,0.17,0.87,0,CON2STR(FINANCE(32),2))COLORYELLOW; DRAWTEXT_FIX(1,0.01,0.92,0,'经营现金流: 元')COLORYELLOW;DRAWTEXT_FIX(1,0.07,0.92,0,CON2STR(FINANCE(25)/FINANCE(1),2))COLORYELLOW; DRAWTEXT_FIX(1,0.50,0.99,0,'☆[热点概念]:')COLORYELLOW;DRAWTEXT_FIX(1,0.57,0.99,0,EXTERNSTR(0,1))COLORYELLOW;DRAWTEXT_FIX(1,0.50,0.92,0,'☆[主营行业]:')COLORCYAN;DRAWTEXT_FIX(1,0.57,0.92,0,EXTERNSTR(0,2))COLORCYAN;{DRAWTEXT_FIX(1,0.00,0.63,0,'[高送转信号]:')COLORCYAN;DRAWTEXT_FIX(1,0.05,0.63,0,EXTERNSTR(0,3))COLORCYAN;};所属板块:=STRCAT('☆【所属板块】',STRCAT(STRCAT(STRCAT('[行业]—',HYBLOCK),STRCAT('[地域]—',DYBLOCK)),STRCAT('[概念]—',GNBLOCK))); DRAWTEXT_FIX(ISLASTBAR,0.50,0.87,0,所属板块),COLORYELLOW;今日人气:=DYNAINFO(60)/DYNAINFO(61);DRAWTEXT_FIX(1,0,0.87,0,'◆大盘人气:'),COLORYELLOW,LINETHICK4; DRAWNUMBER_FIX(1,0.07,0.87,0,CONST(今日人气)),COLORYELLOW;TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD =5,240,1)))));MTIME:=MOD(FROMOPEN,TOTAL);CTIME:=IF(MTIME<0.5,TOTAL,MTIME);虚拟量:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL);虚拟量比:=虚拟量/REF(VOL,1),COLORWHITE,LINETHICK0;虚量值:=(虚拟量-VOL)/VOL,COLORWHITE,LINETHICK0;DRAWTEXT_FIX(1,0.33,0.87,0,'▲量比:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.37,0.87,0,CONST(虚拟量比)),COLORYELLOW;量价:=(VOL/CLOSE)/3;统计主动买量:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);统计主动卖量:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);涨停能量:=((统计主动买量)/统计主动卖量)*10,COLOR4080FF;DRAWTEXT_FIX(1,0.22,0.87,0,'★涨停能量:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.28,0.87,0,CONST(涨停能量)),COLORYELLOW;。
通达信-分时指标-主图源码
通达信-分时指标-主图源码通达信-分时指标-主图源码M5:=MA2.MA1#DAY;M10:=MA2.MA2#DAY;M20:=MA2.MA3#DAY;M60:=MA2.MA4#DAY;M120:=MA2.MA5#DAY;M250:=MA2.MA6#DAY;昨高:=YYSJ.昨高#DAY;昨低:=YYSJ.昨低#DAY;HH:=MAX(CONST(HHV(C,FROMOPEN)),DYNAINFO(3));LL:=MIN(CONST(LLV(C,FROMOPEN)),DYNAINFO(3));NOTEXTLLL:IF(DYNAINFO(13)>0.04,LL*0.99,LL-MINDIFF*2),COLORBLACK;MA5:IF(M5>=LL AND M5<=HH,M5,DRAWNULL),DOTLINE,COLORFFFFFF;MA10:IF(M10>=LL AND M10<=HH,M10,DRAWNULL),DOTLINE,COLOR00FFFF;MA20:IF(M20>=LL AND M20<=HH,M20,DRAWNULL),DOTLINE,COLORFF00FF;MA60:IF(M60>=LL AND M60<=HH,M60,DRAWNULL),DOTLINE,COLOR00FF00;MA120:IF(M120>=LL AND M120<=HH,M120,DRAWNULL),DOTLINE,COLORAAAAAA;MA250:IF(M250>=LL AND M250<=HH,M250,DRAWNULL),DOTLINE,COLORFF8800;昨H:IF(昨高>=LL AND 昨高<=HH,昨高,DRAWNULL),COLOR0000FF,CIRCLEDOT;昨L:IF(昨低>=LL AND 昨低<=HH,昨低,DRAWNULL),COLOR00FF00;BLXS:=-LOG(MINDIFF);T昨H:=VARCAT(' ◆昨高:',VAR2STR(昨高,BLXS));T昨L:=VARCAT(' ◆昨低:',VAR2STR(昨低,BLXS));TM5:=VARCAT(' ◆ M5:',VAR2STR(M5,BLXS));TM10:=VARCAT(' ◆ M10:',VAR2STR(M10,BLXS));TM20:=VARCAT(' ◆ M20:',VAR2STR(M20,BLXS));TM60:=VARCAT(' ◆ M60:',VAR2STR(M60,BLXS));TM120:=VARCAT(' ◆ M120:',VAR2STR(M120,BLXS));TM250:=VARCAT(' ◆ M250:',VAR2STR(M250,BLXS));TM:=VARCAT(VARCAT(VARCAT(VARCAT(VARCAT(VARCAT(V ARCAT(T昨H,T昨L),TM5),TM10),TM20),TM60),TM120),TM250);DRAWTEXT_FIX(ISLASTBAR AND FROMOPEN>5 AND DYNAINFO(14)<0,0,0,0,TM),COLOR00FFFF;DRAWTEXT_FIX(ISLASTBAR AND FROMOPEN>5 AND DYNAINFO(14)>=0,0,0.99,0,TM),COLOR00FFFF;DRAWTEXT(TIME=930,昨H,IF(CONST(TIME)>1000,T昨H,VAR2STR(昨H,BLXS))),COLOR0000FF;DRAWTEXT(TIME=930,昨L,IF(CONST(TIME)>1000,T昨L,VAR2STR(昨L,BLXS))),COLOR00FF00;DRAWTEXT(TIME=930,MA5,IF(CONST(TIME)>1000,TM5,VA R2STR(MA5,BLXS))),COLORFFFFFF;DRAWTEXT(TIME=930,MA10,IF(CONST(TIME)>1000,TM10,V AR2STR(MA10,BLXS))),COLOR00FFFF;DRAWTEXT(TIME=930,MA20,IF(CONST(TIME)>1000,TM20,V AR2STR(MA20,BLXS))),COLORFF00FF;DRAWTEXT(TIME=930,MA60,IF(CONST(TIME)>1000,TM60,V AR2STR(MA60,BLXS))),COLOR00FF00;DRAWTEXT(TIME=930,MA120,IF(CONST(TIME)>1000,TM12 0,VAR2STR(MA120,BLXS))),COLORAAAAAA;DRAWTEXT(TIME=930,MA250,IF(CONST(TIME)>1000,TM25 0,VAR2STR(MA250,BLXS))),COLORFF8800;TEXTC:=VARCAT(VARCAT(VAR2STR(100*C/DYNAINFO(3)-100,2),'% ◆ '),VAR2STR(C,BLXS));TEXTJ:=VARCAT(VARCAT(VAR2STR(100*ZSTJJ/DYNAINFO(3) -100,2),'% ◆ '),VAR2STR(ZSTJJ,BLXS));DRAWTEXT(TIME>925 AND ISLASTBAR,C,VARCAT(' ',TEXTC)),COLORWHITE;DRAWTEXT(TIME>925 AND ISLASTBAR,ZSTJJ,VARCAT(' ',TEXTJ)),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR AND DYNAINFO(14)<0,0.99,0.20,1,TEXTC),COLORWHITE;DRAWTEXT_FIX(ISLASTBAR AND DYNAINFO(14)<0,0.99,0.00,1,TEXTJ),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR AND DYNAINFO(14)>=0,0.99,0.80,1,TEXTC),COLORWHITE;DRAWTEXT_FIX(ISLASTBAR AND DYNAINFO(14)>=0,0.99,0.99,1,TEXTJ),COLORYELLOW;ZDXS:=IF((FINANCE(3)=4 OR (DATE>1200822&&FINANCE(3)=3)),0.2,0.1);ZT:=C>=ZTPRICE(DYNAINFO(3),ZDXS);DT:=C<=DTPRICE(DYNAINFO(3),ZDXS);WZC:=VAR2STR(C,BLXS);N:=10;DH1:=HHV(C,2*N+1)=REF(C,N);DH2:=FILTER(DH1,N);DH3:= BACKSET(DH2,N+1);DH:=FILTER(DH3,N);DRAWTEXT(FILTERX(C=HH,N),C,WZC),COLOR0000FF;DRAWTEXT(C<>HH AND NOT(DT) AND DH,C,WZC),COLORFF00FF,DRAWABOVE;TJH:=C=REFX(HHV(C,N),CURRBARSCOUNT-1) ANDRANGE(CURRBARSCOUNT,1,N);DRAWTEXT(C<>HH AND NOT(DT) AND FILTERX(TJH,N),C,WZC),COLORFF00FF,DRAWABOVE;DL1:=LLV(C,2*N+1)=REF(C,N);DL2:=FILTER(DL1,N);DL3:=BA CKSET(DL2,N+1);DL:=FILTER(DL3,N);DRAWTEXT(FILTERX(C=LL,N),C,WZC),COLOR00FF00,DRAWA BOVE;DRAWTEXT(C<>LL AND NOT(ZT) AND DL,C,WZC),COLORFFFF00,DRAWABOVE;TJL:=C=REFX(LLV(C,N),CURRBARSCOUNT-1) AND RANGE(CURRBARSCOUNT,1,N);DRAWTEXT(C<>LL AND NOT(ZT) AND FILTERX(TJL,N),IF(C<=LL*1.01,C,DRAWNULL),WZC),COLORFFFF0 0,DRAWABOVE;DRAWTEXT(C<>LL AND NOT(ZT) AND FILTERX(TJL,N),IF(C>LL*1.01,C,DRAWNULL),WZC),COLORFFFF00;{DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(DH,2)),C, CURRBARSCOUNT=CONST(SUMBARS(DH,1)),C,1),COLORFF00FF ,DOTLINE;DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(DL,2)),C, CURRBARSCOUNT=CONST(SUMBARS(DL,1)),C,1),COLORFFFF00, DOTLINE;};公:DRAWNULL,COLORCCCCCC;众:DRAWNULL,COLORCCCCCC;号:DRAWNULL,COLORCCCCCC;股市客栈:DRAWNULL, COLORFF00FF;N:=120;K:=BARSLAST(CURRBARSCOUNT=N);GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点}DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}KJ:=GD-DD;{高低点差值=分区高度}GD4:=IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL);高区:IF(CURRBARSCOUNT<=N,GD,DRAWNULL),COLORRED,LINET HICK2;低区:IF(CURRBARSCOUNT<=N,DD,DRAWNULL),COLOR00FF00,LIN ETHICK2;平衡:=IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLOR00F FFF,NODRAW;低:IF(CURRBARSCOUNT<=N/2,DD,DRAWNULL),COLORFFFF 00;高:IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL),COLOR00FF FF;支撑:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.191,DRAWNULL);强势: IF(CURRBARSCOUNT<=N/2,DD+KJ*0.382,DRAWNULL);突破:IF(CURRBARSCOUNT<=N/2,DD+KJ/2,DRAWNULL);警示:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.618,DRAWNULL);压力:IF(CURRBARSCOUNT<=N/2,DD+KJ*0.809,DRAWNULL);低涨:IF(CURRBARSCOUNT<=N/2,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;天数:BARSLAST(L=DD),COLORCYAN,NODRAW;顶点:IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,HHV(H,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED, CROSSDOT;低点:IF(CURRBARSCOUNT<=N/2, CONST(IF(ISLASTBAR=1,LLV(L,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAG ENTA,CROSSDOT;STICKLINE(CCI>=200 AND H>=顶点,O,C,2,0),COLORBLUE;STICKLINE(CCI<=100 AND L<=低点,O,C,2,0),COLORYELLOW;{更多指标关注公众号:股市客栈}STICKLINE(CURRBARSCOUNT=N,GD,DD,0,0),COLORGREEN;STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,0),COLOR40808 0;STICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN;STICKLINE(CURRBARSCOUNT<=N/2,支撑,支撑,2,0);STICKLINE(CURRBARSCOUNT<=N/2,强势,强势,2,0);STICKLINE(CURRBARSCOUNT<=N/2,突破,突破,2,0);STICKLINE(CURRBARSCOUNT<=N/2,警示,警示,2,0);STICKLINE(CURRBARSCOUNT<=N/2,压力,压力,2,0);DRAWTEXT(CURRBARSCOUNT=10,压力,'压力-0.809'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=10,警示,'警示-0.618'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=10,突破,'突破-0.500'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=10,强势,'强势-0.382'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=10,支撑,'支撑-0.191'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'高抛'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'减仓'),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'拉升'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'蓄势'),COLORFFFF80;DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'逢低买入'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/10,'大胆买入'),COLOR00FF00;DRAWTEXT(CURRBARSCOUNT=N/2+40,GD-KJ*0.25,'【拉升区】'),COLORRED;DRAWTEXT(CURRBARSCOUNT=N/2+40,DD+KJ*0.25,'【持股区】'),COLORYELLOW;第一防线:REFDATE(低,DATE),POINTDOT,COLORYELLOW,LINETHICK4;第二防线:REFDATE(支撑,DATE),POINTDOT,COLORWHITE,LINETHICK4;{今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299;}DRAWKLINE(H,O,L,C);AHC1:=CLOSE*VOL;AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA( AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108) +EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);上轨:=1.06*AHC22,COLOR40FF00,LINETHICK1;下轨:=AHC22*0.94;{STICKLINE(上轨>下轨,上轨,下轨,5,0),COLOR555555;}ZT:=REF(C,1)*1.1-C<0.01 AND H=C;启爆:=CROSS(C,上轨) OR CROSS(C,下轨) AND ZT;DRAWTEXT(启爆,L,'');STICKLINE(启爆,C,O,3,1);STICKLINE(启爆,C,O,1,0);公:DRAWNULL,COLORCCCCCC;众:DRAWNULL,COLORCCCCCC;号:DRAWNULL,COLORCCCCCC;股市客栈:DRAWNULL,COLORCCCCCC;。
乾坤决策眼+分时九转 分时主图通达信
{乾坤眼}H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00FFFF,DOTLINE;支撑:L1+P1*0.5/8,COLORRED,DOTLINE;中:(支撑+阻力)/2,COLORC0C0C0,DOTLINE;现价:CLOSE,COLORWHITE,LINETHICK1;MR:=C<支撑AND CROSS(C,REF(C,2));MC:=C>阻力AND CROSS(REF(C,2),C);均价:=SUM(V*C,0)/SUM(V,0),COLOR004080,DOTLINE;DRAWTEXT(CURRBARSCOUNT=1,阻力,'--------阻力'),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=1,支撑,'--------支撑'),COLORA2A2FF; DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,'--------中'),COLORWHITE; DRAWTEXT(CURRBARSCOUNT=4,均价,'--------均'),COLORFFFFFF,LINETHICK2; {---------------------------------}DRAWTEXT(CROSS(支撑,现价),(支撑-中)/5+支撑,'★底'),COLORYELLOW; DRAWTEXT(CROSS(现价,阻力),阻力-(支撑-中)/5,'★顶'),COLORMAGENTA; {---------------------------------}QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;VAR3:=(VAR1+VAR2)/2;VAR4:=EMA(VAR3,30);VAR5:=EMA(VAR3,60);VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5);DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));牵引线:=VAR1,COLORYELLOW;趋势关注:=IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED; 量价关注:=IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;冲击量:=IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW; STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;DRAWICON(趋势关注=1,EMA(VAR1,60),13);DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;{---------------------------------}最新:=C,LINETHICK9,COLORFFFF00;IF(C>=REF(C,1),C,DRAWNULL),LINETHICK9,COLORRED;AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));BB:=BETWEEN(C/AA,C+H,C-H);DRAWICON(ISLASTBAR AND C>REF(C,1),C,1);DRAWICON(ISLASTBAR AND C<REF(C,1),C,2);{乾坤眼划线}STICKLINE(CROSS(阻力,现价),C,中,2,0),COLORFFFF00;STICKLINE(MC=1,阻力,中,2,0),COLORFFFF00;DRAWICON(MC=1 OR CROSS(阻力,现价),中,35);STICKLINE(CROSS(现价,支撑),C,中,2,0),COLOR00F0F0;DRAWICON(MR=1 OR CROSS(现价,支撑),中,34);{---------分时均线-------------------}W:=BARSLAST(DAY-REF(DAY,1))+1;FSJX:=SUM(CLOSE*VOL,W)/SUM(VOL,W),LINETHICK2,COLORYELLOW;IF(FSJX<REF(FSJX,1),FSJX,DRAWNULL),LINETHICK2,COLORGREEN;{-----黄金线-------------}X:=FROMOPEN+1;HH:=HHV(H,X);LL:=LLV(L,X);HL:=HH-LL;A76:=0.764*HL+LL;A61:=0.618*HL+LL;A38:=0.382*HL+LL;A23:=0.236*HL+LL;A5:=0.5*HL+LL;DRAWTEXT_FIX(1,0,0 ,0,'最高 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄' ),COLOR00FF00,LINETHICK2; DRAWTEXT_FIX(1,0,1,0,'最低________________________________________________________________________ ________________________________________________________________________ ______________________'),COLOR00FF00,LINETHICK2;DRAWTEXT_FIX(1,0,0.5,0,'中轴------------------------------------------------------------------------------'),COLOR00FFFF,LINETHICK2;DRAWTEXT_FIX(1,0,0.616,0,'▼-------------------------------------------------------------------------------'),COLOR00FF00,LINETHICK2;DRAWTEXT_FIX(1,0,0.382,0,'▲-------------------------------------------------------------------------------'),COLOR00FF00,LINETHICK2;DRAWTEXT_FIX(1,0,0.128,0,'压力-------------------------------------------------------------------------------'),COLORFFFF00,LINETHICK2;DRAWTEXT_FIX(1,0,0.880,0,'支撑-------------------------------------------------------------------------------'),COLORFFFF00,LINETHICK2;{-------抓涨停-------}获利盘:=100*WINNER(CLOSE)<0.15;DRAWICON(获利盘,C,9);{钱袋}{-------鬼鬼分时-------};VARG1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;VARG2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;VARG3:=SMA(VARG2,2,1);天:=100+(-ABS(VARG1));下:=SMA(VARG3,2,1);无:=ABS(VARG1);买:=CROSS(下,无);卖:=CROSS(下,天);DRAWICON(买,C,25);DRAWICON(卖,C,26);{红球13}{蓝球14}{粉钻25}{黄钻26};{标注};DRAWTEXT_FIX(1,0.350,0.00,0,STRCAT('【阻力价格】',CON2STR(阻力,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.500,0.00,0,STRCAT('【支撑价格】',CON2STR(支撑,2))),COLORYELLOW;{九转分时}A:=DRAWTEXT(C>REF(L,4),LOW,'*');LS0:=BARSLAST(A);LS11:=IF(1,LS0=1,A);LS21:=IF(1,LLV(L,1)<REF(L,1),1);A1:=LS11 AND LS21;LS12:=IF(2,LS0=2,A);LS22:=IF(2,LLV(L,2)<REF(L,2),1);A2:=LS12 AND LS22;LS13:=IF(3,LS0=3,A);LS23:=IF(3,LLV(L,3)<REF(L,3),1);A3:=LS13 AND LS23;LS14:=IF(4,LS0=4,A);LS24:=IF(4,LLV(L,4)<REF(L,4),1);A4:=LS14 AND LS24;LS15:=IF(5,LS0=5,A);LS25:=IF(5,LLV(L,5)<REF(L,5),1);A005:=LS15 AND LS25;LS16:=IF(6,LS0=6,A);LS26:=IF(6,LLV(L,6)<REF(L,6),1);A6:=LS16 AND LS26;LS17:=IF(7,LS0=7,A);LS27:=IF(7,LLV(L,7)<REF(L,7),1);A7:=LS17 AND LS27;LS18:=IF(8,LS0=8,A);LS28:=IF(8,LLV(L,8)<REF(L,8),1);A8:=LS18 AND LS28;LS19:=IF(9,LS0=9,A);LS29:=IF(9,LLV(L,9)<REF(L,9),1);A9:=LS19 AND LS29;{DRAWTEXT(REFX(A7,6),L,'1'),COLORGREEN;DRAWTEXT(REFX(A7,5),L,'2'),COLORGREEN;DRAWTEXT(REFX(A7,4),L,'3'),COLORGREEN;DRAWTEXT(REFX(A7,2),L,'5'),COLORGREEN;} DRAWTEXT(REFX(A7,1),L,'6'),COLORGREEN; DRAWTEXT(A7,L,'7'),COLORGREEN; DRAWTEXT(A8,L,'8'),COLORGREEN; DRAWTEXT(A9,L,'9'),COLORYELLOW;B:=DRAWTEXT(C<REF(L,4),H,'*');LB0:=BARSLAST(B);LB11:=IF(1,LB0=1,B);LB21:=IF(1,LLV(H,1)>REF(H,1),1);B1:=LB11 AND LB21;LB12:=IF(2,LB0=2,B);LB22:=IF(2,LLV(H,2)>REF(H,2),1);B2:=LB12 AND LB22;LB13:=IF(3,LB0=3,B);LB23:=IF(3,LLV(H,3)>REF(H,3),1);B3:=LB13 AND LB23;LB14:=IF(4,LB0=4,B);LB24:=IF(4,LLV(H,4)>REF(H,4),1);B4:=LB14 AND LB24;LB15:=IF(5,LB0=5,A);LB25:=IF(5,LLV(H,5)>REF(H,5),1);B5:=LB15 AND LB25;LB16:=IF(6,LB0=6,A);LB26:=IF(6,LLV(H,6)>REF(H,6),1);B6:=LB16 AND LB26;LB17:=IF(7,LB0=7,A);LB27:=IF(7,LLV(H,7)>REF(H,7),1);B7:=LB17 AND LB27;LB18:=IF(8,LB0=8,A);LB28:=IF(8,LLV(H,8)>REF(H,8),1);B8:=LB18 AND LB28;LB19:=IF(9,LB0=9,A);LB29:=IF(9,LLV(H,9)>REF(H,9),1);B9:=LB19 AND LB29;{DRAWTEXT(REFX(B7,6),H,'1'),COLORGREEN; DRAWTEXT(REFX(B7,5),H,'2'),COLORGREEN; DRAWTEXT(REFX(B7,4),H,'3'),COLORGREEN;DRAWTEXT(REFX(B7,2),H,'5'),COLORGREEN;} DRAWTEXT(REFX(B7,1),H,'6'),COLORGREEN; DRAWTEXT(B7,H,'7'),COLORGREEN; DRAWTEXT(B8,H,'8'),COLORGREEN; DRAWTEXT(B9,H,'9'),COLORYELLOW;。
通达信指标公式源码 分时主图 打板 做t 追涨
使用说明:1,加入量比指标,粉色条:量比>5, 兰色条:量比>2.5,2,macd大家不用教,3,彩带是分时均线,做t.结合macd,粉进兰出。
4,分时线变桔黄色,涨停可能较大,如左上角三色带全紫,涨幅不大可追!(新手慎为)5,狮子,红球,金指,均为强势信号,如多指标共振,果断杀入!指标只做参考,同一只枪,高手弹无虚发,低手可能自伤,祝大家投顺利!无法导入的用这个去掉了左上角色条先建一引用公式否则左上角色条不显示引用公式源码如下{FSKY 分时K线引用}今量:VOL;昨量:REF(VOL,1);前量:REF(VOL,2);昨开:REF(O,1);昨收:REF(C,1);前开:REF(O,2);前收:REF(C,2);源码:{反转MACD 参数: p, 0, 20, 4;}{前量:="FSKY.前量#DAY";昨量:="FSKY.昨量#DAY";今量:="FSKY.今量#DAY";前总:=前量;昨总:=昨量;总:=今量,NODRAW;BMM:=MAX(前总,昨总);AMM:=IF(总/BMM>2,BMM*3,BMM);MM:=200/AMM;KP:=DYNAINFO(4);ZX:=DYNAINFO(7);A1:=IF(ZX>=KP,355,0);A2:=IF(ZX>=KP,0,355);A3:=IF(ZX>=KP,0,0);DRAWRECTREL(0,80,MM*今量,110,RGB(A1,A2,A3));昨开:="FSKY.昨开#DAY";昨收:="FSKY.昨收#DAY";A4:=IF(昨收>=昨开,355,0);A5:=IF(昨收>=昨开,0,355);A6:=IF(昨收>=昨开,0,0);DRAWRECTREL(0,40,MM*昨量,70,RGB(A4,A5,A6));前开:="FSKY.前开#DAY";前收:="FSKY.前收#DAY";A7:=IF(前收>=前开,355,0);A8:=IF(前收>=前开,0,355);A9:=IF(前收>=前开,0,0);DRAWRECTREL(0,0,MM*前量,30,RGB(A7,A8,A9));}RC:=DYNAINFO( 3);量比超2.5:=IF(DYNAINFO(17)>2.5,RC-0.15,DRAWNULL),COLORFF9933;量比超5:=IF(DYNAINFO(17)>5,RC-0.15,DRAWNULL),COLORBA75FF; DRAWBAND(量比超2.5,RGB(51,153,255),量比超2.5+0.015,RGB(51,153,255)); DRAWBAND(量比超5,RGB(255,118,188),量比超5+0.015,RGB(255,118,188));{首次起爆}TT:=BARSCOUNT(C);{取得有效收盘价}均价黄:SUM(C*V,TT)/SUM(V,TT),LINETHICK1,COLOR00FFE1;{分时均线的取值}量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2);价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2);价上岗量破5:=C>均价黄AND V>MA(V,5);量起爆:=V>=REF(V,1)*2 ;价创新高:=C>=HHV(C,0);量创新高:=V>=HHV(V,0);对昨日涨幅:=C/DYNAINFO(3)<=1.02;{涨幅控制2个点以内}每日一点:=量两步AND 价两步AND 价上岗量破5 AND 量起爆AND 价创新高AND 量创新高AND 对昨日涨幅;{计算收益、已爆分钟}VC:=BARSSINCE(每日一点)+1;首次起爆价:REF(C,VC-1),NODRAW;今天收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;起爆时间:REF(TIME/10000,VC),NODRAW;已爆分钟:VC-1,NODRAW;首次起爆量:=REF(VOL,VC-1);DRAWICON(已爆分钟>=2,RC-0.1,11);{出现金手指,至少已经确认2分钟了}; {MACD P:1,20,4;}{RC:=DYNAINFO( 3);}S2:=SMA(C,2,1);S6:=SMA(C,6,1);DK:=2*(S2-S6);STICKLINE(DK>0,RC,RC+DK,0,1),COLOR0000AA;STICKLINE(DK<0,RC,RC+DK,0,1),COLOR00AA00;AP1:=REF(C,P)=HHV(C,2*P+1);BB1:=FILTER(AP1,P);CC1:=BACKSET(BB1,P+1);DD1:=FILTER(CC1,P);{高点}AP2:=REF(C,P)=LLV(C,2*P+1);BB2:=FILTER(AP2,P);CC2:=BACKSET(BB2,P+1);DD2:=FILTER(CC2,P);{低点}上:=REF(C,BARSLAST(DD1)),COLORFF00FF,NODRAW;下:=REF(C,BARSLAST(DD2)),COLOR00FF00,NODRAW;相对能量:(C-下)/(上-下)*100,COLORYELLOW,NODRAW;R11:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);S11:=R11>REF(R11,1);压力线:DRAWLINE(DD1,C,S11,C,1),COLOR00FF00;T11:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);U11:=T11>REF(T11,1);支撑线:DRAWLINE(DD2,C,U11,C,1),COLOR00FFFF;STICKLINE(C>0,下,下,1,0),COLOR00FF00;STICKLINE(C>0,上,上,1,0),COLORFF00FF;DRAWNUMBER(ISLASTBAR,压力线,压力线),COLOR00FF00; DRAWNUMBER(ISLASTBAR,支撑线,支撑线),COLOR00FFFF;R1:=MA(C,13);R2:=SMA(R1,5,2);DRAWBAND(R1,RGB(255,0,125),R2,RGB(0,111,255));C,LINETHICK2,COLORDDDDDD;{涨停}地:=DYNAINFO(11)+(DYNAINFO(11)*0.021);涨停:IF(DYNAINFO(7)>地,1,0),NODRAW,COLOR0088FF;涨:=IF(涨停=1,C+0.0075,DRAWNULL),COLOR8000FF,LINETHICK2; DRAWBAND(涨,RGB(255,211,0),C-0.0075,RGB(255,125,0));时间:=TIME=100000;N:=BARSLAST(时间);常数:=CONST(IF(N=0,C,REF(C,N))),COLORGREEN,DOTLINE;CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N)));STICKLINE(时间=1,CS1,CS2,1.2,0),COLOR008888;均价A:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;{CONST(IF(时间,HHV(H,0),REF(HHV(H,0),N))),COLOR000066,DOTLINE; CONST(IF(时间,LLV(L,0),REF(LLV(L,0),N))),COLOR006600,DOTLINE; CONST(IF(N,LLV(L,1),REF(LLV(L,0),N))),COLOR888888;CONST(IF(N,HHV(L,1),REF(HHV(L,0),N))),COLOR888888;}{涨停2}AA:=BARSLAST(TIME=103000);CC:=REF(HHV(C,0),AA+1);VV:=REF(HHV(V,0),AA+1);ZF:=CC/DYNAINFO(3)<1.05;涨停2:=CROSS(C,CC) AND V>VV AND ZF,COLOR0000FF;DRAWICON(涨停2,RC-0.06,13);{开量冲板}资金:=C*IF(PERIOD=0 AND MINUTE=31,VOL,0),COLORSTICK,NODRAW;{√}冲板线:=(CAPITAL/100)*1/20,COLORCYAN,LINETHICK1,NODRAW;单量必板线:=资金>1000;{分时图单量超1000万资金};单量冲板线:=资金>冲板线AND 资金<1000;{分时图单量超500万资金}; DRAWICON(单量必板线ANDDYNAINFO(4)/DYNAINFO(3)>1.01,RC+0.03,31);{1000万处画仙人指} DRAWICON(单量冲板线ANDDYNAINFO(4)/DYNAINFO(3)>1.01,RC-0.03,23);{500万处画十字星,以示警戒};。
通达信决战分时指标源码(见下面效果图)
通达信决战分时指标源码(见下面效果图)决战分时指标副图是盘中及时发现异动个股,及时买进并实现利益最大化的最佳指标.指标性能优于DDX,DDY和其他一切副图指标,是主力的克星,散户的宝典.有了这个指标,买卖情况一目了然.指标用法注意事项:该指标时间一般在开盘一小时后效果最佳,对于盘中异动的个股发现及时,能够捕捉起涨个股,实战成功率在90%以上.由于通达信无法在分时上实现预警功能,因此该指标仅能用于观察,这是唯一美中不足的地方.下面以图例形式介绍该指标的优越性能和实战功效:决战分时指标源码ZX:=DYNAINFO(3);价位轴:=ZX{,COLORLICYAN};DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);DEA:= EMA(DIFF,9);攻击:=2*(DIFF-DEA)*2, COLORSTICK;分时顶:=HHV(H,480),COLORRED,LINETHICK2;现价:C,COLORWHITE,LINETHICK1;W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));均价线:SUM(现价*V,240)/SUM(V,240),COLORYELLOW;分时压力:MA(REF(HHV(C,30),1),2),COLORMAGENTA;分时支撑:MA(REF(LLV(C,30),1),2),COLORBLUE;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:=L1 P1*7/8;支撑:=L1 P1*0.5/8;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★进'),COLORYELLOW;{吸}DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★出'),COLORRED;{抛};。
通达信指标公式源码 分时主图十点画大十字+三日K线
源码:O1:REF(O,1);C1:REF(C,1);H1:REF(H,1);L1:REF(L,1);O2:REF(O,2);C2:REF(C,2);H2:REF(H,2);L2:REF(L,2);O3:REF(O,3);C3:REF(C,3);H3:REF(H,3);L3:REF(L,3);二、分时主图10点画大十字+三日K线,名称随意起。
源码:O1:="SS.O1#DAY";C1:="SS.C1#DAY";H1:="SS.H1#DAY";L1:="SS.L1#DAY";O2:="SS.O2#DAY";C2:="SS.C2#DAY";H2:="SS.H2#DAY";L2:="SS.L2#DAY";O3:="SS.O3#DAY";C3:="SS.C3#DAY";H3:="SS.H3#DAY";L3:="SS.L3#DAY";GGJ:=CONST(IF(BARSLAST(TIME=93100),HHV(H,0),REF(HHV(H,0),BARSLAS T(TIME=93100))));DDJ:=CONST(IF(BARSLAST(TIME=93100),LLV(H,0),REF(LLV(H,0),BARSLAST( TIME=93100))));E1:=IF(BETWEEN(TIME,94900,95700),O1,DRAWNULL);E2:=IF(BETWEEN(TIME,94900,95700),C1,DRAWNULL);E12:=IF(BETWEEN(TIME,94000,94800),O2,DRAWNULL);E22:=IF(BETWEEN(TIME,94000,94800),C2,DRAWNULL);E13:=IF(BETWEEN(TIME,93100,93900),O3,DRAWNULL);E23:=IF(BETWEEN(TIME,93100,93900),C3,DRAWNULL);时间:=TIME=100000;N:=BARSLAST(时间);CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N)));三高:=IF(BETWEEN(TIME,93100,100000),MAX(H1,MAX(H2,H3)),DRAWNULL); 三低:=IF(BETWEEN(TIME,93100,100000),MIN(L1,MIN(L2,L3)),DRAWNULL);三日高:=IF(BETWEEN(TIME,95700,100000),MAX(H1,MAX(H2,H3)),DRAWNULL);三日低:=IF(BETWEEN(TIME,95700,100000),MIN(L1,MIN(L2,L3)),DRAWNULL); 三日高1:=IF(BETWEEN(TIME,94900,93100),MAX(H1,MAX(H2,H3)),DRAWNULL);三日低1:=IF(BETWEEN(TIME,954900,93100),MIN(L1,MIN(L2,L3)),DRAWNULL);三日高2:=IF(BETWEEN(TIME,94000,93100),MAX(H1,MAX(H2,H3)),DRAWNULL);三日低2:=IF(BETWEEN(TIME,94000,93100),MIN(L1,MIN(L2,L3)),DRAWNULL); DRAWBAND(三日高,RGB(0,0,0),三日低,RGB(0,0,0));STICKLINE(TIME=95300 AND C1>O1,H1,L1,1,0),COLOR0000CC; STICKLINE(TIME=95300 AND C1<O1,H1,L1,1,0),COLORFFFF54; STICKLINE(TIME=95300 AND C1=O1,H1,L1,1,0),COLORWHITE; DRAWBAND(IF(C1>O1,E2,DRAWNULL),RGB(204,0,0),E1,RGB(204,0,0)); DRAWBAND(IF(C1<O1,E2,DRAWNULL),RGB(84,255,255),E1,RGB(84,255,255) );DRAWBAND(IF(C1=O1,E2,DRAWNULL),RGB(255,255,255),E1,RGB(255,255,2 55));DRAWBAND(三日高1,RGB(0,0,0),三日低1,RGB(0,0,0));STICKLINE(TIME=94400 AND C2>O2,H2,L2,1,0),COLOR0000CC; STICKLINE(TIME=94400 AND C2<O2,H2,L2,1,0),COLORFFFF54; STICKLINE(TIME=94400 AND C2=O2,H2,L2,1,0),COLORWHITE;DRAWBAND(IF(C2>O2,E22,DRAWNULL),RGB(204,0,0),E12,RGB(204,0,0)); DRAWBAND(IF(C2<O2,E22,DRAWNULL),RGB(84,255,255),E12,RGB(84,255,2 55));DRAWBAND(IF(C2=O2,E22,DRAWNULL),RGB(255,255,255),E12,RGB(255,255 ,255));DRAWBAND(三日高2,RGB(0,0,0),三日低2,RGB(0,0,0));STICKLINE(TIME=93500 AND C3>O3,H3,L3,1,0),COLOR0000CC; STICKLINE(TIME=93500 AND C3<O3,H3,L3,1,0),COLORFFFF54; STICKLINE(TIME=93500 AND C3=O3,H3,L3,1,0),COLORWHITE; DRAWBAND(IF(C3>O3,E23,DRAWNULL),RGB(204,0,0),E13,RGB(204,0,0)); DRAWBAND(IF(C3<O3,E23,DRAWNULL),RGB(84,255,255),E13,RGB(84,255,2 55));DRAWBAND(IF(C3=O3,E23,DRAWNULL),RGB(255,255,255),E13,RGB(255,255 ,255));{ m}STICKLINE(时间=1,三日高,三日低,-1,-1),COLOR0000CC;IF(BETWEEN(TIME,93100,94000) ANDBETWEEN(C,C1,O1),C,DRAWNULL),COLORWHITE;STICKLINE(时间=1,CS1,CS2,-1,-1),COLORGREEN;均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))),COLOR888888;CONST(IF(N,HHV(H,0),REF(HHV(H,0),N))),COLOR888888;CONST(IF(时间,HHV(H,0),REF(HHV(H,0),N))),COLORRED,DOTLINE; CONST(IF(时间,LLV(L,0),REF(LLV(L,0),N))),COLORLIBLUE,DOTLINE;常数:CONST(IF(N=0,C,REF(C,N))),COLORGREEN,DOTLINE; DRAWNUMBER(TIME=93500,常数,常数),COLORMAGENTA; DRAWNUMBER(时间,GGJ*0.999,GGJ),COLORMAGENTA; DRAWNUMBER(时间,DDJ*1.001,DDJ),COLORMAGENTA;IF(BETWEEN(C,三高,三低),C,DRAWNULL),COLORWHITE;IF(C=GGJ,C,DRAWNULL),COLORWHITE;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
分时乾坤决策眼
使用说明:
1.乾坤线,定乾坤,线上买涨,线下买跌;
2.出现红色“多线”,买涨做多;
3.出现蓝色“空线”,买跌做空;
{乾坤决策眼}
FSHORT:=30;
FLONG:=60;
乾坤线:EMA(CLOSE,FLONG),COLORYELLOW,LINETHICK2;
操盘线:=EMA(CLOSE,FSHORT),COLORWHITE,LINETHICK2;
多线:IFF(操盘线>乾坤线,操盘线,DRAWNULL),COLORRED,LINETHICK2;
空线:IFF(操盘线<=乾坤线,操盘线,DRAWNULL),COLORBLUE,LINETHICK2;
买信号:=REF(操盘线,1)<=REF(乾坤线,1) AND 操盘线>乾坤线;
卖信号:=REF(操盘线,1)>=REF(乾坤线,1) AND 操盘线<乾坤线;
分时震荡
线:=100*(C-LLV(CLOSE,300))/(HHV(CLOSE,300)-LLV(CLOSE,300)),COLORWHITE; {DRAWICON(买信号,乾坤线,90),ALIGN1;}
{DRAWICON(卖信号,操盘线,91),ALIGN2;}
信号长度:=BARSLAST(买信号OR 卖信号)+1;
前期下跌长度:=BARSLAST(卖信号)+1;
前期上涨长度:=BARSLAST(买信号)+1;
价格超买:=EXIST(分时震荡线==100,前期上涨长度);
价格超卖:=EXIST(分时震荡线==0,前期下跌长度);
回涨初期:=COUNT(分时震荡线==100,前期下跌长度)<=2;
回跌初期:=COUNT(分时震荡线==0,前期上涨长度)<=2;
星级买点:=买信号AND 价格超卖AND 回涨初期;
星级卖点:=卖信号AND 价格超买AND 回跌初期;
五星B:=星级买点AND 分时震荡线==100;
五星S:=星级卖点AND 分时震荡线==0,NODRAW;
四星B:=星级买点AND 分时震荡线>=90 AND 分时震荡线<100; 四星S:=星级卖点AND 分时震荡线<=10 AND 分时震荡线>0;
三星B:=星级买点AND 分时震荡线>=80 AND 分时震荡线<90; 三星S:=星级卖点AND 分时震荡线<=20 AND 分时震荡线>10; B5:=买信号AND COUNT(五星B,10);
S5:=卖信号AND COUNT(五星S,10);
B4:=买信号AND COUNT(四星B,10);
S4:=卖信号AND COUNT(四星S,10);
B3:=买信号AND COUNT(三星B,10);
S3:=卖信号AND COUNT(三星S,10);
DRAWTEXT(B5,乾坤线,'★'),COLOR0000FF;
DRAWTEXT(B4,乾坤线,'★'),COLOR8000FF;
DRAWTEXT(B3,乾坤线,'★'),COLORC080FF;
DRAWTEXT(S5,操盘线,'☆'), COLOR00FF00;
DRAWTEXT(S5,操盘线,'☆'), COLOR80FF80;
DRAWTEXT(S5,操盘线,'☆'), COLOR40FF00;。