(2)史上最强的分时图指标-(源码)

合集下载

分时主力意愿指标公式源码

分时主力意愿指标公式源码

分时主力意愿指标公式源码一、指标公式源码。

{分时主力意愿指标}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),((100 * A2)/A6),0);A8:=IF((ISLASTBAR),((100 * A3)/A6),0);A9:=IF((ISLASTBAR),((100 * A4)/A6),0);A10:=IF((ISLASTBAR),((100 * A5)/A6),0);主力买入:A7;主力卖出:A8;小单买入:A9;小单卖出:A10;二、指标解释。

1. A1计算。

- 首先计算`A1`,公式为`(VOL/CLOSE)/3`。

这里`VOL`表示成交量,`CLOSE`表示收盘价。

这个计算是为后续对不同成交量情况的分类统计做准备。

2. 分类成交量统计(A2 - A5)- `A2`:计算当成交量满足`A1 > 0.29`且收盘价大于前一收盘价时的成交量之和。

这部分成交量可以看作是主力在相对较大成交量下主动买入推动股价上涨的部分。

- `A3`:计算当成交量满足`A1 > 0.29`且收盘价小于前一收盘价时的成交量之和。

这可能代表主力在较大成交量下主动卖出导致股价下跌的部分。

综合分时主图源码 做T+0必备通达信指标公式源码

综合分时主图源码 做T+0必备通达信指标公式源码

通达信综合分时主图源码做T+0必备这个公式指标是我综合了几个分时指标。

经修改加工而成,经试有一段时间,效果非常不错!现发出来与大家共同研究学习,共同担高。

指标标注非常清楚,除了极弊端行情,大部份时间是很有用的!现价:CLOSE,COLORFFFFFF,LINETHICK2;均价:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L11:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L11;阻力:L11+P1*7/8,COLOR00DD00;支撑:L11+P1*0.5/8,COLORMAGENTA;中:阻力*0.5+支撑*0.5,DOTLINE;STICKLINE(CROSS(支撑,现价),中,现价,2,0),COLORYELLOW,LINETHICK5;STICKLINE(CROSS(现价,阻力),现价,中,2,0),COLORFFCC66,LINETHICK5;DRAWTEXT(LONGCROSS(支撑,C,2),C,'--反弹'),COLORYELLOW;DRAWTEXT(LONGCROSS(C,阻力,2),C,'--出货'),COLORYELLOW;A1:=(DVOL/C)/2,NODRAW;A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);A6:=A2+A3+A4+A5;A7:=IF((BARSTATUS=2),((100*A2)/A6),0);A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));机构买盘:=(A2),LINETHICK2;机构卖盘:=(A3),LINETHICK2;散户买盘:=(A4);散户卖盘:=(A5);机构买:=(A2),LINETHICK6,COLORRED;机构卖:=(A3),LINETHICK6,COLORGREEN;DD1:=1;AAA1:=STRCAT(STRCAT('机构买',CON2STR((100*A2)/A6,0)),'%'); AAA2:=STRCAT(STRCAT('机构卖',CON2STR((100*A3)/A6,0)),'%'); AAA3:=STRCAT(STRCAT('净买入',CON2STR((100*(A2-A3))/A6,0)),'%'); DRAWTEXT_FIX(DD1=1,0,0.04,0,AAA1),COLORRED;DRAWTEXT_FIX(DD1=1,0,0.12,0,AAA2),COLORGREEN; DRAWTEXT_FIX(DD1=1,0,0.20,0,AAA3),COLOR00FFFF;A11:=C>REF(C,4);NT:=BARSLASTCOUNT(A11);TJ11:=NT=9;TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT; DRAWTEXT(AY>0,H*1.001,VAR2STR(AY,0)),COLORFF00FF; DRAWTEXT(NT=9,H*1.001,'9'),COLORGREEN;B1:=C<REF(C,4);NT0:=BARSLASTCOUNT(B1);TJ21:=NT0=9 ;TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0;DRAWTEXT(AY1>0,L*0.999,VAR2STR(AY1,0)),COLORFF00FF;DRAWTEXT(NT0=9,L*0.999,'9'),COLORGREEN;ZRS:=CONST(DYNAINFO(3)),NODRAW;A12:=3.5*(EMA(CLOSE,48)-EMA(CLOSE,104))+ZRS,COLORLIMAGENTA;A22:=EMA(A12,36),COLORLIBLUE;MACD:=(A12-A22)*2+ZRS;DRAWKLINE(H,O,L,C);STICKLINE(A12>=A22,ZRS,MACD ,0,0),COLORRED;STICKLINE(A12>=A22 AND MACD<REF(MACD,1),ZRS,MACD ,0,0),COLORYELLOW; STICKLINE(A12<A22,ZRS,MACD ,0,0),COLORCYAN;STICKLINE(A12<A22 AND MACD>REF(MACD,1),ZRS,MACD ,0,0),COLORFFFFFF;。

通达信经典分时主图 源码指标公式

通达信经典分时主图 源码指标公式

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;。

天下无敌分时指标绝无未来函数做T的好帮手通达信指标公式源码

天下无敌分时指标绝无未来函数做T的好帮手通达信指标公式源码

天下无敌分时指标绝无未来函数做T的好帮手通达信指标公式源码天下无敌分时指标(Ultimate Oscillator)是一种常用于市场交易的技术指标,它通过计算市场买卖压力的变化来帮助交易者判断股票或其他资产的趋势和超买超卖情况。

通达信是一个常用的股票分析软件,下面是天下无敌分时指标的通达信指标公式源码:```c/*公式参数*/n:=INPUT(14,"几日买卖压力",1,100,14);//计算周期,默认为14日/*计算公式*/c:=CLOSE;//当日收盘价h:=HHV(HIGH,n);//最近n日的最高价l:=LLV(LOW,n);//最近n日的最低价bp:=SUM(IF(c>REF(c,1),c-l,0),n); // 计算买压sp:=SUM(IF(c<REF(c,1),h-c,0),n); // 计算卖压tr:=SUM(MAX(h-REF(c,1),REF(c,1)-l),n); // 计算真实幅度uo:=100*(bp/tr+2*sp/tr*sp/tr*sp/tr); // 计算天下无敌分时指标/*绘制天下无敌分时指标曲线*/UO:MA(uo,6); // 天下无敌分时指标的6日移动平均线UO1:REFERENCE(UO,1);//上一个天下无敌分时指标的值UO2:REFERENCE(UO,2);//上上一个天下无敌分时指标的值UO3:REFERENCE(UO,3);//上上上一个天下无敌分时指标的值COLOR1:IF(UO>=UO1ANDUO1>=UO2ANDUO2>=UO3,RED,IF(UO<=UO1ANDUO1 <=UO2ANDUO2<=UO3,GREEN,BLUE));//根据天下无敌分时指标的走势给出颜色PLOT(UO,"UO",COLOR1,WIDTHLINE);//绘制天下无敌分时指标曲线图```以上代码中涉及的函数解释如下:-`INPUT`:用于输入需要的参数,这里是计算周期n。

精品分时通达信指标公式源码

精品分时通达信指标公式源码

A1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/CAPITAL*100,IF(CLOSE<REF(CLOSE,1),-VOL/C APITAL*100,0)),0);成交额:=V*C/100,NODRAW;A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);A4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);A5:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((ISLASTBAR),((100*A2)/A6),0);A8:=IF((ISLASTBAR),((100*A3)/A6),0);A9:=IF((ISLASTBAR),((100*A4)/A6),0);A10:=IF((ISLASTBAR),((100*A5)/A6),0);机构买:(A2),LINETHICK6,COLORRED;机构卖:(A3),LINETHICK6,COLORGREEN;机构进出:机构买-机构卖,NODRAW;散户买:(A4),COLOR5555FF;散户卖:(A5),COLOR55FF55;散户进出:散户买-散户卖,NODRAW;强势:((100*A2)/A6>50);STICKLINE(强势,机构买*1.02,机构买*1.1,1,0),COLORYELLOW;拉升:((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18; STICKLINE(拉升,机构买*1.1,机构买*1.2,1,0),COLORRED;DRAWTEXT(ISLASTBAR=1,机构买*0.95,''),LINETHICK2,COLORRED;DRAWTEXT(ISLASTBAR=1,机构卖*0.95,''),LINETHICK2,COLORFFFF55;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),机构买,5);XG:C/Q2;DD1:=1;AAA1:=STRCAT(STRCAT('机构买入',CON2STR((100*A2)/A6,0)),'%');AAA2:=STRCAT(STRCAT('机构卖出',CON2STR((100*A3)/A6,0)),'%');AAA0:=STRCAT(STRCAT('机构总买入',CON2STR((100*(A2-A3))/A6,0)),'%');AAA3:=STRCAT(STRCAT('散户买入',CON2STR((100*A4)/A6,0)),'%');AAA4:=STRCAT(STRCAT('散户卖出',CON2STR((100*A5)/A6,0)),'%');AAA5:=STRCAT(STRCAT('散户总买入',CON2STR((100*(A4-A5))/A6,0)),'%'); DRAWTEXT_FIX(DD1=1,0.001,0.05,0,AAA1),COLORRED;DRAWTEXT_FIX(DD1=1,0.001,0.15,0,AAA2),COLORGREEN;DRAWTEXT_FIX(DD1=1,0.001,0.25,0,AAA3),COLORRED;DRAWTEXT_FIX(DD1=1,0.001,0.35,0,AAA4),COLORGREEN;DRAWTEXT_FIX(DD1=1,0.001,0.45,0,AAA0),LINETHICK5,COLORCYAN; DRAWTEXT_FIX(DD1=1,0.001,0.55,0,AAA5),LINETHICK5,COLORCYAN;主力净买额:=(机构进出+散户进出)/成交额,NODRAW;AAA6:=STRCAT(STRCAT('主力净买额',CON2STR(主力净买额,0)),'%');DRAWTEXT_FIX(DD1=1,0.001,0.65,0,AAA6),COLORMAGENTA;。

通达信指标公式源码 分时主图指标

通达信指标公式源码 分时主图指标

D1:=HOUR=9 AND MINUTE=40;D2:=HOUR=9 AND MINUTE=50;D3:=HOUR=10 AND MINUTE=0;D1D:=IF(D1=1,C,DRAWNULL);D2D:=IF(D2=1,C,DRAWNULL);D3D:=IF(D3=1,C,DRAWNULL);DRAWLINE(D1=1,D1D,D2=1,D2D,0),COLORRED,LINETHICK2; DRAWLINE(D2=1,D2D,D3=1,D3D,0),COLORRED,LINETHICK2;DD1:D1D,NODRAW;DD2:D2D,NODRAW;DD3:D3D,NODRAW;DRAWNUMBER(D1=1,C*0.998,C),COLORGREEN;DRAWNUMBER(D2=1,C*0.998,C),COLORCYAN;DRAWNUMBER(D3=1,C*0.998,C),COLORLIRED;DRAWTEXT_FIX( 1,0.00,1-0.18,0,' 9:40:'),COLORGREEN; DRAWNUMBER_FIX(1,0.09,1-0.18,0,D1D),COLORGREEN;DRAWTEXT_FIX( 1,0.00,1-0.12,0,' 9:50:'),COLORCYAN; DRAWNUMBER_FIX(1,0.09,1-0.12,0,D2D),COLORCYAN;DRAWTEXT_FIX( 1,0.00,1-0.03,0,'10:00:'),COLORLIRED; DRAWNUMBER_FIX(1,0.09,1-0.03,0,D3D),COLORLIRED;ZS:=DYNAINFO(3);KP:=DYNAINFO(4);ZX:=DYNAINFO(7);ZG:=DYNAINFO(5);ZD:=DYNAINFO(6);OP:=500-(KP/ZS-1)*4000;CL:=500-(ZX/ZS-1)*4000;HI:=500-(ZG/ZS-1)*4000;LO:=500-(ZD/ZS-1)*4000;N1:=IF(TIME>=130000 OR TIME<91500,360,860); DRAWRECTREL(N1+4,OP,N1+8,HI,RGB(255,0,255)),COLORFF00FF;{今日最高}{玫红}DRAWRECTREL(N1+4,CL,N1+8,LO,RGB(0,128,0)),COLOR008000;{今日最低}{暗绿}Q1:=IF(ZX>=KP,255,0);Q2:=IF(ZX>=KP,0,255);Q3:=IF(ZX>=KP,0,255);DRAWRECTREL(N1-10,OP,N1+22,CL,RGB(Q1,Q2,Q3));{今日实体}{255,0,0大红}{0,255,255青}ZO:="FSKY.ZO#DAY";ZC:="FSKY.ZC#DAY";ZH:="FSKY.ZH#DAY";ZL:="FSKY.ZL#DAY";ZKP:=500-(ZO/ZS-1)*4000;ZCP:=500-(ZC/ZS-1)*4000;ZZG:=500-(ZH/ZS-1)*4000;ZZD:=500-(ZL/ZS-1)*4000;DRAWRECTREL(N1-36,ZKP,N1-32,ZZG,RGB(255,0,255)),COLORFF00FF;{昨日最高}{玫红}DRAWRECTREL(N1-36,ZCP,N1-32,ZZD,RGB(0,128,0)),COLOR008000;{昨日最低}{暗绿}Q4:=IF(ZC>=ZO,255,0);Q5:=IF(ZC>=ZO,0,255);Q6:=IF(ZC>=ZO,0,255);DRAWRECTREL(N1-49,ZKP,N1-17,ZCP,RGB(Q4,Q5,Q6)),COLOR00FFFF;{昨日实体}{大红或青}JO:="FSKY.JO#DAY";JC:="FSKY.JC#DAY";JH:="FSKY.JH#DAY";JL:="FSKY.JL#DAY";ZZKP:=500-(JO/ZS-1)*4000;ZZCP:=500-(JC/ZS-1)*4000;ZZZG:=500-(JH/ZS-1)*4000;ZZZD:=500-(JL/ZS-1)*4000;DRAWRECTREL(N1-76,ZZKP,N1-72,ZZZG,RGB(255,0,255)),COLORFF00FF;{前日最高}{玫红}DRAWRECTREL(N1-76,ZZCP,N1-72,ZZZD,RGB(0,128,0)),COLOR008000;{前日最低}{暗绿}Q7:=IF(JC>=JO,255,0);Q8:=IF(JC>=JO,0,255);Q9:=IF(JC>=JO,0,255);DRAWRECTREL(N1-89,ZZKP,N1-57,ZZCP,RGB(Q7,Q8,Q9)),COLOR00FFFF;{前日实体}{大红或青}MA5:="FSKY.MA5#DAY";XMA5:=500-(MA5/ZS-1)*4000;DRAWRECTREL(N1-15,XMA5-5,N1+25,XMA5+5,RGB(255,255,255));{白} DRAWTEXT_FIX(ISLASTBAR,0.820,1-0.20,0,STRCAT('A5 :',CON2STR(MA5,2))),COLORWHITE;MA10:="FSKY.MA10#DAY";XMA10:=500-(MA10/ZS-1)*4000;DRAWRECTREL(N1-15,XMA10-5,N1+35,XMA10+5,RGB(255,255,0));{黄} DRAWTEXT_FIX(ISLASTBAR,0.8200,1-0.15,0,STRCAT('A10 :',CON2STR(MA10,2))),COLORYELLOW;MA20:="FSKY.MA20#DAY";XMA20:=500-(MA20/ZS-1)*4000;DRAWRECTREL(N1-15,XMA20-5,N1+45,XMA20+5,RGB(255,0,255)),COLORM AGENTA;DRAWTEXT_FIX(ISLASTBAR,0.8200,1-0.10,0,STRCAT('A20 :',CON2STR(MA20,2))),COLORMAGENTA;MA60:="FSKY.MA60#DAY";XMA60:=500-(MA60/ZS-1)*4000;DRAWRECTREL(N1-15,XMA60-5,N1+55,XMA60+5,RGB(0,125,0)),COLORGRE EN;DRAWTEXT_FIX(ISLASTBAR,0.8200,1-0.03,0,STRCAT('A60 :',CON2STR(MA60,2))),COLORGREEN;分时均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1; DA:=YEAR AND MONTH AND DAY;AA1:=STRCAT(CON2STR(YEAR,0),'年');AA2:=STRCAT(CON2STR(MONTH,0),'月');AA3:=STRCAT(CON2STR(DAY,0),'日');AA4:=STRCAT('【',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日'))))))); AA:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),'】'); DRAWTEXT_FIX(DA,0.85,0.01,0,AA),COLORWHITE;。

极品分时主图指标(源码)

极品分时主图指标(源码)

极品分时主图指标(源码)LTA:=FINANCE(7)+300000000;GB:=2*IF(FINANCE(7)<100000000000,FLOOR(ABS((FINANC E(7)/1000000000-1))),FLOOR(ABS((FINANCE(7)/1000000000-1)))/10),NODRAW ;C1:=CLOSE;V1:=TIME;A1:=COUNT(BARSCOUNT(C)=1 AND TIME<102000 ,0 );T:=IF(V1<130000,(FLOOR(V1/10000)-9.5)*60+(FLOOR(V1/100)-100*FLOOR(V1/10000)),(FLOOR(V1/10000)-11)*60+(FLOOR(V1/100)-100*FLOOR(V1/10000))),NODRAW;成交额:AMOUNT,NODRAW;大额线:=50*3+300*GB,COLOR00FFFF;VV2:=SUM(AMOUNT,T),NODRAW;初正1:=IF(T=1 AND DYNAINFO(4)>=DYNAINFO(3),VV2,0);初负1:=IF(T=1 AND DYNAINFO(4)<DYNAINFO(3),VV2,0);初正2:=CONST(SUM(IF(T=1,初正1,0),T)),NODRAW;初负2:=CONST(SUM(IF(T=1,初负1,0),T)),NODRAW;初正:=CONST(SUM(IF(初正1>大额线AND T=1,初正1,0),T)),NODRAW;初负:=CONST(SUM(IF(初负1>大额线AND T=1,初负1,0),T)),NODRAW;T00:=IF(C1>REF(C1,1),0.9,-0.9);T01:=IF(C1<REF(C1,1),-0.9,0.9);T02:=T00+T01;TT1:=BARSLAST(CROSS(T02,0));TT2:=BARSLAST(CROSS(0,T02));TT:=IF(T02=1.8,1,IF(T02=-1.8,-1,0));正V1:=IF(TT=1 OR (TT=0 AND TT1>TT2),成交额,0);负V1:=IF(TT=-1 OR (TT=0 AND TT1<TT2),成交额,0);正总1:=初正1+SUM(正V1,T),NODRAW,COLOR0000FF;负总1:=初负1+SUM(负V1,T),NODRAW,COLOR00FF00; 总:=(正总1+负总1)+初正2+初负2,NODRAW;正V:=IF(正V1>大额线,正V1,0);负V:=IF(负V1>大额线,负V1,0);正总:初正+SUM(正V,T),NODRAW,COLOR0000FF;负总:初负+SUM(负V,T),NODRAW,COLOR00FF00;差%:(正总-负总)/总*100,COLOR00FF00,NODRAW;TTA:=INTPART(2*T/5);KP30:=T<240;KPGD:=H=HHV(H,0) AND KP30;GDSJ:=BARSLAST(KPGD);{强弱界}MMA30:=EMA(CLOSE,30);强弱界定:=EMA(CLOSE,900);DRAWBAND(MMA30,RGB(100,0,0),强弱界定,RGB(0,255,0)); DRAWICON(CROSS(MMA30,强弱界定),H,1);CC:=CLOSE,COLORWHITE,LINETHICK2;VAR7:=SMA(CC,6.18,1);VAR8:=SMA(VAR7,3.14,1);RCC:=DYNAINFO(3);S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:=4*(S2-S6);KK:=1;{暗轨}{AA1:=PLOYLINE(CLOSE<COST(50) AND T>5,COST(20)); BB1:=PLOYLINE(CLOSE<COST(50) AND T>5,COST(80));DRAWBAND(BB1,RGB(50,50,50),AA1,DRAWNULL);{CYC}VAR1:=AMOUNT/VOL/100;VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;VAR3:=SUM(AMOUNT,5)/VAR1/100;VAR4:=SUM(AMOUNT,13)/VAR1/100;VAR5:=SUM(AMOUNT,34)/VAR1/100;CYC5:=DMA(VAR2,VOL/VAR3);CYC13:=DMA(VAR2,VOL/VAR4);CYC34:=DMA(VAR2,VOL/VAR5);DRAWBAND(CYC5,RGB(00,50,50),CYC13,DRAWNULL);DRAWBAND(CYC13,RGB(00,150,150),CYC34,DRAWNULL);{分时MACD}昨收:=DYNAINFO(3);HH:=DYNAINFO(5);LL:=DYNAINFO(6);FK:=MAX(HH-昨收,昨收-LL)*0.1;ZS:=昨收-FK*3.2;Q1:=昨收-FK*3.22;Q2:=昨收-2*FK*3.22;Q3:=昨收-3*FK*3.2;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);DIF:=(EMA(CLOSE,13) - EMA(CLOSE,24));DEA:=(EMA(DIF,6));MACD:=5*(DIF-DEA);STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0),COLORFF00FF,LINETHICK3;STICKLINE(MACD>=0 AND MACD< REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0),COLORBLUE,LINET HICK3;STICKLINE(MACD<0 AND MACD>=REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0),COLOR4A BEFF,LINETHICK3;STICKLINE(MACD<0 AND MACD< REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0),COLORBLUE,LINET HICK3;STICKLINE(DK>0,RCC*KK,RCC*KK+DK,0,1),COLORRED;STICKLINE(DK<0,RCC*KK,RCC*KK+DK,0,1),COLORCYAN;{多头MACD}DIFF:=EMA(CLOSE,240)-EMA(CLOSE,240)*100;DEAA:=EMA(DIFF,18);多头MACD:=(-3*(DIFF-DEAA))*20,NODRAW;ZD:=HHV(多头MACD,0);ZX:=LLV(多头MACD,0);CZ:=(Q2-Q3)/6;FDM:=MAX(ABS(ZD),ABS(ZX))*1.5;{ 股票软件下载网_通达信股票指标公式}RB:=(Q2+Q3)/2+2*(Q2-Q3)/3/FDM*多头MACD;STICKLINE(多头MACD>0,RB,(Q2+Q3)/2,2,1),LINETHICK1,COLOR0000FF;STICKLINE(多头MACD<0,RB,(Q2+Q3)/2,2,1),LINETHICK1,COLOR00FF00;{火焰山及底部信号}FAA:=WINNER(CLOSE+CLOSE*15/100)*100;FBB:=WINNER(CLOSE+CLOSE*0/100)*100;FCC:=FAA-FBB;FDD:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100;FEE:=FCC<3 AND FDD<0.5 AND OPEN!=LOW;FA1:=DYNAINFO(6);FA2:=IF(LOW>FA1,0,IF(HIGH<FA1,1,(FA1-LOW+0.01)/(HIGH-LOW+0.01)));FA3:=VOL/WINNER(LOW);FA4:=REF(HHV(CLOSE,120),1);FA5:=REF(LLV(CLOSE,120),1);FA6:=100*(CLOSE-FA5)/(FA4-FA5);FA7:=FA2>0 OR FA2=1;FA8:=FA7 AND FA3/REF(FA3,3)>=3 AND FA6<80;FA9:=REF(FA8,1) OR REF(FA8,2) OR REF(FA8,3) OR REF(FA8,4);FA10:=FA8 AND FA9;FA11:=IF(FILTER(FA8,3),5,0);FA12:=IF(FILTER(FA10,3) OR FEE,10,0);EEEE:=(RCC-ZS)/5;FVAR1:=REF(LOW,1);FVAR2:=SMA(ABS(LOW-FVAR1),13,1)/SMA(MAX(LOW-FVAR1,0),13,1);FVAR3:=EMA(FVAR2,13);FVAR4:=LLV(LOW,34);FVAR51:=EMA(IF(LOW<=FVAR4,FVAR3,0),3);FVAR5:=IF(FVAR51>20,20,FVAR51);DRAWTEXT(FA11,(Q2+Q3)/2*1.02,'↑进'),COLOR00FFFF;DRAWTEXT(FA12,(Q2+Q3)/2*1.03,',↑加');主力进场:STICKLINE(FVAR5>REF(FVAR5,1),(Q2+Q3)/2,(Q2+Q3)/2+FVA R5*EEEE,10,0 ),COLORRED;洗盘:IF(FVAR5<REF(FVAR5,1),FVAR5,0),COLORGREEN,NODRAW;STICKLINE(FVAR5<REF(FVAR5,1),(Q2+Q3)/2,(Q2+Q3)/2+FV AR5*EEEE,5,1),COLORGREEN;FVAR6:=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);FVAR7:=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);FVAR8:=FVAR6<REF(FVAR7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(FVAR8 AND COUNT(FVAR8,30)=1,(Q2+Q3)/2+3*EEEE,'★迹');JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;STICKLINE(二次金叉,(Q2+Q3)/2,(Q2+Q3)/2*1.01,4,0),COLORFF00FF;DRAWTEXT(二次金叉,(Q2+Q3)/2*1.01,' 二金'),COLORYELLOW;HHH:=MA(CLOSE,10);GGG:=MA(CLOSE,12);上:=EMA((MA(HIGH,3) * 1.05),30);下:=EMA((MA(LOW,3) * 0.96),30);决战:STICKLINE((((CROSS(DIF,DEA) AND ((下 - REF(下,1)) > 0)) AND (MACD >= REF(MACD,1))) AND(DIF < 0)),(Q2+Q3)/2,(Q2+Q3)/2*1.01,1,0),COLOR0000FF;DRAWTEXT((((CROSS(DIF,DEA) AND ((下- REF(下,1)) > 0)) AND (MACD >= REF(MACD,1))) AND (DIF<= 0)),(Q2+Q3)/2*1.01,'DIF金叉'),COLOR0000FF;{两个主要买进信号}RSV:=((CLOSE-LLV(LOW,240))/(HHV(HIGH,240)-LLV(LOW,240))*200-100);K:=SMA(SMA(RSV,18,1),3,1);D:=MA(EMA(K,18),3);短买:=CROSS(K,D) AND K>0 AND CLOSE<DYNAINFO(3)*1.07;DRAWTEXT(短买,(Q2+Q3)/2+(Q2-Q3)/1,'短买'),COLORFF00FF;YY:=SMA(VOL,30,1);量1:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(LLV(YY,1),30));量:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(LLV(YY,1),30))>0.92;短横:=((HHV(CLOSE,TTA)-LLV(CLOSE,TTA))/CLOSE)<0.04;横后上涨:=(CLOSE/DYNAINFO(3))>=1.02=0 AND 短横AND 量 AND CROSS(C,(MA(C*V,TTA)/MA(V,TTA) + AVEDEV(C,TTA)*2));上涨:=FILTER((CROSS(横后上涨,0)AND 量 AND T>60OR (T>60 AND CLOSE<DYNAINFO(3)*1.04 AND (量1<0.5 OR 量1=1) AND BARSLAST(CROSS(C,(MA(C*V,TTA)/MA(V,TTA) + AVEDEV(C,TTA)*2)))<3AND CROSS(C,MA(HHV(C,TTA),1)))),30);DRAWTEXT(上涨,(Q2+Q3)/2+(Q2-Q3)/1,'★涨'),COLORRED,LINETHICK3;HHHH:REF(H,GDSJ),COLORFFFFFF,POINTDOT,LINETHICK1;过顶:IF(CROSS(C,HHHH),1,0),COLOR00FF00,POINTDOT,NODRAW;冲高:IF(FILTER(CROSS(C,HHHH*1.01),15),1,0),COLOR00FFFF,POINT DOT,NODRAW;DRAWBAND(VAR7,RGB(255,255,0),VAR8,RGB(0,255,255));DRAWTEXT(过顶,HHHH*1.005,'↑'),COLOR00FF00; DRAWTEXT(冲高,HHHH*1.005,'☆'),COLOR00FFFF; C,LINETHICK2,COLORFFFFFF;均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;。

顶底之王分时指标源码

顶底之王分时指标源码

顶底之王分时指标源码
(实用版)
目录
I.顶底之王分时指标源码介绍
1.顶底之王分时指标源码的背景和意义
2.顶底之王分时指标源码的技术原理
3.顶底之王分时指标源码的应用场景和优势
II.顶底之王分时指标源码的具体实现
1.顶底之王分时指标源码的实现方法
2.顶底之王分时指标源码的参数设置和调整
3.顶底之王分时指标源码的代码示例
III.顶底之王分时指标源码的应用案例和效果
1.顶底之王分时指标源码的应用效果
2.顶底之王分时指标源码的应用案例
3.顶底之王分时指标源码的应用建议和总结
正文
一、顶底之王分时指标源码介绍
1.顶底之王分时指标源码的背景和意义
顶底之王分时指标是一款基于时间分段的量化交易指标,广泛应用于股票、期货、外汇等金融市场。

该指标通过分析市场趋势的顶底状态,为投资者提供买卖决策的参考。

相比于传统的技术指标,顶底之王分时指标具有更高的实时性和准确性,能够更好地适应市场的快速变化。

2.顶底之王分时指标源码的技术原理
顶底之王分时指标源码基于大量的历史数据和交易数据,通过统计分析和机器学习算法,挖掘出市场趋势的规律和特征。

在具体实现上,该指标通过对每个时间段的收盘价进行分析,计算出趋势的顶底状态,并根据状态进行买卖决策。

3.顶底之王分时指标源码的应用场景和优势
顶底之王分时指标源码适用于任何交易市场,特别适合短线交易者。

其优势在于:
(1)实时性强:该指标能够实时反映市场的变化,为投资者提供及时的交易信号。

分时看盘主图源码 通达信指标公式源码

分时看盘主图源码 通达信指标公式源码

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;。

通达信指标公式源码 分时神线副图分时

通达信指标公式源码 分时神线副图分时

{分时神线-和谐完整版}现价:CLOSE,COLORWHITE,LINETHICK1;赚钱1:=(BARSLAST(((HOUR = 9) AND (MINUTE = 31))) + 1);赚钱2:=SUM(CLOSE*VOL,BARSCOUNT(C))/SUM(VOL,BARSCOUNT(C));赚钱3:=(SUM((CLOSE * VOL),0) / SUM(VOL,0));赚钱4:=(((SETCODE = 0) OR (SETCODE = 1)) AND (CLOSE < 500));均价:=IF(赚钱4,赚钱2,赚钱3),COLORYELLOW;赚钱11:=MA((REF(MAX(H,REF(C,1)),1)-REF(MIN(L,REF(C,1)),1))/REF(C,2)*100,5) /4;赚钱12:=(赚钱11 * 1.3);赚钱15:=((CLOSE > REF(CLOSE,1)) AND ((CLOSE / 均价) > (1 + (赚钱11 / 100))));赚钱16:=((CLOSE < REF(CLOSE,1)) AND ((CLOSE / 均价) < (1 - (赚钱11 / 100))));HH1:=((REF(SUM(赚钱15,0),1) = 0) AND (SUM(赚钱15,0) = 1));LL1:=((REF(SUM(赚钱16,0),1) = 0) AND (SUM(赚钱16,0) = 1));赚钱19:=(SUM(HH1,0) * CROSS(COUNT((CLOSE <REF(CLOSE,1)),BARSLAST(HH1)),0.5));赚钱20:=(SUM(LL1,0) * CROSS(COUNT((CLOSE >REF(CLOSE,1)),BARSLAST(LL1)),0.5));CS1:CONST(SUM(IF(赚钱19,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN,LINETHICK1;CB1:CONST(SUM(IF(赚钱20,REF(CLOSE,1),DRAWNULL),0)),COLORLIMAGENTA,LINETHICK1; HH2:=CROSS(SUM((赚钱15 AND (CLOSE > (CS1 * (1 + (赚钱12 / 100))))),0),0.5);LL2:=CROSS(SUM((赚钱16 AND (CLOSE < (CB1 * (1 - (赚钱12 / 100))))),0),0.5);赚钱25:=(SUM(HH2,0) * CROSS(COUNT((CLOSE <REF(CLOSE,1)),BARSLAST(HH2)),0.5));赚钱26:=(SUM(LL2,0) * CROSS(COUNT((CLOSE >REF(CLOSE,1)),BARSLAST(LL2)),0.5));CS2:CONST(SUM(IF(赚钱25,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN,LINETHICK1;CB2:CONST(SUM(IF(赚钱26,REF(CLOSE,1),DRAWNULL),0)),COLORLIMAGENTA,LINETHICK1; DRAWICON((HH1 OR HH2),(CLOSE * 1.001),2);DRAWICON((LL1 OR LL2),(CLOSE * 0.988),1);DRAWICON((赚钱20 OR 赚钱26),(REF(C,1) * 0.988),7); DRAWICON((赚钱19 OR 赚钱25),(REF(CLOSE,1) * 1.001),8);。

分时k线(源码)通达信指标公式源码

分时k线(源码)通达信指标公式源码

分时k线(源码)通达信指标公式源码分时k线(源码)引用指标名称{FSKY}预测量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<="" p=""> 今量:VOL;昨量:REF(VOL,1);前量:REF(VOL,2);昨开:REF(O,1);昨收:REF(C,1);前开:REF(O,2);前收:REF(C,2);ZO:REF(O,1);ZC:REF(C,1);ZH:REF(H,1);ZL:REF(L,1);JO:REF(O,2);JC:REF(C,2);JH:REF(H,2);JL:REF(L,2);JO3:REF(O,3);JC3:REF(C,3);JH3:REF(H,3);JL3:REF(L,3);JO4:REF(O,4);JC4:REF(C,4);JH4:REF(H,4);JL4:REF(L,4);JO5:REF(O,5);JC5:REF(C,5);JH5:REF(H,5);JL5:REF(L,5);JO6:REF(O,6);JC6:REF(C,6);JH6:REF(H,6);JL6:REF(L,6);JO7:REF(O,7);JC7:REF(C,7);JH7:REF(H,7);JL7:REF(L,7);JO8:REF(O,8);JC8:REF(C,8);JH8:REF(H,8);JL8:REF(L,8);MA2:MA(C,2);MA3:MA(C,3);MA4:MA(C,4);MA5:MA(C,5);MA10:MA(C,10);MA20:MA(C,20);MA60:MA(C,60);上涨家数:INDEXADV;下跌家数:INDEXDEC;{分时K线}D0:=HOUR=9 AND MINUTE=30; D1:=HOUR=9 AND MINUTE=40;D2:=HOUR=9 AND MINUTE=50;D3:=HOUR=10 AND MINUTE=0;D4:=HOUR=10 AND MINUTE=30;D5:=HOUR=11 AND MINUTE=0;D6:=HOUR=13 AND MINUTE=0;D7:=HOUR=13 AND MINUTE=30;D8:=HOUR=14 AND MINUTE=0;D9:=HOUR=14 AND MINUTE=30;D10:=HOUR=14 AND MINUTE=40;D11:=HOUR=14 AND MINUTE=50;D12:=HOUR=14 AND MINUTE=55;D0D:=IF(D0=0,C,DRAWNULL);D1D:=IF(D1=1,C,DRAWNULL);D2D:=IF(D2=1,C,DRAWNULL);D3D:=IF(D3=1,C,DRAWNULL);D4D:=IF(D4=1,C,DRAWNULL);D5D:=IF(D5=1,C,DRAWNULL);D6D:=IF(D6=1,C,DRAWNULL);D7D:=IF(D7=1,C,DRAWNULL);D8D:=IF(D8=1,C,DRAWNULL);D9D:=IF(D9=1,C,DRAWNULL);D10D:=IF(D10=1,C,DRAWNULL);D11D:=IF(D11=1,C,DRAWNULL);D12D:=IF(D12=1,C,DRAWNULL);时间:=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,0),COLORGREEN;}DA:=YEAR AND MONTH AND DAY;AA1:=STRCAT(CON2STR(YEAR,0),'年');AA2:=STRCAT(CON2STR(MONTH,0),'月');AA3:=STRCAT(CON2STR(DAY,0),'日');AA4:=STRCAT('【',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));AA:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),'】'); DRAWTEXT_FIX(DA,0.85,0.01,0,AA),COLORWHITE;{分时量}预测量:="FSKY.预测量#DAY";主买:="FSKY.主买#DAY";前量:="FSKY.前量#DAY";昨量:="FSKY.昨量#DAY";今量:="FSKY.今量#DAY";前总:=前量;昨总:=昨量;总:=今量,NODRAW;BMM:=MAX(前总,昨总);AMM:=IF(总/BMM>2,BMM*3,BMM);MM:=500/AMM;KP:=DYNAINFO(4);ZX:=DYNAINFO(7);A1:=IF(ZX>=KP,255,0);A2:=IF(ZX>=KP,0,255);A3:=IF(ZX>=KP,0,255);{DRAWRECTREL(0,80,MM*预测量,110,RGB(90,90,90)); DRAWRECTREL(0,80,MM*今量,110,RGB(A1,A2,A3));DRAWRECTREL(0,80,MM*主买,110,RGB(250,250,280));}昨开:="FSKY.昨开#DAY";昨收:="FSKY.昨收#DAY";A4:=IF(昨收>=昨开,255,0);A5:=IF(昨收>=昨开,0,255);A6:=IF(昨收>=昨开,0,255);{DRAWRECTREL(0,40,MM*昨量,70,RGB(A4,A5,A6));}前开:="FSKY.前开#DAY";前收:="FSKY.前收#DAY";A7:=IF(前收>=前开,255,0);A8:=IF(前收>=前开,0,255);A9:=IF(前收>=前开,0,255);{DRAWRECTREL(0,0,MM*前量,30,RGB(A7,A8,A9));}{分时K线}ZS:=DYNAINFO(3);ZG:=DYNAINFO(5);ZD:=DYNAINFO(6);OP:=500-(KP/ZS-1)*4000;CL:=500-(ZX/ZS-1)*4000;HI:=500-(ZG/ZS-1)*4000;LO:=500-(ZD/ZS-1)*4000;N1:=IF(TIME>=130000 OR TIME<91500,360,860); DRAWRECTREL(N1+4,OP,N1+8,HI,RGB(255,0,255)); DRAWRECTREL(N1+4,CL,N1+8,LO,RGB(0,128,0));Q1:=IF(ZX>=KP,255,0);Q2:=IF(ZX>=KP,0,255);Q3:=IF(ZX>=KP,0,255);DRAWRECTREL(N1-10,OP,N1+22,CL,RGB(Q1,Q2,Q3));ZO:="FSKY.ZO#DAY";ZC:="FSKY.ZC#DAY";ZH:="FSKY.ZH#DAY";ZL:="FSKY.ZL#DAY";ZKP:=500-(ZO/ZS-1)*4000;ZCP:=500-(ZC/ZS-1)*4000;ZZG:=500-(ZH/ZS-1)*4000;ZZD:=500-(ZL/ZS-1)*4000;DRAWRECTREL(N1-36,ZKP,N1-32,ZZG,RGB(255,0,255)); DRAWRECTREL(N1-36,ZCP,N1-32,ZZD,RGB(0,128,0));Q4:=IF(ZC>=ZO,255,0);Q5:=IF(ZC>=ZO,0,255);Q6:=IF(ZC>=ZO,0,255);DRAWRECTREL(N1-49,ZKP,N1-17,ZCP,RGB(Q4,Q5,Q6)); JO:="FSKY.JO#DAY";JC:="FSKY.JC#DAY";JH:="FSKY.JH#DAY";JL:="FSKY.JL#DAY";ZZKP:=500-(JO/ZS-1)*4000;ZZCP:=500-(JC/ZS-1)*4000;ZZZG:=500-(JH/ZS-1)*4000;ZZZD:=500-(JL/ZS-1)*4000;DRAWRECTREL(N1-76,ZZKP,N1-72,ZZZG,RGB(255,0,255)); DRAWRECTREL(N1-76,ZZCP,N1-72,ZZZD,RGB(0,128,0));Q7:=IF(JC>=JO,255,0);Q8:=IF(JC>=JO,0,255);Q9:=IF(JC>=JO,0,255);DRAWRECTREL(N1-89,ZZKP,N1-57,ZZCP,RGB(Q7,Q8,Q9)); JO3:="FSKY.JO3#DAY";JC3:="FSKY.JC3#DAY";JH3:="FSKY.JH3#DAY";JL3:="FSKY.JL3#DAY";ZZKP3:=500-(JO3/ZS-1)*4000;ZZCP3:=500-(JC3/ZS-1)*4000;ZZZD3:=500-(JL3/ZS-1)*4000;DRAWRECTREL(N1-116,ZZKP3,N1-112,ZZZG3,RGB(255,0,255)); DRAWRECTREL(N1-116,ZZCP3,N1-112,ZZZD3,RGB(0,128,0));Q10:=IF(JC3>=JO3,255,0);Q11:=IF(JC3>=JO3,0,255);Q12:=IF(JC3>=JO3,0,255);DRAWRECTREL(N1-129,ZZKP3,N1-97,ZZCP3,RGB(Q10,Q11,Q12)); JO4:="FSKY.JO4#DAY";JC4:="FSKY.JC4#DAY";JH4:="FSKY.JH4#DAY";JL4:="FSKY.JL4#DAY";ZZKP4:=500-(JO4/ZS-1)*4000;ZZCP4:=500-(JC4/ZS-1)*4000;ZZZG4:=500-(JH4/ZS-1)*4000;ZZZD4:=500-(JL4/ZS-1)*4000;DRAWRECTREL(N1-156,ZZKP4,N1-152,ZZZG4,RGB(255,0,255)); DRAWRECTREL(N1-156,ZZCP4,N1-152,ZZZD4,RGB(0,128,0));Q13:=IF(JC4>=JO4,255,0);Q14:=IF(JC4>=JO4,0,255);Q15:=IF(JC4>=JO4,0,255);DRAWRECTREL(N1-169,ZZKP4,N1-137,ZZCP4,RGB(Q13,Q14,Q15)); JO5:="FSKY.JO5#DAY";JC5:="FSKY.JC5#DAY";JH5:="FSKY.JH5#DAY";JL5:="FSKY.JL5#DAY";ZZKP5:=500-(JO5/ZS-1)*4000;ZZCP5:=500-(JC5/ZS-1)*4000;ZZZD5:=500-(JL5/ZS-1)*4000;DRAWRECTREL(N1-196,ZZKP5,N1-192,ZZZG5,RGB(255,0,255)); DRAWRECTREL(N1-196,ZZCP5,N1-192,ZZZD5,RGB(0,128,0));Q16:=IF(JC5>=JO5,255,0);Q17:=IF(JC5>=JO5,0,255);Q18:=IF(JC5>=JO5,0,255);DRAWRECTREL(N1-209,ZZKP5,N1-177,ZZCP5,RGB(Q16,Q17,Q18)); JO6:="FSKY.JO6#DAY";JC6:="FSKY.JC6#DAY";JH6:="FSKY.JH6#DAY";JL6:="FSKY.JL6#DAY";ZZKP6:=500-(JO6/ZS-1)*4000;ZZCP6:=500-(JC6/ZS-1)*4000;ZZZG6:=500-(JH6/ZS-1)*4000;ZZZD6:=500-(JL6/ZS-1)*4000;DRAWRECTREL(N1-236,ZZKP6,N1-232,ZZZG6,RGB(255,0,255)); DRAWRECTREL(N1-236,ZZCP6,N1-232,ZZZD6,RGB(0,128,0));Q19:=IF(JC6>=JO6,255,0);Q20:=IF(JC6>=JO6,0,255);Q21:=IF(JC6>=JO6,0,255);DRAWRECTREL(N1-249,ZZKP6,N1-217,ZZCP6,RGB(Q19,Q20,Q21)); JO7:="FSKY.JO7#DAY";JC7:="FSKY.JC7#DAY";JH7:="FSKY.JH7#DAY";JL7:="FSKY.JL7#DAY";ZZKP7:=500-(JO7/ZS-1)*4000;ZZCP7:=500-(JC7/ZS-1)*4000;ZZZD7:=500-(JL7/ZS-1)*4000;DRAWRECTREL(N1-276,ZZKP7,N1-272,ZZZG7,RGB(255,0,255)); DRAWRECTREL(N1-276,ZZCP7,N1-272,ZZZD7,RGB(0,128,0));Q22:=IF(JC7>=JO7,255,0);Q23:=IF(JC7>=JO7,0,255);Q24:=IF(JC7>=JO7,0,255);DRAWRECTREL(N1-289,ZZKP7,N1-257,ZZCP7,RGB(Q22,Q23,Q24)); JO8:="FSKY.JO8#DAY";JC8:="FSKY.JC8#DAY";JH8:="FSKY.JH8#DAY";JL8:="FSKY.JL8#DAY";ZZKP8:=500-(JO8/ZS-1)*4000;ZZCP8:=500-(JC8/ZS-1)*4000;ZZZG8:=500-(JH8/ZS-1)*4000;ZZZD8:=500-(JL8/ZS-1)*4000;DRAWRECTREL(N1-316,ZZKP8,N1-312,ZZZG8,RGB(255,0,255)); DRAWRECTREL(N1-316,ZZCP8,N1-312,ZZZD8,RGB(0,128,0));Q25:=IF(JC8>=JO8,255,0);Q26:=IF(JC8>=JO8,0,255);Q27:=IF(JC8>=JO8,0,255);DRAWRECTREL(N1-329,ZZKP8,N1-297,ZZCP8,RGB(Q25,Q26,Q27));DRAWLINE(D0=0,D0D,D1=1,D1D,0),COLORBLUE,LINETHICK2; DRAWLINE(D1=1,D1D,D2=1,D2D,0),COLORBLUE,LINETHICK2; DRAWLINE(D2=1,D2D,D3=1,D3D,0),COLORBLUE,LINETHICK2; DRAWLINE(D9=1,D9D,D10=1,D10D,0),COLORBLUE,LINETHICK2; DRAWLINE(D10=1,D10D,D11=1,D11D,0),COLORBLUE,LINETHICK2;DRAWLINE(D11=1,D11D,D12=1,D12D,0),COLORBLUE,LINETHICK 2;MA2:="FSKY.MA2#DAY";MA3:="FSKY.MA3#DAY";MA4:="FSKY.MA4#DAY";MA5:="FSKY.MA5#DAY";XMA5:=500-(MA5/ZS-1)*4000;DRAWRECTREL(N1-3,XMA5-2,N1+15,XMA5+2,RGB(255,0,0));MA10:="FSKY.MA10#DAY";XMA10:=500-(MA10/ZS-1)*4000;DRAWRECTREL(N1-10,XMA10-2,N1+25,XMA10+2,RGB(0,255,0));MA20:="FSKY.MA20#DAY";XMA20:=500-(MA20/ZS-1)*4000;DRAWRECTREL(N1-20,XMA20-2,N1+35,XMA20+2,RGB(0,0,255));MA60:="FSKY.MA60#DAY";XMA60:=500-(MA60/ZS-1)*4000;DRAWRECTREL(N1-30,XMA60-2,N1+45,XMA60+2,RGB(255,255,255));。

通达信-分时指标-主图源码

通达信-分时指标-主图源码

通达信-分时指标-主图源码通达信-分时指标-主图源码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;。

分时主图通达信指标公式源码

分时主图通达信指标公式源码

叶子分时主图:均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;T:=0;RSV:=((CLOSE-LLV(LOW,240))/(HHV(HIGH,240)-LLV(LOW,240))*200-100)/2; K:=SMA(SMA( RSV,18,1),3,1);D:=MA(EMA(K,18),3);J:=3*K-2*D;DIFF:=EMA(CLOSE,240)-EMA(CLOSE,240)*100;DEA:=EMA(DIFF,18);多头:=(-3*(DIFF-DEA))*2;LC:=REF(CLOSE,1);RSI:=((SMA(MAX(CLOSE - LC,0),4.1,1))/(SMA(ABS(CLOSE - LC),4.1,1)))*(100);买:=(CROSS(RSI,11))*(80) AND J<-20,COLORRED;VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100,COLOR RED;卖:= CROSS(82,VARR1) AND C/(SUM(AMOUNT,0)/SUM(VOL*100,0))>1.01 AND 多头>6,COLORGREEN ;DRAWTEXT(买,L * 0.998,'B'),LINETHICK5 ,COLORRED;DRAWTEXT(卖,H*1.002,'卖'),LINETHICK5 ,COLORGREEN;DRAWICON(买,L,25);DRAWICON(卖,H,27);叶子分时:VAR0:=(EMA(CLOSE,5) * 7 + EMA(CLOSE,10) * 3)/10;VAR1:=SUM((CLOSE - VAR0)/VAR0 * 100 + 20,1);VAR2:=SUM((HIGH - VAR0)/VAR0 * 100 + 20,1);VAR3:=SUM((LOW - VAR0)/VAR0 * 100 + 20,1);VAR4:=SUM(VAR1 - VAR2,1);VAR5:=SUM(VAR1 - VAR3,1);VAR6:=SUM(CLOSE - VAR0,1);VAR7:=MA(VAR6,8);VAR8:=(CLOSE - LLV(LOW,60))/(HHV(HIGH,60) - LLV(LOW,60)) * 80;VAR9:=SMA(VAR8,7,1);VAR10:=SMA(VAR9,5,1);VAR11:=REF(CLOSE,1);VAR12:=SMA(MAX(CLOSE - VAR11,0),12,1)/SMA(ABS(CLOSE - VAR11),12,1) * 100; VAR13:=SMA(MAX(CLOSE - VAR11,0),18,1)/SMA(ABS(CLOSE - VAR11),18,1) * 100; VAR14:=MA(3 * VAR12 - 2 * SMA(MAX(CLOSE - VAR11,0),16,1)/SMA(ABS(CLOSE - VAR11),16,1) * 100,3);VAR15:=EMA(VAR14,8);VAR16:=IF(CROSS(VAR6,VAR7) AND VAR15 < 40 AND VAR10 < 40 AND VAR7 <0,-15,-30);VAR17:=IF((CLOSE - VAR0)/VAR0 * 100 < -10,-11,-20);VAR18:=REF(VAR17,1);VAR19:=IF(CROSS(VAR7,VAR6) AND VAR10 > 60 AND VAR15 > 70 AND VAR7 >0,15,20);T:=0;RSV:=((CLOSE-LLV(LOW,240))/(HHV(HIGH,240)-LLV(LOW,240))*200-100)/2;K1:=SMA(SMA( RSV,18,1),3,1);D1:=MA(EMA(K1,18),3);J1:=3*K1-2*D1;买:FILTER(IF(CROSS(VAR6,VAR7) AND VAR15 < 40 AND VAR10 < 40 AND VAR7 < 0,-15,-30)=-15,10) AND J1<-10,COLORRED;DIFF:=EMA(CLOSE,240)-EMA(CLOSE,240)*100;DEA:=EMA(DIFF,18);多头:=(-3*(DIFF-DEA))*2;卖:FILTER(VAR19=15,5) AND 多头>2.5,COLORGREEN;。

分时买卖分时指标源码(支持手机)

分时买卖分时指标源码(支持手机)

分时买卖分时指标源码(支持手机)分时买卖分时指标源码(支持手机)A1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/CAPITAL*100,IF(CLO SE<REF(CLOSE,1),-VOL/CAPITAL*100,0)),0);成交额:=V*C/100,NODRAW;A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);A4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);A5:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((ISLASTBAR),((100*A2)/A6),0);A8:=IF((ISLASTBAR),((100*A3)/A6),0);A9:=IF((ISLASTBAR),((100*A4)/A6),0);A10:=IF((ISLASTBAR),((100*A5)/A6),0);增减仓%:A1;机构买盘:(A2),LINETHICK6,COLORRED;机构卖盘:(A3),LINETHICK6,COLORFFFF55;机构进出:机构买盘-机构卖盘,NODRAW;散户买盘:(A4),COLOR5555FF;散户卖盘:(A5),COLOR55FF55;强势:((100*A2)/A6>50);STICKLINE(强势,机构买盘*1.02,机构买盘*1.1,1,0),COLORYELLOW;拉升:((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18;STICKLINE(拉升,机构买盘*1.1,机构买盘*1.2,1,0),COLORFF00FF;DRAWTEXT(ISLASTBAR=1,机构买盘*0.95,'●机构买盘'),LINETHICK2,COLORRED;DRAWTEXT(ISLASTBAR=1,机构卖盘*0.95,'○机构卖盘'),LINETHICK2,COLORFFFF55;DRAWTEXT(机构进出>0 AND REF(机构进出,1)<=0,机构买盘*1.02,'●机买'),COLORRED;DRAWTEXT(机构进出<0 AND REF(机构进出,1)>=0,机构买盘*0.98,'○机卖'),COLORFFFF55;。

通达信决战分时指标源码(见下面效果图)

通达信决战分时指标源码(见下面效果图)

通达信决战分时指标源码(见下面效果图)决战分时指标副图是盘中及时发现异动个股,及时买进并实现利益最大化的最佳指标.指标性能优于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;{抛};。

通达信指标公式源码 不错的分时指标 副图源码

通达信指标公式源码 不错的分时指标 副图源码

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(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLORFFFF00;主力出货:=控盘<REF(控盘,1) AND 控盘>0;STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,1),COLOR00FFFF; 高度控盘: VAR2>50 AND COST(85)<CLOSE AND 控盘>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:=控盘<REF(控盘,1) AND 控盘>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;。

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

(2)[转载]史上最强的分时图指标-(源码)
原文地址:史上最强的分时图指标-(源码)作者:大鹅史上最强的分时图指标,适合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;{抛};
对于普通的通达信,进T002,找user.ini,已记事本方式打
开,搜ZstZb,把它=号后面的MACD改成你想起的名字。

注:你必须先在公式里面新建一个,你起名字的指标。

然后打开分时图,点一下,量比后面的技术指标,你就可以看到。

相关文档
最新文档