【股票指标公式下载】-【通达信】分时操盘手(涨幅、大趋势、资金流、逃顶)
【股票指标公式下载】-【通达信】天地分时(操盘、持股、支撑)
【通达信】天地分时(操盘、持股、支撑)-指标公式源码STICKLINE(C>0,0,100,15,0),COLOR7C221C;VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);波:=VAR3;段:=VAR4;VAR5:=CROSS(VAR3,VAR4) AND VAR3<20;DRAWTEXT(FILTER(VAR5,10)=1,40,'底'),COLORRED;STICKLINE(FILTER(VAR5,10)=1,0,20,10,0),COLORRED;VAR9:=CROSS(VAR4,VAR3) AND VAR3>80;STICKLINE(FILTER(VAR9,5)=1,80,100,4,0),COLOR007700;STICKLINE(FILTER(VAR9,5)=1,80,100,3,0),COLOR009900;STICKLINE(FILTER(VAR9,5)=1,80,100,2,0),COLOR00BB00;STICKLINE(FILTER(VAR9,5)=1,80,100,1,0),COLOR00DD00;STICKLINE(FILTER(VAR9,5)=1,80,100,0.3,0),COLOR00FF00;DRAWTEXT(FILTER(VAR9,5)=1,70,'顶'),COLORGREEN;VAR8:=CROSS(VAR2,VAR3) AND VAR3>80 AND VAR3>VAR4;STICKLINE(VAR8,85,100,10,0),COLOR0099FF;100,COLORBBBBBB,LINETHICK3;0,LINETHICK3;AA:=LLV(LOW,36);BB:=HHV(HIGH,30);云:80,COLORWHITE;天:87.5,COLORBLUE,LINETHICK3;DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);飞:=DD,COLOR00FFFF,LINETHICK2;{IF(DD>REF(DD,1),DD,DRAWNULL),COLORRED,LINETHICK2;IF(DD<REF(DD,1) AND DD<87.5,DD,DRAWNULL),COLOR00FF00,LINETHICK2;} 海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);买B:=IF(CROSS(海,90) AND (飞<40),30,0),COLORYELLOW,LINETHICK2;地:10,COLORGREEN,LINETHICK3;买A:IF((COUNT((飞>REF(飞,1)),1)=1) AND (REF(飞,1)<REF(REF(飞,1),1)) AND (飞<地),40,0),COLORRED,LINETHICK2;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORDD00DD;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'全仓'),COLORRED;持股:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK,COLORRED;支撑:LLV(持股,3),LINETHICK,COLOR00FFFF;下跌:MA(持股,12),COLOR6B8E23,LINETHICK2;转向:=CROSS(持股,下跌) AND 下跌<30;MA1:=MA(持股,5);VAR18:=CROSS(MA1,持股) AND MA1>80;{STICKLINE(支撑<下跌,支撑,下跌,2,0),COLOR6B8E23;}DRAWBAND(支撑,RGB(238,0,6),下跌,RGB(256,250,60));{STICKLINE(持股>0,支撑,持股,2,0),COLORRED;}DRAWBAND(持股,RGB(238,0,6),支撑,RGB(256,150,60));STICKLINE(支撑>下跌,下跌,支撑,2,0),COLOR38B0DE;DRAWICON(转向,支撑*0.98,23);DRAWICON(VAR18,持股*1.03,15);E:=CROSS(83,RSI);STICKLINE( E,E,55,1,0),COLOR00FFFF;DRAWTEXT(E,50,' 逃顶'),COLORFF9966;VA1:=HHV(HIGH,9)-LLV(LOW,9);VA2:=HHV(HIGH,9)-CLOSE;VA3:=CLOSE-LLV(LOW,9);VA4:=VA2/VA1*100-70;VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VA6:=(CLOSE+HIGH+LOW)/3;VA7:=SMA(VA3/VA1*100,3,1);VA8:=LLV(LOW,34);VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);VARA:=IF(VA9>100,VA9-100,0);VARB:=HHV(HIGH,34);VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(IND EXC,1))/INDEXC,8,1)*100-25;VARF:=MA(VARE,3);VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);VAR10:=IF((VAR9>100),VAR9-100,0);VAR11:=HHV(HIGH,34);B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);DRAWKLINE(EMA(B1,5),EMA(B1,5),B1+1,B1);领先:EMA(B1,5),COLORCYAN;生命线:EMA(VARD,1),COLORYELLOW;V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5)>MA(V,40)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;VV:=V1 AND V2 AND V3 AND V4;A2:=EMA(A1,20);A3:=CROSS(A1,A2);A4:=A1<EMA(CLOSE,120);STICKLINE((A3 AND A4)OR(V1 AND V2 AND V3 ANDV4),B1*1.03,B1*1.120,1,0),COLORYELLOW;A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2* SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1) ,CIRCLEDOT ,COLORFF9900 ;安全位:=20;低位转强:IF(CROSS(A5,安全位),50,0),STICK,COLORMAGENTA,LINETHICK2;开始拉升:IF(CROSS(VARC,生命线) AND VARC>VARD AND VARC<55 AND C>O,50,0), COLORLIRED,POINTDOT;A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100);极地上涨:IF(A6,领先,0),COLORGREEN,LINETHICK2;STICKLINE(开始拉升>0,15,开始拉升*1.01,1,0),COLORBLUE;STICKLINE((开始拉升>0 AND 开始拉升<400) OR (极地上涨>0 AND 极地上涨<400) OR (低位转强>0 AND 低位转强<400) OR (低位转强>0),30,开始拉升,1,0),COLORRED;STICKLINE(开始拉升>0,15,开始拉升*0.6,3,0),COLORBLUE;STICKLINE(开始拉升>0,15,开始拉升*0.4,3,0),COLOR00FF00;STICKLINE(开始拉升>0,15,开始拉升*0.2,3,0),COLOR0099CC;STICKLINE(低位转强>0,15,低位转强*1.01,1,0),COLORMAGENTA;STICKLINE((低位转强>0)OR(极地上涨>0),15,低位转强*0.4,3,0),COLORYELLOW; STICKLINE(低位转强>0,15,低位转强*0.2,3,0),COLORFFCC66;STICKLINE(极地上涨>0,15,极地上涨*1.01,1,0),COLORYELLOW;【通达信】天地分时(操盘、持股、支撑)-指标公式效果图(文档来源:若水财经社区)。
通达信私募操盘手主图指标公式
私募操盘手自用指标,多用于60分钟、30分钟级别。
{民间操手专用经典主图均线指标1}A:=AMOUNT/V/100;VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);QQ:=EMA(((VARA/10)+EMA(A,13)),0);行情线:=MA(A,1);重心:=(C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382; 【操盘线】:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK4;【黄金线】:IF(重心>=【操盘线】,【操盘线】,DRAWNULL),COLORRED,LINETHICK2; 【空仓线】:IF(重心<【操盘线】,【操盘线】,DRAWNULL),COLORCYAN,LINETHICK2; DRAWTEXT(ISLASTBAR,【操盘线】,'【操盘线】'),COLORRED;{引:EMA(CLOSE,2),LINETHICK1,COLORMAGENTA;探:MA(CLOSE,5),LINETHICK1;}变:EMA(CLOSE,5),LINETHICK1,COLORYELLOW;金:IF(变>REF(变,1),变,DRAWNULL),COLORRED,LINETHICK1;空:IF(变<REF(变,1),变,DRAWNULL),COLORGREEN,LINETHICK1;DRAWTEXT(ISLASTBAR,变,'【雷达线】'),COLORRED;{顶底信号}DA:=(EMA(H,1)+EMA(L,1)+EMA(H,1)+EMA(H,1))/4;DB:=EMA(REF(HHV(H,25),1),2),COLORGREEN,LINETHICK1;{DRAWTEXT(CROSS(DB,DA),DB,'←险'),COLORGREEN,LINETHICK1;}DRAWTEXT(CROSS(DA,【操盘线】),【操盘线】,'B'),COLORWHITE,LINETHICK1;{涨跌停显示}涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);STICKLINE(涨停,O,C,1,0),COLORYELLOW;ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF<-9.9,O,C,1,0),COLORBLUE;{民间操手专用经典主图均线指标2}VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*1 00;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)* 100;VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW; S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20)))); VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) - LLV(LOW,20)))); VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) - LLV(LOW,5))),34));F:IF(CROSS(VAR200,MA(VAR300,5)),LOW * 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLORFF00FF;DRAWTEXT(CROSS(S,卖1),S,'←逃'),COLORWHITE,LINETHICK1;DRAWTEXT(CROSS(B,买1),B,'←准备'),COLORRED,LINETHICK1;{价:}{JC1:=(REF(C,3)+REF(C,5)+REF(C,7)+REF(C,8)+REF(C,13)+REF(C,21))/6;参考价1:SMA(JC1,5,1),CIRCLEDOT,COLORGREEN;IF(C>=参考价1,参考价1,DRAWNULL),CIRCLEDOT,COLOR0000FF;}PH:=TROUGHBARS(2,5,1);LL:=HHV(H,PH);TJ1:=LL=HIGH AND LL<REF(LL,1);{//=1}TS:=SUMBARS(TJ1,2);TJ:=PEAKBARS(2,5,1)=1 AND TS>=PH;DRAWICON(TJ,HIGH*1.01+0.02,2);警告灯:IF(TJ,HIGH*1.008,DRAWNULL),CROSSDOT,LINETHICK2,COLORCYAN;PL:=BARSLAST(TJ);支撑:IF(BARSLAST(TJ1),REF(LOW,BARSLAST(TJ1)),DRAWNULL),COLOREA91B5;压力:IF(BARSLAST(TJ),REF(HIGH,PL),DRAWNULL),COLORYELLOW;TJ_2:=LOW>REF(REF(LOW,TS),PL);DRAWTEXT(ISLASTBAR,压力,'压力'),COLORYELLOW;DRAWTEXT(ISLASTBAR,支撑,'支撑'),COLOREA91B5;{DRAWICON(COUNT(TJ_2,PL+1)=1,HIGH*1.005,2);{//向下的箭头表示出局点} {DRAWICON(BARSLAST(TJ1),REF(LOW*0.995,BARSLAST(TJ1)),1);};。
通达信波段抄底逃顶指标公式
通达信波段抄底逃顶指标公式【最新版】目录1.通达信波段抄底逃顶指标公式概述2.通达信波段抄底逃顶指标公式的组成3.通达信波段抄底逃顶指标公式的应用4.通达信波段抄底逃顶指标公式的优缺点正文一、通达信波段抄底逃顶指标公式概述通达信波段抄底逃顶指标公式是一种用于股票市场中的技术指标,旨在帮助投资者识别股票价格的底部和顶部,从而实现抄底和逃顶的操作。
该指标公式基于历史股价数据,通过一定的计算和分析方法,为投资者提供参考信息。
二、通达信波段抄底逃顶指标公式的组成通达信波段抄底逃顶指标公式主要由以下几个部分组成:1.操盘线:操盘线是一种基于收盘价的技术指标,用于判断股票价格的趋势。
操盘线的计算公式为:ma(close, 9),其中 close 表示收盘价,9 表示操盘线的周期。
2.今小昨和今小前:这两个指标用于判断股票价格是否处于下跌趋势。
今小昨的计算公式为:if(c < ref(o, 1), 1, 0),其中 c 表示当前收盘价,ref(o, 1) 表示前一日的开盘价;今小前的计算公式为:if(c < ref(o,2), 1, 0),其中 ref(o, 2) 表示前两日的开盘价。
3.波段指标:波段指标是一种基于收盘价和最低价的技术指标,用于判断股票价格的底部和顶部。
波段指标的计算公式为:(close - llv(low, 60)) / (hhv(high, 60) - llv(low, 60)) * 100,其中 close 表示收盘价,low 表示最低价,high 表示最高价,llv 表示最低价的最低值,hhv 表示最高价的最高值。
4.抄底逃顶线:抄底逃顶线是一种基于波段指标的技术指标,用于识别股票价格的底部和顶部。
抄底逃顶线的计算公式为:sma(波段指标,5,1)。
三、通达信波段抄底逃顶指标公式的应用通达信波段抄底逃顶指标公式的应用主要包括以下几个方面:1.判断股票价格的趋势:通过观察操盘线的变化,投资者可以判断股票价格是处于上升趋势、下降趋势还是盘整状态。
通达信指标公式源码很实用的抄底逃顶指标
通达信指标公式源码很实用的抄底逃顶指标这是一篇关于股票交易的文章,提供了一些实用的抄底逃顶指标。
以下是这些指标的具体内容:1.DRAWBAND指标:该指标由两条移动平均线组成,分别是60日和120日的收盘价移动平均线。
这两条线之间的区域被填充为红色。
另外,还有两条5日和10日的收盘价移动平均线,它们之间的区域被填充为绿色。
2.DRAWKLINE指标:该指标显示了股票的开盘价、最高价、最低价和收盘价。
这些数据可以帮助交易者了解股票的价格走势。
3.MA指标:该指标显示了不同时间段内的收盘价移动平均线。
具体来说,包括5日、10日、30日、60日、120日和240日的收盘价移动平均线。
这些线的颜色分别为白色、黄色、洋红色、绿色、浅洋红色和蓝色。
4.VOL指标:该指标显示了不同时间段内的成交量移动平均线。
具体来说,包括5日、10日和40日的成交量移动平均线。
这些线的颜色分别为白色、黄色和紫红色。
5.量托指标:该指标是一种量价分析指标,用于判断股票的买卖压力。
当5日成交量移动平均线大于等于40日成交量移动平均线,并且10日成交量移动平均线上穿40日成交量移动平均线,同时10日成交量移动平均线的前一天小于40日成交量移动平均线的前一天时,就会出现量托信号。
6.芙蓉出水指标:该指标用于判断股票的买入信号。
当60日收盘价移动平均线大于30日收盘价移动平均线,并且30日收盘价移动平均线等于10日收盘价移动平均线或者30日收盘价移动平均线大于10日收盘价移动平均线时,就会出现芙蓉出水信号。
同时,当股票的收盘价上穿60日收盘价移动平均线,并且成交量大于5日成交量移动平均线时,也会出现芙蓉出水信号。
7.ZJ和TM指标:这两个指标分别显示了资金和成交量的情况。
ZJ指标显示了资金的流入流出情况,TM指标显示了成交量的填充情况。
这些指标可以帮助交易者更好地了解股票的走势。
改写后的文章:根据一定的条件,我们可以判断出股市中的黄金柱和将军柱。
【股票指标公式下载】-【通达信】分时大单(成交、大额线、大线位)
【通达信】分时大单(成交、大额线、大线位)-指标公式源码TJ:=FILTER(C,239)>0,NODRAW;TJJ:=SUM(TJ,0),NODRAW;LTA:=FINANCE(7)+300000000;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;总:SUM(AMOUNT,T),NODRAW;VV3:=总/T;SS:=IF(CAPITAL>150000000,0.3,IF(CAPITAL>20000000,0.5,IF(CAPITAL>10000 000,0.8,IF(CAPITAL<200000,5,IF(CAPITAL<1000000,3,IF(CAPITAL<5000000,1.5,1)))))),NODRAW;VV5:=(REF(VV3,T-1)/CEILING(REF(VV3,T-1)/CAPITAL*10000+0.1))*SS,NODRAW;大额线:=IF(REF(VV3,T)=REF(VV3,T-1),VV5,REF(VV3,T)),NODRAW;大线位:大额线*100,COLOR00FFFF;初正1:=IF(T=1 AND DYNAINFO(4)>=DYNAINFO(3),总,0);初负1:=IF(T=1 AND DYNAINFO(4)<DYNAINFO(3),总,0);初正:=CONST(SUM(IF(初正1>=大额线 AND T=1,初正1,0),T)),NODRAW;初负:=CONST(SUM(IF(初负1>=大额线 AND T=1,初负1,0),T)),NODRAW;初正2:=CONST(SUM(IF(初正1<大额线 AND T=1,初正1,0),T)),NODRAW;初负2:=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,NODRAW;TT1:=BARSLAST(CROSS(T02,+1.5)),NODRAW;TT2:=BARSLAST(CROSS(-1.5,T02)),NODRAW;TT:=IF(T02=1.8,1,IF(T02=-1.8,-1,0));正V1:=IF(TT=1 OR (TT=0 AND TT1<TT2),成交,0),NODRAW;负V1:=IF(TT=-1 OR (TT=0 AND TT1>TT2),成交,0),NODRAW;正负0:=IF(成交!= 0 AND (正V1=0 AND 负V1=0),成交,0);正V0:=IF(正负0!= 0 AND REF(正V1,1)!= 0 ,正负0,0);负V0:=IF(正负0!= 0 AND REF(负V1,1)!= 0 ,正负0,0);正V11:=正V1+正V0;负V11:=负V1+负V0;正总1:=初正1+SUM(正V11,T),NODRAW,COLOR0000FF;负总1:=初负1+SUM(负V11,T),NODRAW,COLOR00FF00;正V:=IF(正V11>=大额线,正V11,0);负V:=IF(负V11>=大额线,负V11,0);正V2:=IF(正V11<大额线,正V11,0);负V2:=IF(负V11<大额线,负V11,0);大正总:=IF(TJJ<2,初正,0)+SUM(正V,T),NODRAW,COLOR0000FF;大负总:=IF(TJJ<2,初负,0)+SUM(负V,T),NODRAW,COLOR00FF00;大净_亿OR万:(大正总-大负总)/10000,NODRAW;差%:(大正总-大负总)/(大正总+大负总)*100,COLOR00FF00,NODRAW;正总2:=IF(TJJ<2,初正2,0)+SUM(正V2,T),NODRAW,COLOR0000FF;负总2:=IF(TJJ<2,初负2,0)+SUM(负V2,T),NODRAW,COLOR00FF00;小净_亿OR万:(正总2-负总2)/10000,NODRAW;小差%:(正总2-负总2)/(正总2+负总2)*100,COLOR00FF00,NODRAW; STICKLINE(TT=1 OR 正V0!= 0,0,AMOUNT*100,3,1),COLOR0000FF; STICKLINE(TT=-1 OR 负V0!= 0,0,AMOUNT*100,3,0),COLOR00FF00; STICKLINE(TT=0 AND TT1<TT2,0,AMOUNT*100,3,1),COLOR00FFFF; STICKLINE(TT=0 AND TT1>TT2,0,AMOUNT*100,3,0),COLORFF0000; STICKLINE(正V>大额线,0,AMOUNT*100,3,1),COLORFF00FF;STICKLINE(负V>大额线,0,AMOUNT*100,3,0),COLORFFFFFF;STICKLINE(T=1 AND 初正1>0,0,初正1*100,3,0),COLOR00FFFF; STICKLINE(T=1 AND 初负1>0,0,初负1*100,3,0),COLORFF0000; STICKLINE(T=1 AND 初正>0,0,初正*100,3,0),COLORFF00FF;STICKLINE(T=1 AND 初负>0,0,初负*100,3,0),COLORFFFFFF;((大正总+大负总)+(正总2+负总2))/10000,NODRAW;【通达信】分时大单(成交、大额线、大线位)-指标公式效果图(文档来源:若水财经社区)。
通达信分时买卖点主图指标公式
通达信分时买卖点主图指标公式{分时买卖点}AA1:=(vol/CLOSE)/3;AA2:=SUM((IF(((AA1>40) AND (CLOSE>(REF(CLOSE,1)))),AA1,0)),0);AA3:=SUM((IF(((AA1>40) AND (CLOSE<(REF(CLOSE,1)))),AA1,0)),0);AA4:=SUM((IF(((AA1<40) AND (CLOSE>(REF(CLOSE,1)))),AA1,0)),0);AA5:=SUM((IF(((AA1<40) AND (CLOSE<(REF(CLOSE,1)))),AA1,0)),0);AA6:=((AA2+AA3)+AA4)+AA5;AA7:=IF((BARstATUS=2),((100*AA2)/AA6),0);AA8:=((IF((BARSTATUS=2),((100*AA3)/AA6),0)));AA9:=((IF((BARSTATUS=2),((100*AA4)/AA6),0)));AA10:=((IF((BARSTATUS=2),((100*AA5)/AA6),0)));机买:=(AA2),LINETHICK0;机卖:=(AA3),LINETHICK0;散买:=(AA4);散卖:=(AA5);总买:=AA2+AA4;总卖:=AA3+AA5;机构买比:=机买/总买*0.1,LINETHICK0;机构卖比:=机卖/总卖*0.1,LINETHICK0;均价:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;TT:=BARSCOUNT(C);前高:=REF(HHV(H,TT),1);突破:=crOSS(C,REF(HHV(H,TT),1)){ AND HHVBARS(VOL,TT)=0} AND C/均价<1.09 AND TT>1 AND TT<240;DRAWTEXT(CROSS(C,REF(HHV(H,TT),1)) AND {HHVBARS(VOL,TT)=0 AND} C/均价<1.09 AND TT>=1 AND TT<240 ,前高, '←突'),COLORRED;主力扫盘:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,TT),1)){ AND HHVBARS(VOL,TT)=0};DRAWTEXT(主力扫盘,前高, '←扫盘'),COLORYELLOW;{已主力扫盘:=BArslAST(主力扫盘)<13;DRAWTEXT(BARSLAST(主力扫盘)<8,(DYNAINFO(3))*9.5/10 , '↖已扫'),COLORGREEN;}全仓买进:=CROSS(C,REF(HHV(H,TT),1)) AND HHVBARS(VOL,TT)=0 AND C/均价<1.09 AND TT>1 AND TT<240 AND BARSLAST(主力扫盘)>=21;DRAWTEXT(全仓买进 ,前高, '←全仓'),COLORCYAN;VAR1:=Ema(EMA(C,13),13);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;JJ:=DYNAINFO(11);P:=55;S:=8;M1:=3;能量:=(EMA(C,S)-EMA(C,P))*10;空头:=EMA(能量,M1);BTJ11:=(C-JJ)/JJ<-0.03;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ3:=CROSS(能量,空头) AND 能量<-0.3;BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);有庄:=BTJ811;DRAWTEXT(BTJ811,C*0.999,'←有庄'),COLORRED;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLORGREEN,LINETHICK1;支撑:L1+P1*0.5/8,COLORYELLOW,LINETHICK1;{DRAWICON(LONGCROSS(支撑,C,2),C,25);DRAWICON(LONGCROSS(C,阻力,2),C,27);}{资金流入:=SUM(IF(C>REF(C,1),C*V,0),FROMOPEN);资金流出:=-SUM(IF(C<REF(C,1),C*V,0),FROMOPEN);净资金:=(资金流入+资金流出)/10000;{DRAWTEXT_FIX(1,0.700,1-0.15,0,STRCAT(STRCAT('【净买】',CON2STR(净资金,1)),'万')),COLORRED;}KP:=DYNAINFO(4);ZX:=DYNAINFO(7);{分时量}{分时K}ZS:=DYNAINFO(3);ZG:=DYNAINFO(5);ZD:=DYNAINFO(6);OP:=500-(KP/ZS-1)*1200;CL:=500-(ZX/ZS-1)*1200;HI:=500-(ZG/ZS-1)*1200;LO:=500-(ZD/ZS-1)*1200;{N1:=IF(TIME2<125959,750,260);{360,860}N1:=IF(FROMOPEN>=120,250,750);Z1:=IF(ZX>=KP,255,0);Z2:=IF(ZX>=KP,0,255);Z3:=IF(ZX>=KP,0,255);XA_1:=MAX(DYNAINFO(3),DYNAINFO(5));XA_2:=MIN(DYNAINFO(3),DYNAINFO(6));XA_3:=XA_1-XA_2;XA_4:=XA_2+XA_3*7/8;XA_5:=XA_2+XA_3*0.5/8;DRAWTEXT(LONGCROSS(XA_5,CLOSE,2),CLOSE,'★买入'),COLORMAGENTA;DRAWICON(LONGCROSS(XA_5,CLOSE,2),CLOSE,25);DRAWTEXT(LONGCROSS(CLOSE,XA_4,2),CLOSE,'★卖出'),COLORFFCC00;DRAWICON(LONGCROSS(CLOSE,XA_4,2),CLOSE,24);XA_6:=DYNAINFO(4);XA_7:=DYNAINFO(5);XA_8:=DYNAINFO(6);XA_9:=DYNAINFO(11);XA_10:=CLOSE;XA_11:=BARSCOUNT(XA_10);XA_12:=SUM(VOL*CLOSE,0)/SUM(VOL,0);XA_13:=MA(XA_10,XA_11);XA_14:=XA_13+2*STD(XA_10,3);XA_15:=XA_13-2*STD(XA_10,3);DRAWICON(CROSS(XA_12,XA_13),XA_12,38);XA_16:=TIME>93000;XA_17:=XA_10/REF(CLOSE,1)>1.02;XA_18:=XA_10/REF(CLOSE,1)<0.98;XA_19:=(HHV(XA_10,XA_11)-LLV(XA_10,XA_11))/XA_10<0.05;XA_20:=SMA(VOL,30,1);XA_21:=(XA_20-LLV(LLV(XA_20,1),30))/(HHV(HHV(XA_20,1),30)-LLV(LLV(XA_20,1),30))>0.95;XA_22:=XA_17 OR XA_18;XA_23:=XA_22=0 AND XA_19 AND XA_21 AND CROSS(XA_12,XA_13);DRAWTEXT(FILTER(XA_23,10),XA_12,506),COLORYELLOW;XA_24:=XA_22=0 AND XA_19 AND XA_21 ANDCROSS(CLOSE,XA_12) AND CROSS(CLOSE,XA_13);DRAWTEXT(FILTER(XA_24,10),XA_12*0.99,507),COLORRED;MA5:MA.MA1#DAY(5,10,20),NODRAW;DRAWTEXT_FIX(1,0.880,1-0.20,0,STRCAT(STRCAT('MA5:??',CON2STR(MA5,2)),'')),COLORW HITE;MA10:MA.MA2#DAY(5,10,20),NODRAW;DRAWTEXT_FIX(1,0.880,1-0.15,0,STRCAT(STRCAT('MA10:',CON2STR(MA10,2)),'')),COLORYE LLOW;MA20:MA.MA3#DAY(5,10,20),NODRAW;DRAWTEXT_FIX(1,0.880,1-0.10,0,STRCAT(STRCAT('MA20:',CON2STR(MA20,2)),'')),COLORM AGENTA;MA60:MA.MA4#DAY(5,10,20),NODRAW;DRAWTEXT_FIX(1,0.880,1-0.05,0,STRCAT(STRCAT('MA60:',CON2STR(MA60,2)),'')),COLORGR EEN;攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FRO MOPEN)/FROMOPEN;攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;攻击流量:=攻击量A+攻击量B,COLORSTICK;攻击比:=攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;资金攻击度:=IF(攻击比>=0,(攻击比+50),100-Abs((攻击比-50)));资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;资金出入:=资金流入+资金流出,COLORSTICK;资金比:=资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));DRAWTEXT_FIX(1,0.200,0.87,0,STRCAT(STRCAT('资金流量比',CON2STR(资金流量比,2)),'%买')),COLORCYAN;DRAWTEXT_FIX(1,0.000,0.87,0,STRCAT(STRCAT('资金攻击度',CON2STR(资金攻击度,2)),' %买')),COLORCYAN;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);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.000,1.00,0,AAA1),COLORRED;DRAWTEXT_FIX(DD1=1,0.150,1.00,0,AAA2),COLORGREEN;DRAWTEXT_FIX(DD1=1,0.300,1.00,0,AAA3),COLORRED;DRAWTEXT_FIX(DD1=1,0.450,1.00,0,AAA4),COLORGREEN;DRAWTEXT_FIX(DD1=1,0.600,1.00,0,AAA0),LINETHICK5,COL ORYELLOW;DRAWTEXT_FIX(DD1=1,0.750,1.00,0,AAA5),LINETHICK5,COL ORCYAN;。
通达信专用逃顶指标公式
通达信专用逃顶指标公式首先是移动平均线(MA)。
移动平均线是统计一段时间内收盘价的平均值,可以衡量价格走势的长期趋势。
常用的移动平均线周期包括5日、10日、20日、30日、60日和120日。
股价向上突破移动平均线时,说明股价处于上升趋势;股价向下跌破移动平均线时,说明股价处于下降趋势。
其次是指数平滑移动平均线(EMA)。
指数平滑移动平均线在计算中更注重最近的价格数据,对股价的变动更加敏感。
EMA的计算方法是给每个价格数据赋予权重,根据不同的权重比例来计算平滑移动平均线。
EMA具有更快的反应速度和更强的短期趋势捕捉能力。
再次是相对强弱指数(RSI)。
相对强弱指数是一种常用的超买超卖指标,用于判断市场的买入力量和卖出力量。
RSI的计算方法是根据一定周期内的涨跌幅度来计算,一般周期为14天。
当RSI超过70时,说明市场处于超买状态,可能出现回调;当RSI低于30时,说明市场处于超卖状态,可能出现反弹。
最后是顶部运动指标(TMT)。
顶部运动指标是通达信独有的指标,用于判断股票等金融产品的顶部风险。
顶部运动指标的计算方法是结合MA、EMA和RSI等指标,通过对多个指标的综合分析判断股价是否到达顶部,进而决定是否逃离市场。
1.计算移动平均线(MA)。
通达信系统默认提供了5日、10日、20日、30日、60日和120日的移动平均线,可以根据不同的需要选择相应的周期。
2.计算指数平滑移动平均线(EMA)。
通达信系统默认提供了12日、26日和9日的指数平滑移动平均线。
EMA的计算公式如下:EMA(N)=(2×收盘价+(N-1)×前一日EMA)/(N+1)其中,N表示周期数,一般情况下取12、26或93.计算相对强弱指数(RSI)。
通达信系统默认使用14日的相对强弱指数。
RSI的计算公式如下:RSI(n)=100×(1-1/(1+RS))RS=n天内收盘价上涨幅度的平均值/n天内收盘价下跌幅度的平均值4.根据给定的规则判断顶部运动指标(TMT)是否达到顶部。
通达信极品分时主图指标公式
通达信极品分时主图指标公式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);A5:=SUM((IF(((A1<40) 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);DRAWTEXT_FIX(1,0.000,1-0.05,0,STRCAT(STRCAT('【机构买盘】',CON2STR(机构买盘,2)),'万')),COLORRED;DRAWTEXT_FIX(1,0.250,1-0.05,0,STRCAT(STRCAT('【机构卖盘】',CON2STR(机构卖盘,2)),'万')),COLOR00FF00;DRAWTEXT_FIX(1,0.500,1-0.05,0,STRCAT(STRCAT('【散户买盘】',CON2STR(散户买盘,2)),'万')),COLORRED;DRAWTEXT_FIX(1,0.745,1-0.05,0,STRCAT(STRCAT('【散户卖盘】',CON2STR(散户卖盘,2)),'万')),COLOR00FF00;突破:=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(CURRBARSCOUNT=1,0,0,0,DYBLOCK),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.08,0,GNBLOCK),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.14,0,FGBLOCK),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((DCLOS E*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; DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),C,17);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);DRAWICON(LONGCROSS(C,阻力,2),C,6);VARJ1:=EMA(EMA(CLOSE,13),13);控盘2:=(VARJ1-REF(VARJ1,1))/REF(VARJ1,1)*1000;STJ01:=控盘2<REF(控盘2,1) AND 控盘2>0.5;STJ02:=控盘2>0;BTJ2:=控盘2>REF(控盘2,1) AND 控盘2<-0.2;BTJ22:=控盘2>REF(控盘2,1) AND 控盘2<0 ;JJ:=DYNAINFO(11);P:=55;S:=8;M1:=3;能量:=(EMA(CLOSE,S)-EMA(C,P))*10;空头:=EMA(能量,M1),COLOR00FF00;BTJ1:=(CLOSE-JJ)/JJ<-0.005;BTJ11:=(CLOSE-JJ)/JJ<-0.03;BTJ12:=COUNT(JJ>=REF(JJ,1),5)>=4 AND (CLOSE-JJ)/JJ<0.005;STJ1:=(C-JJ)/JJ>0.005;BTJ3:=CROSS(能量,空头) AND 能量<-0.3;BTJ32:=CROSS(能量,空头) AND 能量<-0.1;STJ31:=CROSS(空头,能量);STJ32:=CROSS(空头,能量) AND 能量>1.618;A:=8;BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,A);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,A);BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,A);时长:=IF(HOUR>=9 AND HOUR<14 ,1,0);{9点至 14点}捡钱:=BTJ811 AND TIME>15 AND 时长;DRAWICON(捡钱,C,27);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;昨高:='FSKY.ZH#DAY';昨低:='FSKY.ZL#DAY';。
通达信神奇分时主图可以精确指标公式
通达信,神奇分时,主图,指标公式E5:=EMA(C,5);E13:=EMA(C,13);DRAWNUMBER(ISLASTBAR ,C,C),COLORMAGENTA; DRAWBAND(E5,RGB(200,0,0),E13,RGB(0,200,0));A1:EMA((EMA(C,1)+EMA(C,3)+EMA(C,5))/3,3),COLOR1010FF;A2:EMA((EMA(C,3)+EMA(C,5)+EMA( C,7))/3,3),COLOR1020FF;A3:EMA((EMA(C,5)+EMA(C,7)+EMA( C,9))/3,3),COLOR1030FF;A4:EMA((EMA(C,7)+EMA(C,9)+EMA( C,11))/3,3),COLOR1040FF;A5:EMA((EMA(C,9)+EMA(C,11)+EMA( C,13))/3,3),COLOR1050FF; A6:EMA((EMA(C,11)+EMA(C,13)+EMA( C,15))/3,3),COLOR1060FF; A7:EMA((EMA(C,13)+EMA(C,15)+EMA( C,17))/3,3),COLOR1070FF; A8:EMA((EMA(C,15)+EMA(C,17)+EMA( C,19))/3,3),COLOR1080FF; A9:EMA((EMA(C,17)+EMA(C,19)+EMA( C,21))/3,3),COLOR1080EF; A10:EMA((EMA(C,19)+EMA(C,21)+EMA( C,23))/3,3),COLOR10C0FF; A11:EMA((EMA(C,21)+EMA(C,23)+EMA( C,25))/3,3),COLOR10E0FF; A15:=A-(A1-A*0.997),COLORFF1010;A16:A-(A2-A),COLORFF2010;A17:A-(A3-A),COLORFF3010;A18:A-(A4-A),COLORFF4010;A19:A-(A5-A),COLORFF5010;A20:A-(A6-A),COLORFF6010;A21:A-(A7-A),COLORFF7010;A22:A-(A8-A),COLORFF8010;A23:A-(A9-A),COLORFF9010;A24:A-(A10-A),COLORFFC010;A25:A-(A11-A*0.997),COLORFFE010;FD:=(H-L)/3;OPEN1:=O>FD*2+L;OPEN3:=O<FD+L;OPEN2:=NOT(OPEN1 OR OPEN3);CLOSE1:=C>FD*2+L;CLOSE3:=C<FD+L;CLOSE2:=NOT(CLOSE1 OR CLOSE3);DFZD:=CLOSE1 OR (OPEN3 AND CLOSE2);WQS1:=OPEN2 AND CLOSE2;KFZD:=NOT(DFZD OR WQS1);ZD:=(H+L)/2;QSXS:=ZD>REF(H,1);QSXX:=ZD<REF(L,1);WQS2:=NOT(QSXS OR QSXX);ZTDL:=V>REF(V,1)*1.1;FTDL:=V<REF(V,1)*0.7;ZTDL2:=ZTDL AND FTDL<1;FTDL2:=FTDL AND ZTDL<1;MFI1:=(H-L)/(V/10000);MFI2:=(H-L)/(V/1000000);ZMFI1:=MFI1>REF(MFI1,1);ZMFI2:=MFI2>REF(MFI2,1);ZMFI:=ZMFI1 OR ZMFI2;FMFI:=NOT(ZMFI);LD:=ZTDL2 AND ZMFI;ST:=FTDL2 AND FMFI;WZ:=FTDL2 AND ZMFI;QF:=ZTDL2 AND FMFI;S11:=DFZD AND QSXS ;S22:=KFZD AND QSXX ;S33:=DFZD AND QSXX;S44:=KFZD AND QSXS;S55:=DFZD AND WQS2;S66:=KFZD AND WQS2;S77:=WQS1 AND (QSXS OR QSXX OR WQS2);DRAWKLINE(H,O,L,C);CC:=HHV(IF(TIME<103000,C,0),0);VV:=HHV(IF(TIME<103000,V,0),0);ZF:=CC/DYNAINFO(3)<1.05;XH:=C>=CC AND V>=VV AND TIME>=103000 AND DYNAINFO(7)=C;GL:=FILTER(XH,100);STICKLINE(GL,DYNAINFO(7)*0.98,DYNAINFO(7)*0.999,10,0) COLOR0000FF; DRAWTEXT(GL,DYNAINFO(7)*0.99,'突破'),COLORYELLOW,LINETHICK1;TBX:=REF(EMA(C,14),1);A1X:=(EMA(C,10)-TBX)/TBX*100;DFX:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL); KFX:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);最新:C,LINETHICK1,COLORFFFF00;MA30:=EMA(CLOSE,30);H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLORFFFF00,DOTLINE;支撑:L1+P1*0.5/8,COLOR0000FF,DOTLINE;现价:=CLOSE,COLORWHITE,LINETHICK1;日时转换:=IF(PERIOD=5,120,240);QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;VAR11:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;VAR22:=(EMA(VOL,10)+EMA(VOL,32))/2;VAR33:=(VAR11+VAR22)/2;VAR44:=EMA(VAR33,30);VAR55:=EMA(VAR33,60);VAR66:=EVERY(VAR11>REF(VAR11,1),5) AND EVERY(VAR44>REF(VAR44,1),5); DRAWBAND(VAR11,RGB(150,30,30),EMA(VAR11,60),RGB(0,110,30));NXX:EMA(C,120),COLOR0080FF,LINETHICK3;DRAWTEXT(BARSTATUS=2,NXX,'牛熊线'),COLORFFFFFF;牵引线:VAR11,COLOR4B4B4B,DOTLINE;强弱线:EMA(VAR11,日时转换),POINTDOT,COLOR0080FF;趋势关注:IF(CROSS(VAR11,EMA(VAR11,60)) AND VAR66,1,0),NODRAW,COLORRED; 量价关注:IF(CROSS(VAR33,VAR55) AND VAR66,1,0),NODRAW,COLORWHITE;冲击量:IF(VAR33>VAR55 AND VAR66,1,0),NODRAW,COLORYELLOW;强势区:IF(VAR11>强弱线,1,DRAWNULL),NODRAW,COLORRED;止损区:IF(VAR11<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;STICKLINE(QZS>VAR11,QZS,VAR11,0,0),COLORMAGENTA;STICKLINE(冲击量=1,QZS,VAR11,0,0),COLORYELLOW;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWKLINE(H,O,L,C);DRAWICON(LONGCROSS(支撑,现价,2),L,1),COLORYELLOW;{吸}DRAWICON(LONGCROSS(现价,阻力,2),H,2),COLORGREEN;{抛};DRAWICON(趋势关注=1,EMA(VAR11,60),13);DRAWTEXT(量价关注=1,EMA(VAR11,60),'★'),COLORWHITE;均价:SUM(V*C,0)/SUM(V,0),COLORFF00FF;DRAWTEXT(CURRBARSCOUNT=4,均价,'均'),COLORFFFFFF,LINETHICK1;IF(C>=REF(C,1),C,DRAWNULL),LINETHICK1,COLORRED;AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));BB:=BETWEEN(C/AA,C+H,C-H);DRAWICON(ISLASTBAR AND C>REF(C,1),C,1);DRAWICON(ISLASTBAR AND C<REF(C,1),C,2);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*BGT YU)))/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*B GTYU)))));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; DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),C,17);VARJ1:=EMA(EMA(CLOSE,13),13);控盘2:=(VARJ1-REF(VARJ1,1))/REF(VARJ1,1)*1000;STJ01:=控盘2<REF(控盘2,1) AND 控盘2>0.5;STJ02:=控盘2>0;BTJ2:=控盘2>REF(控盘2,1) AND 控盘2<-0.2;BTJ22:=控盘2>REF(控盘2,1) AND 控盘2<0 ;JJ:=DYNAINFO(11);P:=55;S:=8;M1:=3;能量:=(EMA(CLOSE,S)-EMA(C,P))*10;空头:=EMA(能量,M1),COLOR00FF00;BTJ1:=(CLOSE-JJ)/JJ<-0.005;BTJ11:=(CLOSE-JJ)/JJ<-0.03;BTJ12:=COUNT(JJ>=REF(JJ,1),5)>=4 AND (CLOSE-JJ)/JJ<0.005;STJ1:=(C-JJ)/JJ>0.005;BTJ3:=CROSS(能量,空头) AND 能量<-0.3;BTJ32:=CROSS(能量,空头) AND 能量<-0.1;STJ31:=CROSS(空头,能量);STJ32:=CROSS(空头,能量) AND 能量>1.618;A:=8;BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,A);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,A);BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,A);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),(S UM(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);时间:=TIME=100000;N:=BARSLAST(时间);常数:CONST(IF(N=0,C,REF(C,N))),COLORFFFFFF,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),COLORFFFFFF; CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))),COLOR888888; CONST(IF(N,HHV(L,0),REF(HHV(L,0),N))),COLOR888888; 期货培训,股票培训:/。
【股票指标公式下载】-【通达信】主力动向(分时、MACD定位顶底、MACD趋势)
【股票指标公式下载】-【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)-指标公式源码{-------------------------通达信新分时源码深度优化版--------------------}A:=CURRBARSCOUNT;A1:=DAY!=REF(DAY,1);A2:=BARSLAST(A1)+1;A3:=MA(C,A2);A4:=SUM(AMO,A2)/SUM(VOL,A2)/100;A5:=IF(CAPITAL>0,A4,A3);均价线:=IF(A<=CONST(A2),A5,DRAWNULL);分钟有效周期:=IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,DRAW NULL))));分时价:=TFILT(CLOSE,CURRBARSCOUNT,00,CURRBARSCOUNT,00);分时判断:=IF(分时价=DRAWNULL,1,IF(分钟有效周期=DRAWNULL,DRAWNULL,1)); {-----------------------------由MACD定位顶底-------------------------------}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);KX:=BARSSINCE(CLOSE);{←⾸次开盘价距⾦的天数}HHN:=CONST(HHV(DIFF,KX));HLN:=CONST(LLV(DEA,KX));RC1:=CONST((HHN+HLN)/2);SS:=((HHN-HLN)/200);MACD底部:=(-100*SS+RC1)+-(-100*SS+RC1),COLOR669999;MACD顶部:=(100*SS+RC1)+-(-100*SS+RC1),COLORFF0033;MACD中轴:=0+-(-100*SS+RC1);DIFF修正:=DIFF+-(-100*SS+RC1),COLOR008080;DEA修正:=DEA+-(-100*SS+RC1),COLOR00FF00;MACD修正:=2*(DIFF修正-DEA修正)+MACD中轴,COLOR0000BB,NODRAW;MACD超跌:=CONST(LLV(MACD修正,KX));MACD超跌线:=IF(MACD超跌{----------------------利⽤MACD趋势进⾏精确顶底判断------------------------}顶部:=MACD顶部+-MACD超跌线;天际:=顶部*0.809;中轴:=MACD中轴+-MACD超跌线;海⾯:=顶部*0.191;底部:=MACD底部;{------------------------传统KDJ指标结合MACD优化---------------------------}RSVA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*顶部;{采⽤21⽇⽉线优化}K:SMA(RSVA,3,1),COLORFFFFFF,NODRAW;D:SMA(K,3,1),COLOR00FFFF,NODRAW;原J值参数:=3*K-2*D;JD:=IF(原J值参数<底部,底部,原J值参数);{J值底部钝化处理}J:IF(JD>顶部,顶部,JD),COLORFF00FF,NODRAW;{底部钝化处理后再进⾏顶部钝化处理}{---------------------------MACD多空量能判断-------------------------------}MACD多头:DIFF修正+-MACD超跌线,COLOR339999;空头:DEA修正+-MACD超跌线,COLOR00FF00;量能柱:2*(MACD多头-空头)+中轴,COLOR0000BB,NODRAW;超前DEA:=(EMA(MACD多头,7));超前MACD:=2*(MACD多头-超前DEA)+中轴;{-----------------------------------⼤盘动向-------------------------------}VAR1⼤盘:=LLV(LOW,13);VAR2⼤盘:=HHV(HIGH,13);VAR3⼤盘:=(SMA((CLOSE-VAR1⼤盘)/(VAR2⼤盘-VAR1⼤盘)*顶部,5,1))-顶部/2;VAR4⼤盘:=SMA((VAR2⼤盘-CLOSE)/(VAR2⼤盘-VAR1⼤盘)*顶部,5,1)-顶部/2; ⼤盘散户:=IF(VAR4⼤盘<底部,底部,VAR4⼤盘),COLOR408000;⼤盘主⼒:=IF(VAR3⼤盘<底部,底部,VAR3⼤盘),COLOR330088;{---------------------------------密集成本突破-----------------------------}最⾼获利参数:=顶部/100;VAR1C:=(COST(89)-COST(11))*最⾼获利参数;VAR2C:=(COST(99.9)-COST(1))*最⾼获利参数;单峰:=((1-VAR1C/VAR2C))*顶部;低密:=((COST(90)-COST(60))/VAR2C)*顶部;⾼密:=((COST(40)-COST(1))/VAR2C)*顶部;赢利:= (SMA(WINNER(AMOUNT/VOL/99),2,1))*顶部;活跃度:顶部-顶部/(1+EXPMA(HSL,21)),COLOR774455;{←CYF公众追涨热情指标}70%成本集中度:=IF(VAR1C>顶部,顶部,VAR1C),COLORFFFFFF;90%成本集中度:=IF(VAR2C>顶部,顶部,VAR2C),COLORFF0000;套牢筹码上升:=IF((单峰-赢利)>底部,(单峰-赢利),底部);个股散户:=IF(套牢筹码上升>顶部,顶部,套牢筹码上升),COLOR408000;散户:IF(个股散户=DRAWNULL,DRAWNULL,个股散户),COLOR408000;获利筹码上升:=IF((赢利-单峰)>底部,(赢利-单峰),底部);个股主⼒:=IF(获利筹码上升>顶部,顶部,获利筹码上升),COLOR330088;主⼒:IF(个股主⼒=DRAWNULL,DRAWNULL,个股主⼒),COLOR330088;{--------------------换⼿率,五⽇换⼿率辅助判断个股活跃度-------------------}换⼿:SUM(VOL,1)/CAPITAL*100,COLOR666666,NODRAW;⑤⽇换:SUM(VOL,5)/CAPITAL*100,COLOR999999,NODRAW;{----------------------密集成本突破指标筹码峰画线--------------------------}⾦⾊背景修边1:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,底部,3.05,0),COLOR003333;⾦⾊背景修边2:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,中轴,3.05,0),COLOR003333;⾦⾊背景补充:DRAWBAND(顶部,RGB(51,51,0),中轴,RGB(51,51,0));⾦⾊背景:DRAWBAND(顶部,RGB(51,51,0),底部,RGB(128,128,128));追涨热度峰紫⾊:DRAWBAND(活跃度,RGB(66,52,81),底部,RGB(204,0,0));⾼密峰墨蓝⾊:=DRAWBAND(⾼密,RGB(0,0,51),底部,RGB(0,0,255));低密峰纯蓝⾊:=DRAWBAND(低密,RGB(0,0,102),底部,RGB(0,0,255));90%成本峰:DRAWBAND(90%成本集中度,RGB(0,0,153),底部,RGB(0,0,153)); 70%成本峰:DRAWBAND(70%成本集中度,RGB(0,128,0),底部,RGB(255,255,255));散户峰绿⾊:DRAWBAND(散户,RGB(0,64,0),底部,RGB(204,0,0));主⼒峰红⾊:DRAWBAND(主⼒,RGB(102,26,51),底部,RGB(0,0,255));MACD多空趋势:DRAWBAND(MACD多头,RGB(204,51,51),空头,RGB(0,179,0)); MACD多头重画:DRAWBAND(MACD多头,RGB(153,153,51),MACD多头,RGB(153,153,51));MACD空头重画:DRAWBAND(空头,RGB(0,204,0),空头,RGB(0,204,0));{--------若⽔论坛‘131488’会员提供的通达信■新宝塔线■-----原码-----------}VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARD:=CLOSEVARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); 三平底翻⾦:=(REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1))AND VAR1;主⼒启动线:=MA(V,5),COLORFFFFFF;主⼒洗盘线:=MA(V,35),COLOR00FFFF;资⾦异动线:=MA(V,135),COLORFF0000;{----------------------------买卖参考--------------------------------------}出击:=(CROSS(主⼒启动线,资⾦异动线) OR ((主⼒洗盘线 > 资⾦异动线) AND CROSS(主⼒启动线,主⼒洗盘线))),COLORYELLOW;启动:=(主⼒启动线>REF(主⼒启动线,1) AND (CROSS(VOL,主⼒启动线) AND (REF(VOL,1)线,2)))),COLOR45AAEE;成⽴:=三平底翻⾦ AND (出击 OR 启动);买⼊提⽰:=IF(成⽴=1,海⾯*0.5,0) AND 分时判断=1;{------------------------顶部线,天际线,海⾯线,底部线重画-------------------}顶部线:DRAWBAND(顶部,RGB(51,0,255),顶部,RGB(51,0,255));天际线:DRAWBAND(天际,RGB(128,64,64),天际,RGB(128,64,64));海⾯线:DRAWBAND(海⾯,RGB(0,153,153),海⾯,RGB(0,153,153));{------------------------超前MACD多空量能柱--------------------------------}超前MACD红柱1:STICKLINE(超前MACD>=中轴,超前MACD,中轴,1.50,0),COLOR226688;超前MACD红柱2:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.95,0),COLOR4488BB;超前MACD红柱3:STICKLINE(超前MACD>=中轴,超前MACD,中轴,0.31,0),COLOR55AADD;超前MACD兰柱1:STICKLINE(超前MACD<=中轴,超前MACD,中轴,1.50,0),COLOR006600;超前MACD兰柱2:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.95,0),COLOR007700;超前MACD兰柱3:STICKLINE(超前MACD<=中轴,超前MACD,中轴,0.31,0),COLOR008800;{--------------------------MACD多空量能柱----------------------------------}MACD红柱1:STICKLINE(量能柱>=中轴,量能柱,中轴,1.5,0),COLOR000077; MACD红柱2:STICKLINE(量能柱>=中轴,量能柱,中轴,1.1,0),COLOR000088; MACD红柱3:STICKLINE(量能柱>=中轴,量能柱,中轴,0.6,0),COLOR000099; MACD红柱4:STICKLINE(量能柱>=中轴,量能柱,中轴,0.15,0),COLOR0000AA; MACD兰柱1:STICKLINE(量能柱<=中轴,量能柱,中轴,1.5,0),COLORAA6633;MACD兰柱2:STICKLINE(量能柱<=中轴,量能柱,中轴,1.1,0),COLORBB7744; MACD兰柱3:STICKLINE(量能柱<=中轴,量能柱,中轴,0.6,0),COLORCC8855; MACD兰柱4:STICKLINE(量能柱<=中轴,量能柱,中轴,0.15,0),COLORDD9966; {---------中轴线重画及顶部线,天际线,海⾯线,底部线,多空线⽂字说明-----------}中轴线:DRAWBAND(中轴,RGB(128,128,255),中轴,RGB(128,128,255));顶部线⽂字:DRAWTEXT(CURRBARSCOUNT=1,顶部*0.98,' 顶部线'),COLORFF0033;天际线⽂字:DRAWTEXT(CURRBARSCOUNT=1,天际*0.98,' 天际线'),COLOR404080;海⾯线⽂字:DRAWTEXT(CURRBARSCOUNT=1,海⾯,' 海⾯线'),COLOR999900; 底部线⽂字:DRAWTEXT(CURRBARSCOUNT=1,底部,' 底部线'),COLOR669999; 中轴线⽂字:DRAWTEXT(CURRBARSCOUNT=1,中轴,' 多空线'),COLORFF8080; {-------------------------------传统KDJ指标线重画--------------------------}D线重画:DRAWBAND(D,RGB(255,255,0),D*0.998,RGB(255,255,0));K线重画:DRAWBAND(K,RGB(255,255,255),K,RGB(255,255,255));J线重画:DRAWBAND(J,RGB(255,0,255),J,RGB(255,0,255));【通达信】主⼒动向(分时、MACD定位顶底、MACD趋势)-指标公式效果图(⽂档来源:若⽔财经社区)。
通达信极品分时主图指标公式
通达信极品分时主图指标公式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;。
趋势线大底大顶通达信指标公式源码
趋势线大底大顶通达信指标公式源码(一)趋势线大底大顶通达信指标公式
{趋势线大底大顶通达信指标公式,源码}
A1:=EMA(C,7);
A4:EMA(EMA(EMA(EMA(C,13),13),13),13);
HIGHV:=HHV(A4,160);
LOWV:=LLV(A4,160);
A2:=(A4-LOWV)/(HIGHV-LOWV)*100;
A3:=(A4-LOWV)/(HIGHV-LOWV)*100;
A5:=EMA(A3,2);
A6:=(A2-A3)/A3*100;
A7:=SMA(A6,2,1);
A8:=A6-A7;
{趋势线大底大顶}通达信指标公式:A8,COLORRED,LINETHICK3;
(二)趋势线大底大顶通达信指标公式解析
1、趋势线大底大顶通达信指标公式是一种以趋势底部和顶部的价格趋势计算当前价格趋势的技术指标,以有效区分趋势走势的高低。
2、该指标常用于衡量趋势的强弱,能够为投资者提供有效的信息,以便做长期投资。
3、该指标由两部分组成:趋势线和大底大顶线。
趋势线是一条考虑
过去13根K线的指数平滑移动平均线(EMA),而趋势大底大顶线是一条
衡量当前价格与上一周期趋势的百分比指标,用以衡量一段时间内趋势的
变化。
4、当趋势线出现双底、双顶或拐点时,表明趋势的转变,如果当前
价格与上一周期趋势比值非常高,即市场走势较强,可以考虑买入;反之,如果当前价格与上一周期趋势比值较低,即市场走势较弱,可以考虑卖出。
(三)趋势线大底大顶通达信指标公式的使用方法。
【股票指标公式下载】-【通达信】逃顶抄底(高抛、低吸、强弱分界、主力进场)
【通达信】逃顶抄底(高抛、低吸、强弱分界、主力进场)-指标公式源码MAV:=(2*C+H+L)/4;VAR6:=LLV(LOW,34);VAR7:=HHV(HIGH,34);SK:= EMA((MAV-VAR6)/(VAR7-VAR6)*100,13);SD: EMA(0.667*REF(SK,1)+0.333*SK,2);高抛:80, POINTDOT;低吸:20, POINTDOT;强弱分界:50, POINTDOT;DRAWTEXT(CROSS(SD,16),低吸,'●买入↑'),COLORYELLOW,LINETHICK3; DRAWTEXT(CROSS(85,SD),高抛,'●出逃↓'),COLORF5F5DC,LINETHICK3;TR :=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),1 4);HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),14);DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);PDI:=DMP*100/TR;MDI:=DMM*100/TR;0, ;GG:=PDI-MDI;IF(GG<0,GG,0), LINETHICK2;IF(GG>0,GG,0),COLORF00FF0, LINETHICK2;VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLORRED;洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLORGREEN;【通达信】逃顶抄底(高抛、低吸、强弱分界、主力进场)-指标公式效果图(文档来源:若水财经社区)。
【指标公式源码下载】通达信主力资金分时指标公式【大盘资金进场、准备现金、见顶清仓】
通达信主力资金分时指标公式【大盘资金进场、准备现金、见顶清仓】V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主力撤: IF(V4<=0,V4,0),COLORGREEN;主力进: IF(V4>=0,V4,0);V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场:IF(VB>=0,VB,0),COLORYELLOW;大盘资金撤走:IF(VB<=0,VB,0),COLORRED;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/( HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线: EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金: STICKLINE(趋势线<=13,0,20,5,0),COLORCC9900;AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);DRAWTEXT (AA,30,'准备现金'),COLORCC9900;买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),COLOR0099FF;BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ; DRAWTEXT (BB,60,'买入股票'),COLOR0099FF;见顶清仓: STICKLINE(趋势线>=90 AND V12,0,30,5,0),COLORRED;CC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);。
通达信经典分时主图 源码指标公式
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;。
通达信波段抄底逃顶指标公式
通达信波段抄底逃顶指标公式摘要:1.通达信波段抄底逃顶指标公式概述2.通达信资金抄底波段指标公式a.公式构成b.公式含义c.公式应用3.通达信超级波段抄底指标公式a.公式构成b.公式含义c.公式应用4.总结正文:一、通达信波段抄底逃顶指标公式概述通达信波段抄底逃顶指标公式是一种利用股票价格的波动情况,来判断是否适合抄底或逃顶的指标。
通过这个指标,投资者可以更好地判断市场趋势,以便做出更为明智的投资决策。
二、通达信资金抄底波段指标公式1.公式构成通达信资金抄底波段指标公式主要由以下几个部分构成:- 操盘线:ma(close,9),表示收盘价的9 日均线。
- 今小昨:if(c<ref(o,1),and,f<0,1,0),表示当前收盘价低于前一日开盘价,且资金流出。
- 今小前:if(c<ref(o,2),and,f<0,1,0),表示当前收盘价低于前两日开盘价,且资金流出。
- a1:表示资金流入。
2.公式含义通达信资金抄底波段指标公式通过分析资金流入和流出情况,以及股价与均线的关系,来判断是否适合抄底。
当资金持续流出,且股价接近操盘线时,可能存在抄底机会。
3.公式应用在实际操作中,投资者可以结合其他指标和市场情况,来判断是否适合抄底。
当通达信资金抄底波段指标公式发出抄底信号时,投资者可以适当增加仓位,以获取较低的成本。
三、通达信超级波段抄底指标公式1.公式构成通达信超级波段抄底指标公式主要由以下几个部分构成:- x1:表示前一日收盘价低于前两日收盘价,且当日收盘价高于前一日收盘价。
- x2:表示当日收盘价低于前一日收盘价,且前一日收盘价低于前两日收盘价。
- x3:表示x1 或x2 成立。
- x4:表示前一日收盘价高于前两日收盘价,且当日收盘价低于前一日收盘价。
2.公式含义通达信超级波段抄底指标公式通过分析股价的波动情况,来判断是否适合抄底。
当x3 成立时,可能存在抄底机会;当x4 成立时,可能需要逃顶。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】分时操盘手(涨幅、大趋势、资金流、逃顶)-指标公式源码TA:=IF(TIME>093000 AND TIME<094000 ,1,0);TT:=IF(TIME>=093000 AND TIME<=093300 ,1,0);T0:=IF(TIME>093600 AND TIME<095900 ,1,0);T1:=IF(TIME>093300 AND TIME<145900 ,1,0);T2:=IF(TIME>095500 AND TIME<145900 ,1,0);T3:=IF(TIME>142500 AND TIME<145900 ,1,0);T4:=IF(TIME>111000 AND TIME<145900 ,1,0);T5:=IF(TIME>110000 AND TIME<145900 ,1,0);T6:=IF(TIME>104200 AND TIME<145900 ,1,0);T7:=IF(TIME>103000 AND TIME<131000 ,1,0);T8:=IF(TIME>130000 AND TIME<155900 ,1,0);T9:=IF(TIME>095500 AND TIME<131000 ,1,0);T10:=IF(TIME>130500 AND TIME<143500 ,1,0);T11:=IF(TIME>094500 AND TIME<102500 ,1,0);T12:=IF(TIME>095000 AND TIME<140000 ,1,0);T13:=IF(TIME>093000 AND TIME<143500 ,1,0);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);VARY1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));SD:=(C>60 AND C<100,200,100);SF:=IF(C<40 AND C<=60,300,SD);SG:=IF(C>10 AND C<=28,1000,IF(C>29 AND C<40,500,SF));SH:=IF(C<5,5000,IF(C>=5 AND C<=10,2000,SG));SJ:=IF(C>=6000,5,SH);SK:=IF(C>1000 AND C<6000,25,SJ);MACD:=(DIF-DEA)*SK,COLORSTICK;STICKLINE((MACD>=0),0,MACD,3,1),COLOR0000FF;STICKLINE(((MACD>=0) AND (MACD < REF(MACD,1))),0,MACD,3,0),COLORCYAN; STICKLINE((MACD<0),0,MACD,3,0),COLORFFFF00;STICKLINE(((MACD<0) AND (MACD > REF(MACD,1))),0,MACD,3,1),COLORRED; JS1:=100000*(CLOSE-REF(CLOSE,5))/(5*REF(CLOSE,5));JS2:=IF(JS1>110,110,JS1);JS:=IF(JS2<-20,-20,JS2);RSV2:=(CLOSE-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100;K2A:=SMA(RSV2,33,1);K2:=IF(TT=1,REF(K2A,1),K2A);D2:=SMA(K2,3,1);OK:=K2;RSV:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;K89A:=SMA(RSV,33,1);K89:=IF(TT=1,REF(K89A,1),K89A);RSVC2:=(CLOSE-LLV(LOW,140))/(HHV(HIGH,120)-LLV(LOW,120))*100;KC2:=SMA(RSVC2,46,1);DC2:=SMA(KC2,46,1);大趋势:DC2,LINETHICK1,CIRCLEDOT{POINTDOT},COLORYELLOW{COLORC6C600}; TYPP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYPP-MA(TYPP,14))/(0.015*AVEDEV(TYPP,14));GG:=(C-REF(C,210))/REF(C,210)*55;WG:=BARSSINCE(V>0)+1;GGJX:=((SUM(C*V,WG)/SUM(V,WG)+WG*0)/REF((SUM(C*V,WG)/SUM(V,WG)+WG*0), 0)-1)*55;DPX:=0.3*(3*SMA((C-LLV(L,105))/(HHV(H,105)-LLV(L,105)),5,1)-2*SMA(SMA ((C-LLV(L,105))/(HHV(H,105)-LLV(L,105)),5,1),3,1))*0.9,,COLOR5AFF99; GBC:=CROSS(GG,GGJX);GBK:=-CROSS(GGJX,GG);GBD:=SUM(GBC,0)+SUM(GBK,0);涨幅:=DYNAINFO(14)*100;STS:=FINANCE(32)>=0 AND FINANCE(34)>0 AND DYNAINFO(7)>0 ;CK:=IF(DYNAINFO(8)>0 AND STS=0 AND 涨幅<4.91 OR DYNAINFO(8)>0 AND STS=1 AND 涨幅<9.91,1,0);CCT:=DYNAINFO(8);PPP:= FILTER(CCT=0,500) ;DRAWTEXT(PPP,45,'★今日该股票未开盘,不能分析★'),COLORFF00FF;TDSA:=5+3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA( (C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);TDSB:=IF(TA=1 AND TDSA=105,70,TDSA);WH:=TDSB;WE:=FILTER(WH>90,16);TDCJ:=(7*SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*30,4,1)-3 *SMA(SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*30,4,1),3, 1),2,1)),COLORFF9933;WL:=TDCJ;VM1:=(C*2+H+L)/4*10;VM2:=EMA(VM1,13)-EMA(VM1,34);VM3:=EMA(VM2,5);VM4:=2*(VM2-VM3)*5.5;A:=EMA(WINNER(CLOSE),10);B:=EMA(WINNER(CLOSE),34);BA:=100*(CLOSE-REF(CLOSE,12))/REF(CLOSE,12);BD:=MA(ROC,6)*100;VAR67:=(LOW+HIGH+CLOSE)/3;VAR80:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,3,0);VAR81:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR83:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR82:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR84:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR85:=ZIG(3,51)>REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR87:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VARF:=100-3*SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20 ,1)+2*SMA(SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1 ),15,1);VAR9A:=100-3*SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20 ,1)+2*SMA(SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1) ,15,1);VAR86:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR88:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VARX1:=(MA(CLOSE,80)-MA(CLOSE,13)/3);VARX2:=( MA((CLOSE-VARX1)/VARX1,1));NN1:=VAR80;VARM1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;VARM2:=SMA(VARM1,3,1);NN2:=(VAR81+VAR83+VAR85+VAR87);MM1:=(VAR82+VAR84+VAR86+VAR88);MM2:= IF(MM1>0,-500,0);MM:= IF(C>1000,MM2*100,MM2),COLORRED,LINETHICK3;CT:=SUM(MM,0) AND T1=1;{统计}CL1:=EMA(IF(WH<15 AND WL<5 AND OK<55 AND L<=LLV(L,27),SMA(ABS(L-REF(L,1)),27,1)/SMA(MAX(L-REF(L,1),0),27,1),0),3) *100;CL2:=IF(CL1>80,80,CL1);CHH1:=SUM(WE OR CL2,0);CHH:=IF(CT=0 AND CHH1>110,110,CHH1);五指山:TDSB,COLORFF00FF;VAS1:=(2*C+H+L)/4;VAS2:=LLV(L,34);VAS3:=HHV(H,34);AAD:=MA(CLOSE,32);BAD:=MA(CLOSE,12);DDD:=CROSS(B,A);RSVR:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR4:=VAR2/VAR1*100-70;VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR8:=LLV(LOW,34);VAR11:=HHV(HIGH,34);VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);万泉河:VAR12,COLORGREEN;{STICKLINE(VAR12-VAR13>0,VAR12,VAR13,10,0),COLORRED;STICKLINE(VAR12-VAR13<0,VAR12,VAR13,10,0),COLORGREEN;}RSV1:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;K1:=SMA(RSV1,8,1);D1:=SMA(K1,8,1);资金流:D1,,NODRAW;STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1) ,EMA(D1,3) ,REF(EMA(D1,3),1) ,11 ,0),COLORRED;STICKLINE(EMA(D1,3)<REF(EMA(D1,3),1) ,EMA(D1,3) ,REF(EMA(D1,3),1) ,11 ,0 ),COLORCYAN;KA1:=SMA(RSVR,8,1);DA1:=SMA(KA1,8,1);TDFZ:=DA1;波浪:=(7*SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*30,4,1)-3*SMA(S MA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*30,4,1),3,1)-SMA(SM A(SMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*30,4,1),3,1),2,1 )),COLORFF9933;VARM3:=SMA(VARM2,3,1);VARM4:=SMA(VARM3,3,1);AAC:=MA(C,1);BBB:=MA(AAD,2);VAR51:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;BBC:=SMA(VAR51,7,1);SMX:=EMA(C,65)/EMA(REF(C,65),65)*10;VAR68:=(VAR67-MA(VAR67,14))/(0.015*AVEDEV(VAR67,14));WR30:=100*(HHV(HIGH,79)-CLOSE)/(HHV(HIGH,79)-LLV(LOW,79));VAR21:=(2*CLOSE+HIGH+LOW+OPEN)/5;VAR22:=LLV(LOW,34);VAR23:=HHV(HIGH,34);CC:=EMA(C,11)/EMA(REF(C,11),11)*10;W1:=WL/10;W2:=REF(WL,1)/10;SK1:=EMA((VAR21-VAR22)/(VAR23-VAR22)*100,13);WR31:=IF(WR30=0 OR SK1>=90 OR VAR68>-250,100,WR30);VAR1Z:=REF(CLOSE,1);VAR2Z:=SMA(MAX(CLOSE-VAR1Z,0),7,1)/SMA(ABS(CLOSE-VAR1Z),7,1)*100; VAR3Z:=SMA(MAX(CLOSE-VAR1Z,0),13,1)/SMA(ABS(CLOSE-VAR1Z),13,1)*100; VAR4Z:=SMA(MAX(VAR1Z-CLOSE,0),7,1)/SMA(ABS(CLOSE-VAR1Z),7,1)*100; VAR5Z:=SMA(MAX(VAR1Z-CLOSE,0),13,1)/SMA(ABS(CLOSE-VAR1Z),13,1)*100; VAR6Z:=BARSCOUNT(CLOSE);小舟:IF(CK=1 AND OK<30 AND NN1>0 ORNN2>0 ,35,DRAWNULL)*2,STICK,COLORMAGENTA,LINETHICK2;{LH1:=EMA(IF(CT=0 AND T2=1 AND WH<35 AND WL<6 AND OK<65 AND L<=LLV(L,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1),0),3) *80;LH2:=IF(CT=1,EMA(IF(T2=1 AND WH<35 AND WL<6 AND OK<55 AND ZJL<-5 AND L<= LLV(L,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1),0),3) *80,LH1 );}LH2:=EMA(IF(WL<35 AND T4=1 AND L<=LLV(L,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1),0),3) *30,STICK,COLORYELLOW,LINETHICK2;LH:=IF(LH2>80,80,LH2);LHH:=SUM(LH,0);浪花:LH,STICK,COLORYELLOW,LINETHICK2;VAR2A:=VARF<REF(VAR9A,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); NC1:=CT=0 AND CROSS(WL,TDFZ);NC2:=WH>25 AND WH<55 AND WL > MA(REF(WL,5),5) AND CT=0 AND T2=1 AND 涨幅<7;VARSA1:=REF(CLOSE,1);VARSA2:=SMA(MAX(CLOSE-VARSA1,0),7,1)/SMA(ABS(CLOSE-VARSA1),7,1)*100; VARSA3:=SMA(MAX(CLOSE-VARSA1,0),13,1)/SMA(ABS(CLOSE-VARSA1),13,1)*100 ;VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));KZ:=CT=0 AND VARC=1;CH:=SUM(KZ,0) AND T1=1;{统计}P1:= FILTER(KZ=1,16) ;DRAWTEXT(FILTER(KZ=1,16)=1,55,'←看涨!'),COLORMAGENTA,LINETHICK2; STICKLINE(FILTER(KZ=1,16)=1,0,75,1,0),LINETHICK1,COLORMAGENTA; STICKLINE(FILTER(P1=1,45)=1,0,30,10,0),LINETHICK1,COLORMAGENTA; DRAWICON(FILTER(KZ=1,240)=1,8,5);EE:=EMA(C,150)/EMA(REF(C,150),150)*10;HH:=IF(EE>REF(EE,1),1,0);HS1:=CROSS(EE,SMX) AND EE>CC AND SMX>CC AND HH=1;HS:=SUM(HS1,0) AND T1=1;{统计}DRAWTEXT(CT=0 AND T1=1 AND VAR2A AND COUNT(VAR2A,132)=1,30,'←挖金矿?'),LINETHICK1,COLOR00FF33;STICKLINE(CT=0 AND T1=1 AND VAR2A ANDCOUNT(VAR2A,132)=1,0,85,1,0),COLOR00FF33;DRAWICON(CT=0 AND T1=1 AND VAR2A AND COUNT(VAR2A,132)=1,-8,1);VAR31:=MA(VOL,5)>MA(VOL,60);DDS1:= T1=1 AND CROSS(CC+0.01,SMX) AND WH<70 OR WH<70 AND T1=1 AND CROSS(CC+0.01,EE);DDS2:= T1=1 AND CROSS(EE+0.01,SMX-0.01) AND WH<70;DRAWTEXT(FILTER(DDS1=1 OR DDS2=1,32)=1,30,'←挖金矿?'),LINETHICK1,COLOR00FF33;STICKLINE(FILTER(DDS1=1 ORDDS2=1,32)=1,0,85,1,0),COLOR00FF33,LINETHICK2;DRAWICON(FILTER(DDS1=1 OR DDS2=1,32)=1,-8,1);BM:=EMA(C,2);SM:=EMA(SLOPE(C,21)*20+C,42);BUA:=JS<=-10 AND WL<5 AND ZJL<0 AND CCT>0 AND T1=1 AND CT=0;BUB:=JS<0 AND WL<0 AND CCT>0 AND WH<=0 AND T3=1 AND CT=0;SEL:=CROSS(SM,BM) AND WH>90;JDD:=EMA(CLOSE,144), COLORBLUE,LINETHICK2;VAR2C:=MA(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5, 1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1), 3,1),5)*100;VAR2D:=5;VAR2E:=CROSS(VAR2C,VAR2D);DX:=IF(VAR2E AND CLOSE<JDD,1,0),LINETHICK0,COLORYELLOW;DCT:=SUM(DX,0);VARM6:=CC>SMX AND CC>EE AND CROSS(VARM3,VARM4) AND VARM3<30 AND T1=1 AND CCT >0 AND 涨幅<8;VARM7:=WH>70 AND T4=1 AND CROSS(SMX,CC) AND 涨幅<9.9 OR WH>80 AND T4=1 AND CROSS(EE,SMX) OR WH>80 AND T4=1 AND CROSS(VARM4,VARM3) AND VARM3>80 AND CCT>0 AND 涨幅<9.9;VM5:=IF(VM4>=0,VM4,0),COLORFF00FF;VM6:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);VM7:=EMA(VM6,5);VM8:=(VM7-REF(VM7,3))/REF(VM7,3)*100;VARSB1:=SMA(MAX(VARSA1-CLOSE,0),7,1)/SMA(ABS(CLOSE-VARSA1),7,1)*100; VARSB2:=SMA(MAX(VARSA1-CLOSE,0),13,1)/SMA(ABS(CLOSE-VARSA1),13,1)*100 ;VARSB3:=BARSCOUNT(CLOSE);DESY:=100*(HHV(HIGH,33)-CLOSE)/(HHV(HIGH,33)-LLV(LOW,33))*100; HYJD:=(T4=1 AND DA1<35 AND VARSA2<25 AND VARSA3<30 AND VARSB3>35)*65, STICK,COLORYELLOW;CA:=CT=1 AND T13=1 AND 涨幅<9.8;DDC:='★提醒:后市看跌↓当心';DRAWTEXT(FILTER(CA=1,360)=1,50,DDC),COLORGREEN;DRAWTEXT(FILTER(CA=1,360)=1,90,' 逃?'),LINETHICK1,COLORGREEN; DRAWICON(FILTER(CA=1,360)=1,90,15);STICKLINE(FILTER(CA=1,360)=1,0,80,1,0),LINETHICK1,COLORYELLOW;波峰:= (CH=0 AND VARSB1<25 AND VARSB2<30 AND VARSB3>35)*100,COLORGREEN;OUT:=波峰;SSV1:=(2*CLOSE+HIGH+LOW)/4;SSV2:=LLV(LOW,34);SSV3:=HHV(HIGH,34);SSVA:=EMA((SSV1-SSV2)/(SSV3-SSV2)*100,12);SSVB:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);TDBV:=CROSS(SSVB,SSVA) AND SSVA<30 AND WH<5 AND WL<25 AND CK=1; VARV1:=(C*2+H+L)/4*10;VARV2:=EMA(VARV1,13)-EMA(VARV1,34);VARV3:=EMA(VARV2,5);VARV4:=2*(VARV2-VARV3)*5.5;VARR1:= IF(VARV4<=0,VARV4,0),COLORBLUE;VARR2:=IF(VARV4>=0,VARV4,0),COLORFF00FF;VARV5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8; VARV6:=EMA(3*VARV5-2*SMA(VARV5,18,1),5);VARV7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10; VARV8:=(INDEXC*2+INDEXH+INDEXL)/4;VARV9:=EMA(VARV8,13)-EMA(VARV8,34);VARVA:=EMA(VARV9,3);VARVB:=(VARV9-VARVA)/2;VARR3:=IF(VARVB>=0,VARVB,0),COLORRED;VARR4:=IF(VARVB<=0,VARVB,0),COLORGREEN;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);QSX:=WH;VARH:=(QSX-REF(QSX,1))/REF(QSX,1)*100;AA:=(QSX<=13) AND FILTER((QSX<=13),15);TDE:=FILTER(QSX>90,16);TDAA:=IF( TT=1 AND TDE=1,REF(TDE,1),TDE);FFJ:=TDAA;TDC:=GBD=0 AND CT=1 AND T9=1 AND TDAA AND ZJL>70 AND 涨幅<9.9; TDA:=STICKLINE(FILTER( QSX<=13 AND VARH>13,60)=1,0,100,1,0);TDS:=IF(TT=1 AND TDE=1,REF(TDA,1),TDA);TDW:=TDS;SWEE:= STICKLINE(FILTER(VARM7=1,16)=1,70,90,1,0);DUP:=ZJL>80 AND WH>=99.4 AND WL>=89 AND CK=1 AND CCT>0 AND T1=1 AND 涨幅<8;BBAA:=WL<15 AND WH<25 AND TDS=1 AND T1=1 AND CT=0 AND TDW;BBA:= DA1<35 AND CROSS(WH,WL) AND (QSX<=13 AND VARH>13) ANDFILTER((QSX<=13 AND VARH>13),10) ;DD2:=CROSS(QSX,WL) AND WH<10;DD5:= WL<15 AND WH<20 AND CROSS(ABS(GG),ABS(GGJX*1.15)) ANDABS(GG)>ABS(GGJX*1.15);VBB:=WH<5 AND WL<0 AND OK<35 AND T3=1 {AND VM7<13 AND VM8>13} AND CT=1 AND 涨幅<7;SSW:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2* SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1), COLOR00FFFF;{BUC:=IF(CT=0 AND T2=1 AND WH<50 AND WL<15 AND JS<=-10 ANDCROSS(SSW,1),1,0);}BUD:=IF(CT=1 AND T2=1 AND WH<=0 AND WL<0 AND JS<=-20 ANDCROSS(SSW,1),1,0);BUE:=JS<=-20 AND WH>=85 AND WL<=10 AND OK<50 AND T2=1;TDBA:=T2=1 AND CK=1 AND LHH=0 AND ZJL>78 AND OK<90 AND WH>95 AND CCT>0 AND 涨幅<9.9;TDBB:=JS>=110 AND WH>=110 AND WL>90 AND OK>=94 AND CCT>0 AND 涨幅<9.9; TDP:=ZJL>79 AND LHH=0 AND OK<90 AND IF(A>0.90 ANDCLOSE<MA(CLOSE,5),1,0)*1 AND 涨幅<9.9;TDQ:=JS>=110 AND WH>=110 AND OK>60 AND CCT>0 AND T1=1 AND 涨幅<9.9; TDJ:=JS>=110 AND WH>95 AND WL>95 AND OK>95 AND ZJL>59 AND T1=1 AND CCT>0 AND 涨幅<9.9;TDF:=JS>=100 AND WH>=100 AND WL>=85 AND OK>=65 AND 涨幅<9.9;TDB:=TDAA AND JS>=100 AND WH>100 AND OK>85 AND T1=1 AND CCT>0 AND 涨幅<9.9;界:STICKLINE(CK=1 AND WH>=95 AND WH>REF(WH,1),87,94,2,0),COLORYELLOW; DRAWICON(FILTER(TDBA =1,8)=1,97,2);DRAWICON(FILTER(TDBB =1,8)=1,97,2);DRAWICON(FILTER(TDC =1,8)=1,97,2);DRAWICON(FILTER(TDJ =1,8)=1,97,2);DRAWICON(FILTER(TDB =1,8)=1,97,2);DRAWICON(FILTER(TDP =1,64)=1,97,2);DRAWICON(FILTER(TDQ=1,8)=1,97,2);DRAWICON(FILTER(TDF=1,8)=1,97,2);DRAWICON(TDBV,-8,1);DRAWICON(FILTER( BBAA=1,16)=1,-8,1);DRAWICON(FILTER(DD5=1 AND CT=0 AND T7=1 AND 涨幅<7,64)=1,-8,1);{DRAWICON(FILTER(VBB=1,8)=1,-8,1);DRAWICON(BUA,-8,1);DRAWICON(FILTER(BUE=1,16)=1,-8,1);}{STICKLINE(FILTER(BUA=1,16)=1,0,65,20,0),COLORRED,LINETHICK1;}STICKLINE(FILTER(BUB=1,32)=1,0,65,1,0),LINETHICK1,COLORYELLOW; STICKLINE(FILTER(BUE=1,16)=1,0,65,1,0),LINETHICK3,COLORYELLOW; DRAWTEXT(FILTER(OUT=100 ,32)=1,93,' ←逃顶'),LINETHICK1,COLORYELLOW; DRAWTEXT(WH>80 AND OK>76 AND T1=1 AND CROSS(K89,K2),93,'逃顶'),LINETHICK1,COLORYELLOW;警戒:85,POINTDOT,COLORGREEN;{-20,POINTDOT,COLORGREEN;};【通达信】分时操盘手(涨幅、大趋势、资金流、逃顶)-指标公式效果图(文档来源:若水财经社区)。