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

合集下载

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

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

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);涨幅0:=C/DYNAINFO(3);限制0:=涨幅0>1.01 AND 涨幅0<=1.06;虎:=DYNAINFO(11)+(DYNAINFO(11)*0.02);Q:=(REF(C,1)-REF(C,2))/REF(C,2)*100;狂猎:=DYNAINFO(6)>(DYNAINFO(3)-0.1) AND Q <6 ANDDYNAINFO(11)>DYNAINFO(3) AND IF(DYNAINFO(7)>虎,1,0) AND DYNAINFO(7)/DYNAINFO(11)<1.03;狂猎过滤:=FILTER(狂猎,60) AND 限制0 ;DRAWTEXT(狂猎过滤,C*0.998,'狂猎'),COLORMAGENTA,;DRAWICON(狂猎过滤,L*0.997,4);{一分钟捉涨停}V1:=v/ma(ref(v,1),5);V2:=indexv/ma(ref(indexv,1),5);lt:=(capital/100)/10000<=10;v0:=v1/v2;ZF:=O/DYNAINFO(3);角05:=atan((EMA(C,7)/ref(EMA(C,7),1)-1)*100)*57.3;角13:=atan((EMA(C,13)/ref(EMA(C,13),1)-1)*100)*57.3;角34:=atan((EMA(C,34)/ref(EMA(C,34),1)-1)*100)*57.3;一分钟捉涨停:=lt and 角05>40 and 角13>17 and 角34>7 and v0>4 and ZF>1 and ZF<1.06;DRAWTEXT(一分钟捉涨停,C*0.996,'一分捉涨停'),COLORMAGENTA,;{捉强势}涨幅:=C/DYNAINFO(3);单笔换手:=V/CAPITAL*100;XX:=BARSSINCE(V>0)+1;均价线:=SUM(C*V,XX)/SUM(V,XX);限制:=涨幅>1.01 AND 涨幅<1.05;捉强势:=单笔换手>0.08 AND CROSS(C,均价线) AND 限制;捉强势过滤:=FILTER(捉强势,30);DRAWTEXT(捉强势过滤,C*0.998,'捉强势'),COLORMAGENTA,; {突破前高}涨幅1:=C/DYNAINFO(3);限制1:=涨幅1>1.01 AND 涨幅1<=1.06;QG:=REF(HHV(H,30),3);FL:=EXIST(V>REF(V,1)*1.8,2) AND V>=REF(V,1);XX:=BARSSINCE(V>0)+1;均价线:=SUM(C*V,XX)/SUM(V,XX);突破前高:=CROSS(C,QG) AND FL AND 限制1 AND C>均价线; DRAWTEXT(突破前高,C*0.996,'过前高'),COLORMAGENTA,;。

分时乾坤决策眼分时主图指标通达信指标公式源码

分时乾坤决策眼分时主图指标通达信指标公式源码

分时乾坤决策眼使用说明: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;。

通达信指标公式源码 操盘主图源码

通达信指标公式源码 操盘主图源码

A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);D1:=FILTER(C1,N);A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;E2:=(H+L)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1; L1:=(D2 AND NOT(D1 AND E1<E2));H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);S1:=R1>REF(R1,1);T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);U1:=T1>REF(T1,1);R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1);T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1);短期压力:DRAWLINE(S2,H,S1,H,1),LINETHICK2,COLORRED;短期支撑:DRAWLINE(U2,L,U1,L,1),LINETHICK2,COLORGREEN;MA5:MA(CLOSE,M1),COLORWHITE;MA10:MA(CLOSE,M2),COLORYELLOW;MA30:MA(CLOSE,M3),COLORMAGENTA;MA60:MA(CLOSE,M4),COLORBLUE;VAR30:MA(C,30),COLORRED;上升:IF(VAR30>REF(VAR30,1),VAR30,DRAWNULL),COLORRED,LINETHICK2; 下降:IF(VAR30<REF(VAR30,1),VAR30,DRAWNULL),COLORGREEN,LINETHICK2; BU:=CROSS(HIGH,SAR(3,1,20));SEL:=CROSS(SAR(3,1,20),LOW);DRAWTEXT(BU,LOW,'B'),COLORYELLOW,LINETHICK6;DRAWTEXT(SEL,1.01*HIGH,'S'),COLORGREEN,LINETHICK6;HH:=CONST(HHV(H,160));LL:=CONST(LLV(L,160));{160可改成你习惯锁定的日K线数}HL1:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.76,0.04)); HL2:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.80,0.08)); HL3:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.84,0.12)); HL4:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.88,0.16)); HL5:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.92,0.20)); HL6:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.96,0.24)); DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.04,0,'主题投资:')COLOR0000FF;DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1))COLOR0000FF; {生成数据时第1项输1与这里1一致,描述部分输"主题投资"}DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF; {生成数据时第1项输2与这里2一致,描述部分输"主营业务"}DRAWTEXT_FIX(1,0.00,0.12,0,'出千概念:')COLORFF88FF;DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,3))COLORFF88FF; {生成数据时第1项输3与这里3一致,描述部分输"出千概念"}DRAWTEXT_FIX (1,0.80,HL1,0,'股本:');DRAWNUMBER_FIX(1,0.84,HL1,0,CONST(FINANCE(1)/100000000)); DRAWTEXT_FIX (1,0.80,HL2,0,'流通:');DRAWNUMBER_FIX(1,0.84,HL2,0,CONST(FINANCE(7)/100000000)); DRAWTEXT_FIX (1,0.80,HL3,0,'动PE:');DRAWNUMBER_FIX(1,0.84,HL3,0,CONST(DYNAINFO(39)));DRAWTEXT_FIX (1,0.80,HL4,0,'换手:');DRAWNUMBER_FIX(1,0.84,HL4,0,CONST(DYNAINFO(37)*100)); DRAWTEXT_FIX (1,0.80,HL5,0,'量比:');DRAWNUMBER_FIX(1,0.84,HL5,0,CONST(DYNAINFO(17))); DRAWTEXT_FIX (1,0.80,HL6,0,'涨幅:');DRAWNUMBER_FIX(1,0.84,HL6,0,CONST(DYNAINFO(14)*100)),COLORFF00F F;DRAWNUMBER_FIX(1,0.84,HL6,0,IF(CONST(DYNAINFO(14)*100)<0,CONST( DYNAINFO(14)*100),DRAWNULL))COLOR00FF00;。

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

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

通达信指标公式源码分时主图指标通达信是一款流行的股票行情软件,拥有丰富的指标公式库。

下面是一些常见的通达信指标公式源码,这些公式可以用于绘制分时主图指标。

1.均线:均线是最常见的技术指标之一,它代表了一段时间内的平均价格。

通达信中绘制均线的公式如下:MA(N):N日均线MA(N,X):N日均线,显示为实线,X为线宽度具体实现如下:MA(N):REF(C,N)MA(N,X):MA(N)其中,C代表收盘价,N代表计算的天数,REF函数是通达信的内置函数,用于获取前N天的数据。

2.成交量:成交量是衡量市场活跃度的指标之一,可以使用以下公式绘制成交量:VOL:成交量具体实现如下:VOL:V其中,V代表成交量。

3.平均成交量:平均成交量是一种相对成交量指标,可以用来衡量一些时间段内股票成交量的相对活跃程度。

在通达信中,可以使用以下公式绘制平均成交量:MAVG(VOL,N):N日平均成交量具体实现如下:MAVG(VOL,N):MA(VOL,N)其中,N代表计算的天数。

4.布林线:布林线是一种用来衡量股票价格波动性的指标,它由三条线组成,分别是上轨线、中轨线和下轨线。

在通达信中,可以使用以下公式绘制布林线:BOLL(M,N):中轨线UB(M,N,K):上轨线LB(M,N,K):下轨线具体实现如下:BOLL(M,N):MA(C,N)UB(M,N,K):MA(C,N)+K*STDEV(C,N)LB(M,N,K):MA(C,N)-K*STDEV(C,N)其中,C代表收盘价,M代表计算的天数,N代表计算的天数,K是标准差系数。

5.相对强弱指标(RSI):RSI是一种相对强弱指标,用于衡量市场的超买超卖情况。

在通达信中,可以使用以下公式绘制RSI:RSI(N):N日相对强弱指标具体实现如下:RSI(N):RSI(C,N)其中,C代表收盘价,N代表计算的天数。

以上是通达信中常见的分时主图指标公式源码,可以根据需要进行相应的调整和修改。

通达信指标公式源码 主图趋势画线 源码主图

通达信指标公式源码 主图趋势画线 源码主图

JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;R1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));R2:=(REF(R1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R3:=(REF(R2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R4:=(REF(R3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R5:=(REF(R4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R6:=(REF(R5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R7:=(REF(R6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R8:=(REF(R7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R9:=(REF(R8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RA:=(REF(R9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); RB:=(REF(RA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RC:=(REF(RB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); RD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));RE:=(REF(RD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); RF:=(REF(RE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); R10:=(REF(RF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); R11:=(REF(R10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));R12:=(REF(R11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));R13:=(REF(R12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));R14:=(REF(R13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));R15:=(REF(R14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));R16:=(REF(R15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));R17:=(REF(R16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));R18:=(REF(R17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));R19:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,1) AND R1;R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);VAR3:=IF(C<200 ,MA(COST(80),3),2500),NODRAW;VAR4:=(((HIGH + LOW) + CLOSE) / 3);VAR5:=EMA(((((OPEN + HIGH) + LOW) + CLOSE) / 4),2330);VAR6:=(VAR5 + ((VAR5 * 6) / 100));春买:=R19,NODRAW,COLOR00DD00;秋离场:=R1A,NODRAW,COLOR2288EE;红持股:=R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,NODRAW,COLOR0000FF;阴观望:=RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,NODRAW,COLOR999999;急速超跌关注:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORBBBBBB,NODRA W;离场:=IF(红持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;进:=IF(阴观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLOR00FF00,NODRAW;STICKLINE(ISLASTBAR AND (红持股OR REF(红持股,1)=1),今离场价,今离场价,20,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (阴观望OR REF(阴观望,1)=1),今进场价,今进场价,20,1),COLOR00FF00;XX2:EMA(EMA((CLOSE+LOW+HIGH)/3,3),23),COLORGREEN, LINETHICK2; XX3:=REF(XX2,1);IF(XX2>XX3,XX2,DRAWNULL),COLORRED, LINETHICK2;B11:=MA(CLOSE,1);B22:=SMA(SMA(SMA(B11,2,1),2,1),2,1) ;SMA2:=MA(B22,3) ;DRAWBAND(B22,RGB(255,0,0),SMA2,RGB(0,255,0));下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDDDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)) )),COLORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;压力位:=IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;底部位:=IF(ISLASTBAR,底部,DRAWNULL),NODRAW;STICKLINE(ISLASTBAR ,压力位,压力位,40,0),COLORFF00FF,LINETHICK2; STICKLINE(ISLASTBAR ,底部位,底部位,35,0),COLOR00FFFF,LINETHICK2;B1:=REF(CLOSE,1);B2:=REF(CLOSE,2);B3:=REF(CLOSE,3);B4:=REF(CLOSE,4);CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);持股:=(CLOSE=CMAX AND (B1>=B2 OR B1>=B3)) OR ((B1=CMAX AND(B2=CMIN OR B3=CMIN)) AND CLOSE>=B2) OR(B2=CMAX AND B3=CMIN AND CLOSE>=B1) OR (B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2);STICKLINE(持股,B1,CLOSE,3,0),COLOR000099;变盘:=CLOSE=CMAX AND B1=CMIN;STICKLINE(变盘,B2,CLOSE,3,0),COLOR0099EF;下跌:=(CLOSE=CMIN AND (B1<B2 OR B1<B3)) OR ((B1=CMIN AND(B2=CMAX OR B3=CMAX)) AND CLOSE<B2) OR(B2=CMIN AND B3=CMAX AND CLOSE<B1) OR (B3=CMIN AND CLOSE<B1 AND CLOSE<B2);STICKLINE(下跌,B1,CLOSE,3,0),COLOR009900;STICKLINE(B1=CMAX AND CLOSE=CMIN,B2,CLOSE,3,0),COLOR009900;买入:=(B1=CMIN AND CLOSE>=B2) OR ((B2=CMIN AND B1<=B3) OR(B3=CMIN AND B1<=B2) AND B2<B4 AND CLOSE>=B1);STICKLINE(买入,B1,B2,3,0),COLOR00FFFF;抛售:=(B1=CMAX AND CLOSE<B2) OR ((B2=CMAX AND B1>B3) OR(B3=CMAX AND B1>B2) AND B2>=B4 AND CLOSE<B1);STICKLINE(抛售,B1,B2,3,0),COLORFFFFFF;STICKLINE(C>=O,L,H,0,1),COLORRED;STICKLINE(C<O,H,L,0,1),COLORGREEN;STICKLINE(持股OR 买入,O,C,1.5,0),COLORRED;STICKLINE(下跌OR 抛售,O,C,1.5,0),COLORGREEN;STICKLINE(C>0,O,C,0,0),COLORFFFFFF;MMA:=CONST(HHV(H,90));MMB:=CONST(LLV(L,90));WN:=3;{原码N:=3;}WA1:=REF(H,WN)=HHV(H,2*WN+1); WB1:=FILTER(WA1,WN);WC1:=BACKSET(WB1,WN+1); WD1:=FILTER(WC1,WN);{高点}WA2:=REF(L,WN)=LLV(L,2*WN+1); WB2:=FILTER(WA2,WN);WC2:=BACKSET(WB2,WN+1); WD2:=FILTER(WC2,WN);{低点}WE1:=(REF(LLV(L,2*WN),1)+REF(HHV(H,2*WN),1))/2;WE2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}WH1:=(WD1 AND NOT(WD2 AND WE1>=WE2)) OR ISLASTBAR OR BARSCOUNT(C)=1;WL1:=(WD2 AND NOT(WD1 AND WE1<WE2)); WH2:=WD1 AND NOT(WD2 AND WE1>=WE2);WX1:=REF(BARSLAST(WH1),1)+1; WF1:=BACKSET(WH1 ANDCOUNT(WL1,WX1)>0,LLVBARS(IF(WL1,L,10000),WX1));WG1:=WF1>REF(WF1,1); WI1:=BACKSET(WG1,2);WLD:=WI1>REF(WI1,1);{过滤后低点}WL2:=WLD OR ISLASTBAR OR BARSCOUNT(C)=1;WX2:=REF(BARSLAST(WL2),1)+1; WF2:=BACKSET(WL2 ANDCOUNT(WH2,WX2)>0,HHVBARS(IF(WH2,H,0),WX2));WG2:=WF2>REF(WF2,1); WI2:=BACKSET(WG2,2);WHD:=WI2>REF(WI2,1);{过滤后高点}WR1:=BACKSET(ISLASTBAR,BARSLAST(WHD)+1); WS1:=WR1>REF(WR1,1); {前一高}WT1:=BACKSET(ISLASTBAR,BARSLAST(WLD)+1); WU1:=WT1>REF(WT1,1); {前一低}WR2:=BACKSET(WS1,REF(BARSLAST(WHD),1)+2); WS2:=WR2>REF(WR2,1); {前二高}WT2:=BACKSET(WU1,REF(BARSLAST(WLD),1)+2); WU2:=WT2>REF(WT2,1); {前二低}WT3:=BACKSET(WU2,REF(BARSLAST(WLD),1)+2); WU3:=WT3>REF(WT3,1); {前三低}WT4:=BACKSET(WU3,REF(BARSLAST(WLD),1)+2); WU4:=WT4>REF(WT4,1); {前四低}WR3:=BACKSET(WS2,REF(BARSLAST(WHD),1)+2); WS3:=WR3>REF(WR3,1); {前三高}WR4:=BACKSET(WS3,REF(BARSLAST(WHD),1)+2); WS4:=WR4>REF(WR4,1); {前四高};压力1:=DRAWLINE(WS2,H,WS1,H,1),COLOR008888; {★压力1:}支撑1:=DRAWLINE(WU2,L,WU1,L,1),COLOR008888;{★支撑1:}压力2:=DRAWLINE(WS3,H,WS2,H,1),COLOR888000; {★压力2:}支撑2:=DRAWLINE(WU3,L,WU2,L,1),COLOR888000;{★支撑2:}压力3:=DRAWLINE(WS4,H,WS3,H,1),COLOR0000CC;{★压力3:}支撑3:=DRAWLINE(WU4,L,WU3,L,1),COLOR0000CC;{★支撑3:};BSC:=CONST(MAX(BARSLAST(WS4),BARSLAST(WU4))*3),NODRAW;IF(BETWEEN(压力1,MMA,MMB),压力1,DRAWNULL),COLOR008888,LINETHICK1;IF(BETWEEN(支撑1,MMA,MMB),支撑1,DRAWNULL),COLOR008888,LINETHICK1;IF(BETWEEN(压力2,MMA,MMB),压力2,DRAWNULL),COLOR888000,LINETHICK1;IF(BETWEEN(支撑2,MMA,MMB),支撑2,DRAWNULL),COLOR888000,LINETHICK1;IF(BETWEEN(压力3,MMA,MMB),压力3,DRAWNULL),COLOR0000CC,LINETHICK1;IF(BETWEEN(支撑3,MMA,MMB),支撑3,DRAWNULL),COLOR0000CC,LINETHICK1;底:=SUM(MA(CLOSE,10),9)/11.114;DRAWTEXT(CROSS(LOW,底) AND REF(底,1)>REF(HIGH,1) OR CROSS(HIGH,底),L,'---铁底'),COLOR00FF00;X1:=(3*CLOSE+HIGH+LOW+OPEN)/6;X2:=EMA(X1,10);X3:=REF(X2,1);X4:=(REF(HIGH,1)+REF(LOW,1))/2;X5:=MA(CLOSE,21)+2*STD(CLOSE,21);X6:=REF(CLOSE,1);X7:=(SMA(MAX(CLOSE-X6,0),7,1))/(SMA(ABS(CLOSE-X6),7,1))*100;X8:=CROSS(79,X7);X9:=FILTER(X8,4);WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;DK:=SMA(WZ4,3,1)*1.5;DD:=SMA(DK,3,1);DJ:=3*DK-2*DD;WZ5:=EMA(CLOSE,12)-EMA(CLOSE,26);WZ6:=EMA(WZ5,9);WZ7:=2*(WZ5-WZ6);WZ8:=REF(WZ7,1);WZ9:=CROSS(WZ8,WZ7) AND WZ8>0;VAR1T:=EMA(CLOSE,8);VAR2T:=EMA(VAR1T,20);VAR3T:=CROSS(VAR1T,VAR2T);VAR4T:=VAR1T<MA(CLOSE,120);VAR5T:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR6T:=SMA(VAR5T,5,1);VAR7T:=SMA(VAR6T,8,1);VAR8T:=CROSS(VAR6T,VAR7T) AND VAR7T<20;VAR9T:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR8T;VARA:=IF(CLOSE>1000,VAR8T,VAR9T);起步:=VAR3T AND VAR4T;逃遁:=VARA;XL1:=EMA(CLOSE,10)/100;XL2:=MA((XL1-REF(XL1,10))/REF(XL1,10),3)*100;XL3:=MA(XL2,3);XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1); DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) AND X2>X3,LOW,'←反弹'),COLOR0000FF;DRAWTEXT(IF(CROSS((VAR1T-LLV(VAR1T,4))/(HHV(VAR1T,4)-LLV(VAR1T,4)) *4*25,87.5) AND VAR1T<40,87,0) AND X2>X3,LOW,'←短买'),COLOR0000AA; DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2 +HIGH+LOW)/4,26)-(EMA(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE* 2+HIGH+LOW)/4,26),2)))*5.8,0.47),LOW,0) AND X2>X3,LOW,'←加仓'),COLORFF5ED8;DRAWTEXT(CROSS(X4,X5),HIGH+C*0.01,'←减'),COLORB4FF00; DRAWTEXT(FILTER((WZ9 AND DJ>250) OR X9 ,5),HIGH+C*0.02,'←跑'),COLORBCFF8B;STICKLINE(起步>0,HIGH,LOW,0.8,0),COLOR00FFFF;STICKLINE(起步>0,OPEN,CLOSE,5,0),COLOR00FFFF;DRAWTEXT(逃遁>0,HIGH,'●←逃'),COLOR7FFFD6;X1P:=(C+L+H)/3;BB13:=ATAN(EMA(X1P,13)-REF(EMA(X1P,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 ANDEMA(X1P,13)>REF(EMA(X1P,8),1),10),EMA8,'∠45上升'),COLORWHITE; VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW),'★大胆搏'),COLOR00FFFF;L23:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; L24:=(HIGH+LOW+CLOSE)/3;L25:=(L24-MA(L24,14))/(0.015*AVEDEV(L24,14));L26:=(L24-MA(L24,70))/(0.015*AVEDEV(L24,70));L27:=IF(L25>=150 AND L25<200 AND L26>=150 AND L26<200,10,0);L28:=IF(L25<=-150 AND L25>-200 AND L26<=-150 AND L26>-200,-10,L27); L29:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100);L30:=IF(L29<90,L29,100);L31:=IF(L23>0,L23,0);XL11:=(IF(L28>=200 AND L25>=150,15,IF(L26<=-200 ANDL25<=-150,-15,L28)))+60;XL22:=L31>48 AND XL11>60 AND L30<100;DRAWTEXT(XL22 AND COUNT(XL22,30)=1,L,'大笔买入'),COLORFF00FF; VAR3TD:=100-3*SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))* 100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42)) *100,20,1),15,1);VAR4TD:=100-3*SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*1 00,20,1)+2*SMA(SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*1 00,20,1),15,1);VAR2TD:=VAR3TD<REF(VAR4TD,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR2TD AND COUNT(VAR2TD,30)=1,L,'大资金进场'),COLORFF00FF;DRAWTEXT_FIX(1,0,0,0,'市盈率:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.08,0,0,CONST(DYNAINFO(39))),COLORYELLOW; DRAWTEXT_FIX(1,0.16,0,0,'每股收益(元):'),COLOR0080FF; DRAWNUMBER_FIX(1,0.29,0,0,CONST(FINANCE(33))),COLOR0080FF; DRAWTEXT_FIX(1,0.36,0,0,'莸利比例:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.46,0,0,CONST(WINNER(C )*100)),COLORYELLOW; DRAWTEXT_FIX(1,0,0.05,0,'总股本(万股):'),COLORMAGENTA; DRAWNUMBER_FIX(1,0.13,0.05,0,CONST(FINANCE(1)/10000)),COLORMAGE NTA;DRAWTEXT_FIX(1,0,0.1,0,'所属板块:'),COLORYELLOW;DRAWTEXT_FIX(1,0.1,0.1,0,HYBLOCK),COLOR0080FF;DRAWTEXT_FIX(1,0.21,0.1,0,DYBLOCK),COLOR0080FF;{量能饱和}SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOU NT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);DRAWTEXT_FIX(1,0.35,0.9,0,'量能饱和度:')COLOR00FFFF; DRAWNUMBER_FIX(1,0.48,0.9,0,CONST(SAT)),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);。

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

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

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

通达信极品分时主图指标公式

通达信极品分时主图指标公式

通达信极品分时主图指标公式LTA:=FINANCE(7)+300000000;GB:=2*IF(FINANCE(7)《100000000000,FLOOR(ABS ((FINANCE(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,LINETHICK3;STICKLINE(MACD《0 AND MACD》=REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0),COLOR4ABEFF,LINETHICK3;STICKLINE(MACD《0 AND MACD《REF(MACD,1),RCC*KK,MACD*4+RCC*KK,3,0),COLORBLUE,LINETHICK3;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+FVAR5*EEEE,10,0 ),COLORRED;洗盘:IF(FVAR5《REF(FVAR5,1),FVAR5,0),COLORGREEN,NODRAW;STICKLINE(FVAR5《REF(FVAR5,1),(Q2+Q3)/2,(Q2+Q3)/2+FVAR5*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》60 OR (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)))《3 AND 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,POINTDOT,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;。

通达信分时指标汇总(主图源码通达信

通达信分时指标汇总(主图源码通达信

通达信分时指标汇总(主图源码通达信通达信分时指标(虎主⼒散户)虎: (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,BARSCOUNT(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,BARSCOUNT(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;分时买卖图(通达信分时指标源码图中分时买卖图,能看懂分时均价线的那就跳过,对分时⾛势均价图没有⼀定的功⼒,最好不要⽤,此指标有未来慎⽤!欣赏下还⾏。

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

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

通达信分时主图一、先建引用指标FSYY,如果已有的话再里面加上下列几句,我是不断加的。

指数1:"999999$C";指数2:"399001$C";指数3:"399005$C";指数4:"399006$C";二、再建个引用指标FSYY1指数1:"FSYY.指数1#DAY";指数2:"FSYY.指数2#DAY";指数3:"FSYY.指数3#DAY";指数4:"FSYY.指数4#DAY";三、再建分时主图指标均价:SUM(C*V,BARSCOUNT(C))/SUM(V,BARSCOUNT(C)),COLORYELLOW; DRAWICON(FILTER(CROSS(C,DYNAINFO(3)*1.1-0.01),60),C,1);DRAWNUMBER(FILTER(CROSS(C,DYNAINFO(3)*1.1-0.01),60),C*0.98,TIME),COLORYELL OW;DRAWNUMBER(FILTER(CROSS(C,DYNAINFO(3)*1.1-0.01),60),C*0.96,C),COLORMAGENT A;DRAWNUMBER(ISLASTBAR,DYNAINFO(11),DYNAINFO(11)),COLORYELLOW; DRAWNUMBER(ISLASTBAR,DYNAINFO(7),DYNAINFO(7)),COLORWHITE; DRAWTEXT_FIX(1,0.0,0.75,0,'红绿箭头带未来,仅供参考'),COLORGREEN; DRAWTEXT_FIX(1,0.0,0.85,0,STRCAT('上证指数:',CON2STR(FSYY1.指数1,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.3,0.85,0,STRCAT('深圳指数:',CON2STR(FSYY1.指数2,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.0,0.95,0,STRCAT('中小指数:',CON2STR(FSYY1.指数3,2))),COLORYELLOW;DRAWTEXT_FIX(1,0.3,0.95,0,STRCAT('创业指数:',CON2STR(FSYY1.指数4,2))),COLORYELLOW;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:=L1+P1*7/8;支撑:=L1+P1*0.5/8;DRAWICON(LONGCROSS(支撑,C,2),C,1);DRAWICON(LONGCROSS(C,阻力,2),C,2);四、注意事项分时主图中的红绿箭头是即时动态的,会根据行情变化的,只能参考。

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

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

{分时主图--止赢止损}MA1:=EMA(C,30);MA2:=EMA(C,900);STICKLINE((MA1>MA2),MA1,MA2,0,0),COLOR1000FF;STICKLINE((MA1<MA2),MA1,MA2,0,0),COLOR00FF00;GJ:C,COLORWHITE;JJ:SUM(C*V,FROMOPEN)/SUM(V,FROMOPEN),COLORYELLOW,LINETHICK1.5;均量:=MA(V,5);量连增:=均量>REF(均量,1) AND REF(均量,1)>REF(均量,2);价连涨:=C>=REF(C,1) AND REF(C,1)>REF(C,2);价量线上:=C>JJ AND V>均量;倍量:=V>=REF(V,1)*2 ;价新高:=C>=HHV(C,FROMOPEN);量新高:=V>=HHV(V,FROMOPEN);限幅:=C/DYNAINFO(3)<=1.02;起爆:=FILTER(量连增AND 价连涨AND 价量线上AND 倍量AND 价新高AND 量新高AND 限幅,20);DRAWTEXT(起爆,C,'起爆'),COLOR00FFFF;DRAWICON(起爆,C,1);STICKLINE(起爆,C,JJ,1,0),COLOR1000FF;VV:=BARSSINCE(起爆);起爆价:=REF(C,VV);起爆时间:=REF(TIME/10000,VV);收益:=(DYNAINFO(7)-起爆价)/起爆价*100;DRAWICON(VV>=2,起爆价,13);DRAWTEXT_FIX(1,0,1,0,'起爆时间:'),COLOR00FFFF;DRAWNUMBER_FIX(1,0.06,1,0,CONST(起爆时间)),COLOR00FFFF;DRAWTEXT_FIX(1,0.12,1,0,'起爆价:'),COLOR00FFFF;DRAWNUMBER_FIX(1,0.17,1,0,CONST(起爆价)),COLOR00FFFF;DRAWTEXT_FIX(1,0.24,1,0,'收益:'),COLOR00FFFF;DRAWNUMBER_FIX(1,0.28.06,1,0,CONST(收益)),COLOR00FFFF;流通盘:CAPITAL*100/100000000,NODRAW;资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),NODRAW;资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),NODRAW;资金出入:=资金流入+资金流出,NODRAW;NN:=2400,NODRAW;HD:=HHV(资金出入,NN),NODRAW;LD:=LLV(资金出入,NN),NODRAW;最高:=CONST(HD),NODRAW;最低:=CONST(LD),NODRAW;HLMAX:=最高;HLMIN:=最低;HLMN1:=(HLMAX+HLMIN)/2;HLMN2:=HLMAX-HLMIN;HLMN3:=(100-0)/2*1.3;HLMN4:=(100-0)/1*1.3;中间价轴:=(50-HLMN3)*HLMN2/HLMN4+HLMN1;轴差:=最高-最低;DRAWBAND(资金出入,RGB(150,0,150),0,RGB(0,100,0)),NODRAW;资金流量:资金出入,NODRAW;资金比:资金出入/SUM(V,FROMOPEN)*100,NODRAW;资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2)),NODRAW;攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPE N,NODRAW;攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),NODRAW;攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),NODRAW;攻击流量:攻击量A+攻击量B,NODRAW;NOTEXT攻击线:攻击流量,NODRAW;攻击比:攻击流量/SUM(V,FROMOPEN)*100,COLORRED,NODRAW;资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)));{STICKLINE(资金流量A>0,资金流量A,0,1,0),COLOR0000FF;STICKLINE(资金流量B<0,资金流量B,0,1,0),COLORFF0000;}DRAWRECTREL(110,10,400,90,RGB(0,75,200));DRAWRECTREL(110,10,250,90,RGB(0,250,50));DRAWRECTREL(110,10,100+CONST(资金流量比*300/100),90,RGB(200,50,0)); DRAWTEXT_FIX(1,0.000,0.00,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORYELLOW;DRAWRECTREL(610,10,900,90,RGB(0,75,200));DRAWRECTREL(610,10,750,90,RGB(0,250,50));DRAWRECTREL(610,10,600+CONST(资金攻击度*300/100),90,RGB(175,50,0)); DRAWTEXT_FIX(1,0.500,0.00,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORYELLOW;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吸'),COLORWHITE;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★S抛'),COLORGREEN;{抛};{T+1止赢、止损}止赢:H1,COLORRED,LINETHICK6;DRAWTEXT(ISLASTBAR,H1,'当日止赢价位'),COLORRED,LINETHICK6;止损:阻力,COLORBLUE,LINETHICK6;DRAWTEXT(ISLASTBAR,阻力,'高位止损价位'),COLORBLUE,LINETHICK6;最后止损:支撑,COLORGREEN,LINETHICK6;DRAWTEXT(ISLASTBAR,支撑,'低位止损价位'),COLORGREEN,LINETHICK6;UR:=10;LR:=10;均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;。

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

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

相关文档
最新文档