通达信指标——大盘预测 (主图)
通达信指标公式源码日线级别地量,大盘个股K线同框主图指标
通达信指标公式源码⽇线级别地量,⼤盘个股K线同框主图指标{妞妞地量⽇线看盘主图}N:=350;Y1:=C>O OR (C=O AND C>=REF(C,1)); Y2:=CL1:=IF(Y1,VOL,0);L2:=IF(Y2,VOL,9999999999);T1:=CONST(FINDHIGHBARS(L1,0,N,1)); T2:=CONST(FINDHIGHBARS(L1,0,N,2)); T3:=CONST(FINDHIGHBARS(L1,0,N,3)); T4:=CONST(FINDHIGHBARS(L1,0,N,4)); T5:=CONST(FINDHIGHBARS(L1,0,N,5)); T6:=CONST(FINDHIGHBARS(L1,0,N,6)); T7:=CONST(FINDHIGHBARS(L1,0,N,7)); T8:=CONST(FINDHIGHBARS(L1,0,N,8)); T9:=CONST(FINDHIGHBARS(L1,0,N,9)); T10:=CONST(FINDHIGHBARS(L1,0,N,10)); D1:=CONST(FINDLOWBARS(L2,0,N,1));D2:=CONST(FINDLOWBARS(L2,0,N,2));D3:=CONST(FINDLOWBARS(L2,0,N,3));D4:=CONST(FINDLOWBARS(L2,0,N,4));D5:=CONST(FINDLOWBARS(L2,0,N,5));D6:=CONST(FINDLOWBARS(L2,0,N,6));D7:=CONST(FINDLOWBARS(L2,0,N,7));D8:=CONST(FINDLOWBARS(L2,0,N,8));D9:=CONST(FINDLOWBARS(L2,0,N,9));D10:=CONST(FINDLOWBARS(L2,0,N,10));DRAWLINE(CURRBARSCOUNT=T1+1,C,ISLASTBAR,REF(C,T1),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T2+1,C,ISLASTBAR,REF(C,T2),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T3+1,C,ISLASTBAR,REF(C,T3),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T4+1 ,C,ISLASTBAR,REF(C,T4),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T5+1 ,C,ISLASTBAR,REF(C,T5),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T6+1 ,C,ISLASTBAR,REF(C,T6),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T7+1 ,C,ISLASTBAR,REF(C,T7),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T8+1 ,C,ISLASTBAR,REF(C,T8),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T9+1 ,C,ISLASTBAR,REF(C,T9),0),COLORMAG ENTA;DRAWLINE(CURRBARSCOUNT=T10+1 ,C,ISLASTBAR,REF(C,T10),0),COLORM AGENTA;E:DRAWLINE(CURRBARSCOUNT=D1+1 ,C,ISLASTBAR,REF(C,D1),0),COLORG REEN;E1:DRAWLINE(CURRBARSCOUNT=D2+1,C,ISLASTBAR,REF(C,D2),0),COLORG REEN;E2:DRAWLINE(CURRBARSCOUNT=D3+1,C,ISLASTBAR,REF(C,D3),0),COLORG REEN;E3:DRAWLINE(CURRBARSCOUNT=D4+1 ,C,ISLASTBAR,REF(C,D4),0),COLOR GREEN;E4:DRAWLINE(CURRBARSCOUNT=D5+1,C,ISLASTBAR,REF(C,D5),0),COLORG REEN;E5:DRAWLINE(CURRBARSCOUNT=D6+1 ,C,ISLASTBAR,REF(C,D6),0),COLOR GREEN;E6:DRAWLINE(CURRBARSCOUNT=D7+1,C,ISLASTBAR,REF(C,D7),0),COLORG REEN;E7:DRAWLINE(CURRBARSCOUNT=D8+1,C,ISLASTBAR,REF(C,D8),0),COLORG REEN;E8:DRAWLINE(CURRBARSCOUNT=D9+1 ,C,ISLASTBAR,REF(C,D9),0),COLOR GREEN;E9:DRAWLINE(CURRBARSCOUNT=D10+1 ,C,ISLASTBAR,REF(C,D10),0),COLO RGREEN;HH:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(E,E1),E2),E3),E4),E5),E6 ),E7),E8),E9);T:=BARSLAST(C=CONST(HH));DRAWLINE(CURRBARSCOUNT=CONST(T)+1,C,ISLASTBAR,REF(C,T),0),COLO RYELLOW,LINETHICK2;将⼤盘和个股的K线⾛势变通后,放在同⼀个主图⾥,当K线出现重合⼀般会有变盘时间窗⼝。
通达信买卖趋势主图指标公式
通达信买卖趋势主图指标公式通达信买卖趋势主图指标是一种用于分析股票走势的技术指标,可以帮助投资者判断市场的买卖趋势和进行买卖决策。
其主要由以下几个指标组成:1.均线指标:均线是股价的平均值,主要用于观察股价的长期和短期走势。
常见的均线有5日均线、10日均线、20日均线和60日均线等,可以通过画线将这些均线在股票图上表现出来。
2.成交量指标:成交量指标是衡量股票交易活跃度的指标。
通常用柱状图显示,柱状图的高度表示交易量的大小。
成交量指标可以帮助判断市场的买卖力量和价格趋势的可靠性。
3.相对力度指标(RSI):RSI是衡量买卖力量的相对强度指标。
它的计算公式为RSI=(14日上升总幅度/14日上升总幅度+14日下降总幅度)×100。
通常以30和70作为RSI的超买和超卖线,RSI超过70表示超买,RSI低于30表示超卖,投资者可以根据RSI指标来判断股票的买卖时机。
4.MACD指标:MACD指标是一种趋势追踪的指标,用于衡量股票的短期和长期走势的变化。
MACD由两条线组成,即快速线(DIF)和慢速线(DEA),当快速线上穿慢速线时,表示买入信号,当快速线下穿慢速线时,表示卖出信号。
5.布林带指标:布林带是一种通过计算标准差来界定股价波动区间的指标。
布林带由中轨、上轨和下轨组成,中轨是股价的中期均线,上轨和下轨是中轨加减一个标准差。
当股价突破上轨时,表示买入信号,当股价跌破下轨时,表示卖出信号。
以上是通达信买卖趋势主图指标的一些常见指标和公式,投资者在使用这些指标时,应结合其他技术分析指标和相关的市场消息,综合判断股票的买卖时机,避免盲目跟从指标信号进行交易。
通达信大盘指标与板块指标通达信板块强弱指标
通达信大盘指标与板块指标通达信板块强弱指标麻烦高手帮忙写一个通达信行业板块指数上穿大盘指数公式麻烦高手帮忙写一个通达信行业板块指数上穿大盘指数公式行业板块不止一个呀,开什么玩笑麻烦高手帮忙写一个通达信地量公式XG:LAST(VHHV(V,120)*0.05,20,1);对于你的n日内没有特别说明,因此不好定位具体数字,暂时按照20天内来设计的,查历史上有报警讯号,当前形势下没有选出票来,也难怪,现在是牛市,大部分票都涨了,肯定都放量过了。
求高手帮忙写一个通达信公式不用求了,你等到这一天时候,足够你自己学会编写指标了;思路也不对,抄底的话就要在上一个KDJ底部验证指标,否则下一个就验证失败。
KDJ是不能验证抄底的,讯号过多,庄家就是做这个给散户看的;这票立马要跌了,下降通道没突破,这波是诱多;自己写自己的秘密武器吧,你会发现,需要走很远很远,付出很多很多。
高手帮忙写一个通达信横盘突破公式xg:cross(c,ref(hhv(h,60),1));公式含义,突破前面60天高点选股预警。
通达信上证指数公式如何表达"999999$close" 表示上证指数的收盘价想写个通达信公式,但不知如何引用880001等大盘指数指数:INDEXC;沪深:"000300$CLOSE"指数:对应各个股票所属的指数,如果是沪市,就对应沪市指数。
沪深:只显示沪深000300的指数。
新浪通达信的“板块指数”在哪一个资料夹中在动态显示牌的下面,有一行长长的各色按钮:A股、B股,创业板、中小板、自定义,自选、权证等等。
我估计你想要看的是行业板块,点选其中的“板块”按钮就行!求高手写一个通达信AMO量能的公式AMO:=AMOUNT,VOLSTICK;MAAMO1:=MA(AMO,5);XG:AMOMAAMO1;麻烦高手帮忙写一个通达信在n日内成交量没有出现放量公式N:=10;{N可以任意设定}A:=MA(V,5);COUNT(V/A1,N)=N;测试通过,希望能够帮助你!请教高手编写一个通达信指标公式即上证大盘的获利盘比例。
通达信分时指标汇总(主图 源码 通达信
做短线看盘分时指标的参考很重要,而通达信分时指标只有一个MACD指标,如何盘中即时更换分时技术指标?方法如下:1.找到安装目录里面T0002文件夹下的user文件,2.用记事本方式打开找到Zstzb=MACD这一项改为=AAA,(由上往下点大约到98行位置,如图1),3.将你准备用作分时指标的公式改为AA开头的公式名。
4.进入K线分析图用键盘输入AA即可跳出AA开头的公式(如图2)。
5.选择你要用作分时指标的公式点击进入改名为AAA保存(如图3-4),6.回到分时分析图点技术指标即可(如图5)。
7如需更换其它指标时直接键入AAA进入该公式修改为另外的公式名,再重复4,5,6项即可通达信分时指标汇总通达信分时指标(虎主力散户)虎: (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK;主力:EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1) *100,120)-0.0004,LINETHICK5,COLORMAGENTA;散户:EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1) *100,200),LINETHICK5,COLORGREEN;DRAWICON(CROSS(EXPMA(虎,120)-0.0004,EXPMA(虎,200)),EXPMA(虎,200)*1,13); DRAWICON(CROSS(EXPMA(虎,200),EXPMA(虎,120)-0.0004),EXPMA(虎,200)*1,2);Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05, 0.95);Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BAR SCOUNT(C))));DRAWICON(CROSS((C/Q2),1.03),0.02,6);STICKLINE(CROSS((C/Q2),1.03),0.02,0,4,0), , COLORYELLOW;通达信分时指标分时专用指标,55上红柱谨慎看多, 50下绿柱保持警惕,结合多(黄)空(绿)线,选择正确操作时段,按照图中提示关注,严格遵守操作纪律, 心态平衡投资顺利.希望大家能得到好的收益!Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05, 0.95);天:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BAR SCOUNT(C))));DRAWICON(CROSS((C/天),1.01),25,3);STICKLINE(CROSS((C/天),1.01),25,0,2,0), ,COLORYELLOW;VAR1:=REF(CLOSE,3.5);VAR2:=REF(CLOSE,1);VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;Q2:=(CLOSE-LLV(LOW, 21))/(HHV(HIGH, 21)-LLV(LOW, 21))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);Q8:=HHVBARS(HIGH, 50);Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;快线: SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLORFFAA66; 慢线:EMA(Q3, 3),COLORRED;DRAWBAND(快线,RGB(115,95,120),慢线,RGB(95,120,115));A:=VOL*CLOSE;B:=SUM(A,3.52)/SUM(VOL,3.82);B1:=EMA(B,13);主力线:(B-B1)*191/B+50,COLORMAGENTA;多头:3*Q3-2*Q4,COLORRED;VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;空头: SMA(VAR12,3,1),COLORGREEN;DRAWTEXT(CROSS(慢线, 多头) AND REF(多头,1)>80, REF(多头,3), '*顶'),COLORRED,LINETHICK5;●关注: DRAWTEXT(REF(CROSS(空头,慢线),25) AND 空头>1.005*慢线,慢线,'●关注'),COLORBLUE,LINETHICK1;★关注: DRAWTEXT(REF(CROSS(慢线,多头),82) AND 慢线>1.3*多头,多头,'★关注'),LINETHICK1;★追涨: DRAWTEXT(REF(CROSS(多头,慢线),1) AND 多头>1.3*慢线,慢线,'★追涨'),COLORRED,LINETHICK1;★抄底:IF(CROSS(多头,慢线) AND 快线>=REF(快线,1) AND 多头>=REF(多头,1) AND 慢线<38.2 AND 慢线>=REF(慢线,1) AND COUNT(REF(快线,1)=2,30,0),COLORMAGENTA;DRAWTEXT(CROSS(多头, 8) AND Q10<-13,20,'*大底'),COLORYELLOW,LINETHICK5; ★逃亡:IF(快线< REF(快线,1) AND 快线>61.8,70,100),COLORBLUE;50,POINTDOT,COLORWHITE;AZ1:=AMOUNT/VOL/100;AZ2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;AZ3:=SUM(AMOUNT,40)/AZ1/100;AZ4:=SUM(AMOUNT,80)/AZ1/100;BZ1:=DMA(AZ2,VOL/AZ3);BZ2:=DMA(AZ2,VOL/AZ4);BZ3:=(CLOSE-BZ1)/BZ1*100;BZ4:=(CLOSE-BZ2)/BZ2*100;DRAWTEXT(ISLASTBAR AND C,93,' 冷眼分时专用指标'),COLOR00AAFF; DRAWTEXT(ISLASTBAR AND C,80,' 55上红柱谨慎看多'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,68,' 50下绿柱保持警惕'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,56,' 结合多(黄)空(绿)线'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,44,' 选择正确操作时段'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,32,' 按照图中提示关注'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,20,' 严格遵守操作纪律'),COLOR00BBBB; DRAWTEXT(ISLASTBAR AND C,8,' 心态平衡投资顺利'),COLOR00BBBB;STICKLINE(FILTER(C,60)>0,100,-0,0,0),COLORRED;STICKLINE(BZ4>0,50,50+13.82*BZ4,0,0),COLORYELLOW;STICKLINE(BZ3>0,50,50+13.82*BZ3,0,0),COLORRED;STICKLINE(BZ3<=0,50,50+13.82*BZ3,0,0),COLORGREEN;[通达信L-2] 动态买进通达信分时指标动态买进VAR0:=VOL/CLOSE/2;VAR1:=SUM(IF(VAR0 > 100 AND CLOSE > REF(CLOSE,1),VAR0,0),0);VAR2:=SUM(IF(VAR0 > 100 AND CLOSE < REF(CLOSE,1),VAR0,0),0);VAR3:=SUM(IF(VAR0 < 100 AND CLOSE > REF(CLOSE,1),VAR0,0),0);VAR4:=SUM(IF(VAR0 < 100 AND CLOSE < REF(CLOSE,1),VAR0,0),0);VAR5:=VAR1 + VAR2 + VAR3 + VAR4;VAR6:=IF(CURRBARSCOUNT,100 * VAR1/VAR5,0);VAR7:=IF(CURRBARSCOUNT,100 * VAR2/VAR5,0);VAR8:=IF(CURRBARSCOUNT,100 * VAR3/VAR5,0);VAR9:=IF(CURRBARSCOUNT,100 * VAR4/VAR5,0);机构买盘:VAR1,LINETHICK2,COLORFF55FF;机构卖盘:VAR2,LINETHICK2,COLORFFFF55;散户买盘:VAR3,COLOR5555FF;散户卖盘:VAR4,COLOR55FF55;自用分时(通达信分时指标副图、源码、贴图MA30:=EMA(CLOSE,30);{强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;}H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW; DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'买'),COLORYELLOW;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★卖'),COLORRED;{抛};日时转换:=IF(PERIOD=5,120,240);QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;VAR3:=(VAR1+VAR2)/2;VAR4:=EMA(VAR3,30);VAR5:=EMA(VAR3,60);VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5); DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));牵引线:VAR1,COLORYELLOW;强弱线:EMA(VAR1,日时转换),POINTDOT,COLORWHITE;趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;DRAWICON(趋势关注=1,EMA(VAR1,60),13);DRAWTEXT(量价关注=1,EMA(VAR1,60),'★'),COLORWHITE;通达信分时指标WW:3*SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,10,1),LINESTICK; 40;250;300;分时有庄(通达信分时指标源码VAR1:=EMA(EMA(CLOSE,13),13);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF;无庄控盘:=控盘<0;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLOR0000FF;有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(控盘0,控盘,0,1,1),COLORFFFF00;主力出货:=控盘0;STICKLINE(VAR2>50 AND COST(85)0,控盘,0,1,1),COLOR00FFFF;高度控盘: VAR2>50 AND COST(85)0,COLOR00FFFF,LINETHICK2;A10:=CROSS(控盘,0);控盘B:=FILTER(IF(A10,1,0),5);{分时价格原码}JJ:=DYNAINFO(11);{波段买卖原码}P:=55;S:=8;M1:=3;财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;神:=EMA(财,M1),COLORGREEN,LINETHICK1;DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50));{股价与均线偏离买卖条件}BTJ1:=(C-JJ)/JJ<-0.03;BTJ11:=(C-JJ)/JJ<-0.03;BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;STJ1:=(C-JJ)/JJ>0.005;{控盘买卖条件}STJ01:=控盘0.5;STJ02:=控盘>0;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;{波段买卖条件}BTJ3:=CROSS(财,神) AND 财<-0.3;BTJ32:=CROSS(财,神) AND 财<-0.1;STJ31:=CROSS(神,财);STJ32:=CROSS(神,财) AND 财>1.618;{以下为信号};BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);DRAWTEXT(BTJ81,神,'↑买底'),COLORRED;DRAWTEXT(BTJ811,神*1.2,'↑有庄'),COLORWHITE;STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);STJ82:=FILTER(STJ02 AND STJ32 ,13);STJ83:=STJ81 AND STJ82;DRAWTEXT(STJ83,神,'↓卖'),COLOR00FF00;DIFF: (EMA(CLOSE,8) - EMA(CLOSE,55))*10,COLORRED;DEA: EMA(DIFF,3),COLORGREEN;庄:= BTJ11 AND BTJ2 AND BTJ3;有庄:FILTER(庄,55),COLORWHITE;DRAWTEXT(BTJ811,有庄,'有庄'),COLORWHITE;分时买卖图(通达信分时指标源码图中分时买卖图,能看懂分时均价线的那就跳过,对分时走势均价图没有一定的功力,最好不要用,此指标有未来慎用!欣赏下还行。
【指标公式源码下载】通达信看盘极品主图指标公式【多线】
通达信看盘极品主图指标公式【多线】MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;取舍线: (20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MI D,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10) +9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*R EF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,LINETHICK1,COLORY ELLOW;生命线:MA(取舍线,6),LINETHICK1,COLORRED;五日线:MA(CLOSE,5),POINTDOT,COLORLIBLUE;水平面:MA(CLOSE,60),CIRCLEDOT,COLORLIMAGENTA;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,30);MA4:=MA(CLOSE,60);WYA001:=(2*CLOSE+HIGH+LOW)/4;WYA002:=EMA(WYA001,4);WYA003:=EMA(WYA002,4);WYA004:=EMA(WYA003,4);WYA柱:=(WYA004-REF(WYA004,1))/REF(WYA004,1)*100;WYA线1:=MA(WYA柱,2);WYA线2:=MA(WYA柱,1);WY分时1线:=MA(CLOSE,1);WY分时21线:=MA(CLOSE,21);DRAWICON(WYA线1>0.25 AND WYA线2>0.25 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);DRAWICON(WYA线1<0 AND WYA线2<0 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);DRAWICON( CROSS(WY分时21线,WY分时1线),HIGH*1.0128,6) ;DRAWICON(WYA线1<-0.25 AND WYA线2<-0.25 AND CROSS(WYA线2,WYA线1),LOW*0.99,5);DRAWICON(WYA线1>0 AND WYA线2>0 AND CROSS(WYA线2,WYA线1),LOW*0.99,5),COLORYELLOW;DRAWICON(CROSS(WY分时1线,WY分时21线),LOW*0.99,5),COLORYELLOW;。
通达信天眼主图指标公式
通达信天眼主图指标公式
通达信天眼主图指标公式是一种常用于股票分析与交易的技术
指标,其包括多种不同的计算公式,常用于判断趋势、震荡、买卖信号等方面。
其中较为常见的指标包括:MA、MACD、KDJ、RSI、DMI、BOLL等。
下面将对这些指标的计算公式进行简要介绍:
MA指标:即均线指标,其计算公式为:MA=N日内收盘价之和/N。
MACD指标:即指数平滑移动平均线(Moving Average Convergence Divergence),其计算公式包括:DIF=12日EMA-26日EMA,DEA=9日DIF的EMA,MACD=(DIF-DEA)*2。
KDJ指标:即随机指标,其计算公式包括:RSV=(收盘价-N日内最低价)/(N日内最高价-N日内最低价)*100,K=2/3*K前日+1/3*RSV,D=2/3*D前日+1/3*K,J=3K-2D。
RSI指标:即相对强弱指标,其计算公式为:RSI=100-100/(1+RS),其中RS=(N日内上涨总幅度/N日内下跌总幅度)。
DMI指标:即动向指标,其计算公式包括:+DI=(今日最高价-昨日最高价)/DMTR(DMTR为真实波幅),-DI=(昨日最低价-今日最低价)/DMTR,ADX=(+DI和-DI的差的绝对值/(+DI+DI)的和)*100。
BOLL指标:即布林带指标,其计算公式包括:MID=MA(N),
UP=MID+k*STD(N),DN=MID-k*STD(N),其中k为常数,通常取值为2。
- 1 -。
各种实用操盘指标(通达信、大智慧、分析家、同花顺)
1、买点:当“SK”线上翘、并与“SD”线金叉时买入。当“SK”、“SD”线向上穿越“安全线”或在“安全线”上发生“金叉时,如果有成交星的配合,则为最佳买点。
2、卖点:当“SK”线下勾、并与“SD”线死叉时卖出。
高抛: 90, POINTDOT;
低吸: 0, POINTDOT;
多方能量: SMA(Var3,13,8);
空方能量: SMA(Var1,21,8);
买进: IF(CROSS(多方能量,45),18,-4);
卖出: IF(CROSS(45,多方能量),18,-4);
D、利用本指标确定买卖点时,请参照《庄家克星》其它指标做出决策。如此,你必将成为股市赢家。
指标源码:
Var1:=(CLOSE*2+HIGH+LOW)/4;
SK: EMA(Var1,13)-EMA(Var1,21);
SD: EMA(SK,2);
3、注意事项:
A、当“多方能量”紫线在“强弱分界”线下方上翘发出买入信号时,可以试建仓,做反弹;一旦“SK”与“SD”向上金叉时或“多方能量”紫线上穿“强弱分界”线且有成交量的配合即可加码建仓。然后看长做短,一路持股等待发出卖出信号。
C、当“空方能量”线在“强弱分界”线以上运行时,说明“空方能量”能量仍然大于“多方主力”能量,原则上不进行操作。即使发出买进信号,也只能做短线,快进快出。
D、利用本指标确定买卖点时,请参照《庄家克星》其它指标做出决策。如此,你必将成为股市赢家。
指标源码:
B、请注意:当“神奇中线”形成“压缩平台”后向上发散的股票,是调整已经结束,重新开始启动的股票。如果“神奇中线”、“神奇短线”发出买进信号的同时,《庄家克星》其它技术分析指标如“多空博弈”、“短线快枪”、“短线高手”等技术指标也分别发出“最佳买点”信号时,十有八九是主升段行情启动前的最佳买点。这种股票应是我们重点关注并介入的股票。为了尽快寻找到主升段行情启动前的最佳买点出现的股票,我们可以通过“智能选股”组合“神奇中线”、“多空博弈”、“短线快枪”等条件选出有关股票,然后再“好中选优”,确定最具投资价值的股票,在相对低位买进并持有。
通达信全息操盘主图指标通达信指标源码
通达信全息操盘主图指标通达信指标源码职业操盘手专用的《全息操盘》主图按图操作简单明了。
除此之外,《黑马全息》也是一本万法归一的好书。
首先,A1AA被赋值为9,而A2AA则是REF(CLOSE,A1AA+1)小于CLOSE的结果。
VAR66和VAR77是根据C的值计算出来的。
VAR77是通过将MAX(C-VAR66,0)的6日移动平均除以ABS(C-VAR66)的6日移动平均然后乘以100得出的。
在C大于0的情况下,使用RGB(10,160,0)和RGB(25,15,0)绘制DRAWGBK。
上轨道是SMA(HIGH,21,2)乘以1.05,下轨道是SMA(LOW,21,2)乘以0.969.使用FILTER筛选出符合条件的数据并在HIGH乘以0.995的位置绘制--减仓,颜色为COLORFFFFFF。
BMA是CLOSE的118日移动平均,阻挡是SMA(HIGH,21,2)乘以1.05.RSV是((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13)))*100的结果。
K是RSV的3日移动平均,D是K的3日移动平均,J是(3*K)-(2*D)。
同理,RSV12是((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*100的结果,K12是RSV12的3日移动平均,D12是K12的3日移动平均,J12是(3*K12)-(2*D12)。
RSV24、K24、D24和J24的计算方法与之类似。
支撑位是根据J和J24的交叉情况来计算的,如果交叉则为LOW,否则为BARSLAST(CROSS(J,J24))的REF(LOW)。
CB值的计算公式为:成交金额/成交量/100.如果CB值大于最高价或小于最低价,则CD值为真。
黑马趋势是收盘价的3日移动平均线,MAP是收盘价的8日移动平均线,AA5是收盘价的21日移动平均线。
AA10和AA12分别是收盘价的8日和12日移动平均线,颜色为蓝色。
通达信缠论看盘指标代码完整版(主图叠加)
{缠论看盘指标}MA5:MA(CLOSE5) COLORWHITELINETHICK2;MA10:MA(CLOSE10) COLORMAGENTALINETHICK1;MA20:MA(CLOSE20) COLORBLUELINETHICK1;MA60:MA(CLOSE60) COLORYELLOWLINETHICK2;MA250:MA(CLOSE250) COLORREDLINETHICK1;老笔:=0;G:=MA(C5);D:=MA(C10);HH:=REF(H5)=HHV(H11);LL:=REF(L5)=LLV(L11);FG01:=BACKSET(HH6)>BACKSET(HH5) ;FD01:=BACKSET(LL6)>BACKSET(LL5) ;FG02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND G>DFG01IF(BARSLAST(FD01)>BARSLAST(FG01)FG010));FD02:=IF(BARSLAST(FG01)=BARSLAST(FD01) AND D>GFD01IF(BARSLAST(FG01)>BARSLAST(FD01)FD010));FG0:=FG02 AND H=HHV(HBARSLAST(FD02));FD0:=FD02 AND L=LLV(LBARSLAST(FG02));GP:IF(FG0HDRAWNULL)CIRCLEDOTCOLORCYAN;DP:IF(FD0LDRAWNULL)CIRCLEDOTCOLORCYAN;GQ:=L>REF(H1) AND DAY!=REF(DAY1);DQ:=H<REF(L1) AND DAY!=REF(DAY1);GQL:=REF(LBARSLAST(GQ));DQH:=REF(HBARSLAST(DQ));FGH:=REF(HBARSLAST(FG0));FGL:=REF(LBARSLAST(FG0));FGH1:=REF(HBARSLAST(FG0)+1);FGL1:=REF(LBARSLAST(FG0)+1);FGH2:=REF(HBARSLAST(FG0)+2);FGL2:=REF(LBARSLAST(FG0)+2);FDH:=REF(HBARSLAST(FD0));FDL:=REF(LBARSLAST(FD0));FDH1:=REF(HBARSLAST(FD0)+1);FDL1:=REF(LBARSLAST(FD0)+1);FDH2:=REF(HBARSLAST(FD0)+2);FDL2:=REF(LBARSLAST(FD0)+2);FGZH:=IF(FGL<=FGL1FGH2FGH1);FGZL:=IF(FGH1<FGLFGLIF(FGL<=FGL1FGL2FGL1));FDZH:=IF(FDL1>FDHFDHIF(FDH>=FDH1FDH2FDH1));FDZL:=IF(FDH>=FDH1FDL2FDL1);FG1:=FGH>FDZH AND FG0;FD1:=FDL<FGZL AND FD0;FG:=FG1 AND FGH>FDH AND FGL>FDL AND FGL1>FDL;FD:=FD1 AND FDL<FGL AND FDH<FGH AND FDH1<FGH;BH0:=(H<=REF(H1) AND L>=REF(L1)) OR (H>=REF(H1) AND L<=REF(L1)); BHG:=COUNT(BH0BARSLAST(FD0));BHD:=COUNT(BH0BARSLAST(FG0));BGQ:=COUNT(GQBARSLAST(FD0));BDQ:=COUNT(DQBARSLAST(FG0));BK0:=IF(BHG>0BHG+2+老笔IF(BHDBHD+2+老笔3));BK:=IF(BGQBK0-BGQIF(BDQBK0-BDQBK0));G1X:=(FG AND BARSLAST(FD)>BK);D1X:=(FD AND BARSLAST(FG)>BK);G1:=(FG0 AND REF(HBARSLAST(FG0))>=REF(HBARSLAST(G1X)) ANDBARSLAST(D1X)>BARSLAST(G1X))OR (FG1 AND COUNT(GQBARSLAST(FD1))>0 ANDREF(HBARSLAST(FG1))>REF(HBARSLAST(G1X)));D1:=(FD0 AND REF(LBARSLAST(FD0))<=REF(LBARSLAST(D1X)) ANDBARSLAST(G1X)>BARSLAST(D1X))OR (FD1 AND COUNT(DQBARSLAST(FG1))>0 ANDREF(LBARSLAST(FD1))<REF(HBARSLAST(D1X)));G1H:=IF(BARSLAST(D1)>BARSLAST(G1)REF(HBARSLAST(G1))REF(HBARSLAST(D1)));D1L:=IF(BARSLAST(G1)>BARSLAST(D1)REF(LBARSLAST(D1))REF(LBARSLAST(G1)));G2:=G1 AND H=HHV(G1HBARSLAST(D1)+1) AND H>REF(H1) ANDBARSLAST(D1)>BARSLAST(G1);D2:=D1 AND L=LLV(D1LBARSLAST(G1)+1) AND L<REF(L1) ANDBARSLAST(G1)>BARSLAST(D1);G3:=G2 OR (FG0 AND REF(HBARSLAST(FG0))>REF(HBARSLAST(G2)) ANDBARSLAST(D2)>BARSLAST(G2));D3:=D2 OR (FD0 AND REF(LBARSLAST(FD0))<REF(LBARSLAST(D2)) ANDBARSLAST(G2)>BARSLAST(D2));GPB:IF(G1XHDRAWNULL)CIRCLEDOTCOLORYELLOW;DPB:IF(D1XLDRAWNULL)CIRCLEDOTCOLORYELLOW;DRAWICON(CROSS(MA20MA60)MA60*0.989);DIF:=MA(CLOSE5)-MA(CLOSE89);DIFMA:=MA(DIF36);XG:=CROSS(DIFDIFMA) AND DIF<3;{DRAWICON(XGH*1.0323);}{画线}NN:=G3;UU:=D3;L1:DRAWLINE(UULNN H0)COLORLIGREEN;L2:DRAWLINE(NNHUU L0)COLORLIGREEN; {标示端点数值}DRAWNUMBER(L1 AND L2 AND NN HH)COLORLIRED;DRAWNUMBER(L1 AND L2 AND UU LL)COLORLIMAGENTA;{折扣价}{DRAWICON(CURRBARSCOUNT=6LOW*0.9824);}DRAWNUMBER(CURRBARSCOUNT=6LOW*0.96C);{DRAWICON(CURRBARSCOUNT=11LOW*0.9825);}DRAWNUMBER(CURRBARSCOUNT=11LOW*0.96C);{DRAWICON(CURRBARSCOUNT=21LOW*0.9826);}DRAWNUMBER(CURRBARSCOUNT=21LOW*0.96C);{DRAWICON(CURRBARSCOUNT=61LOW*0.9827);}DRAWNUMBER(CURRBARSCOUNT=61LOW*0.96C);{DRAWICON(CURRBARSCOUNT=121LOW*0.9818);}DRAWNUMBER(CURRBARSCOUNT=121LOW*0.96C);{量能平台}N250:=250;PT250:=CONST(HHVBARS(VN250));{T250:IF(CURRBARSCOUNT<=N250CONST(IF(PT250=0CREF(CPT250)))DRAWNULL)COL OR990000;}{IF(CURRBARSCOUNT=PT250+1T250DRAWNULL)CIRCLEDOTCOLORFF0000LINETHICK 2;}{DRAWTEXT(CURRBARSCOUNT=N250T250'250')COLOR990000;}N120:=120;PT120:=CONST(HHVBARS(VN120));{T120:IF(CURRBARSCOUNT<=N120CONST(IF(PT120=0CREF(CPT120)))DRAWNULL)COL ORAAAA00;}{IF(CURRBARSCOUNT=PT120+1T120DRAWNULL)CIRCLEDOTCOLORFFFF00LINETHIC K2;}{DRAWTEXT(CURRBARSCOUNT=N120T120'120')COLORAAAA00;}N60:=60;PT60:=CONST(HHVBARS(VN60));{T60:IF(CURRBARSCOUNT<=N60CONST(IF(PT60=0CREF(CPT60)))DRAWNULL)COLOR00 BB00;}{IF(CURRBARSCOUNT=PT60+1T60DRAWNULL)CIRCLEDOTCOLOR00FF00LINETHICK2;} {DRAWTEXT(CURRBARSCOUNT=N60T60'60')COLOR00BB00;}N30:=30;PT30:=CONST(HHVBARS(VN30));{T30:IF(CURRBARSCOUNT<=N30CONST(IF(PT30=0CREF(CPT30)))DRAWNULL)COLOR00 00CC;}{IF(CURRBARSCOUNT=PT30+1T30DRAWNULL)CIRCLEDOTCOLOR0000FFLINETHICK2;} {DRAWTEXT(CURRBARSCOUNT=N30T30'30')COLOR0000CC;}N20:=20;PT20:=CONST(HHVBARS(VN20));{T20:IF(CURRBARSCOUNT<=N20CONST(IF(PT20=0CREF(CPT20)))DRAWNULL)COLORD D00DD;}{IF(CURRBARSCOUNT=PT20+1T20DRAWNULL)CIRCLEDOTCOLORFF00FFLINETHICK2;} {DRAWTEXT(CURRBARSCOUNT=N20T20'20')COLORDD00DD;}N10:=10;PT10:=CONST(HHVBARS(VN10));{T10:IF(CURRBARSCOUNT<=N10CONST(IF(PT10=0CREF(CPT10)))DRAWNULL)COLOR00 EEEE;}{IF(CURRBARSCOUNT=PT10+1T10DRAWNULL)CIRCLEDOTCOLOR00FFFFLINETHICK2;} {DRAWTEXT(CURRBARSCOUNT=N10T10'10')COLOR00EEEE;}N5:=5;PT5:=CONST(HHVBARS(VN5));{T5:IF(CURRBARSCOUNT<=N5CONST(IF(PT5=0CREF(CPT5)))DRAWNULL)COLORFFFFF F;}{IF(CURRBARSCOUNT=PT5+1T5DRAWNULL)CIRCLEDOTCOLORFFFFFFLINETHICK2;} {DRAWTEXT(CURRBARSCOUNT=N5T5'5')COLORFFFFFF;}ND:=10;PTD:=CONST(LLVBARS(VND));TDPX:IF(CURRBARSCOUNT<=NDCONST(IF(PTD=0OREF(OPTD)))DRAWNULL) COLOR9370DB;IF(CURRBARSCOUNT=PTD+1TDPXDRAWNULL)CIRCLEDOTCOLOR9370DBLINETHICK2;。
通达信精准预测股价主图指标公式
通达信精准预测股价主图指标公式N:=27;PP:=0.03;AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0);AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0);AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0);BB1:=0;B1万元:=DVOL*DCLOSE/100;B1差:=B1万元-REF(B1万元,1);B2万元:=DVOL*DCLOSE/100;B2比:=B2万元/REF(B2万元,1);净流入万元:=(AAA2-AAA3-0.5*AAA4);PM:=MA(净流入万元,1);PMA:=PM/REF(PM,1)>1;PMB:=REF(PMA,1)<1 AND PMA;数字:(EMA(MA(B1万元,2),2))/100000,COLORYELLOW,NODRAW;二日比:=数字/REF(数字,1);选股:PMB AND 数字>REF(数字,1) AND 二日比>1,COLORRED,NODRAW;MA5:MA(C,5);MA10:MA(C,10);MA30:MA(C,30);DRAWNUMBER(选股=1 ,L,数字),COLORYELLOW;DRAWICON(选股,L*0.975,1);{预测当天最低价公式}A1:=REF(O,1);A2:=ABS((REF(C,1)-A1)/A1);A3:=ABS((REF(H,1)-A1)/A1);A4:=ABS((REF(L,1)-A1)/A1);B1:=ABS((A2+A3+A4)/3);B2:=O*B1;预测低一:=O-B2;预测高一:=O+B2;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLOR4080FF,NODRAW;开盘价1:=OPEN;开盘价2:=REF(OPEN,1);最高价1:=HIGH;最高价2:=REF(HIGH,1);最低价1:=LOW;最低价2:=REF(LOW,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AA:=最高价2;BB:=最低价2;CC:=开盘价2;DD:=收盘价2;EE:=(AA+BB+CC+2*DD)/5;AAA:=EE+(AA-BB);BBB:=2*EE-BB;CCC:=2*EE-AA;DDD:=EE-(AA-BB);上升突破价:=AAA;上升阻力价:=BBB;下跌支撑价:=CCC;下跌反转价:=DDD;EEE:=(EE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+开盘价1)/2;GGG:=(预测低一+FFF)/2;预测低二:=GGG;{预测今日最高价公式}预测高二:=MA(REF(HIGH,1)/REF(CLOSE,2),N)*REF(CLOSE,1);DRAWTEXT_FIX(1,0.04,0.15,0,'预测低一:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.10,0.15,0,CONST(预测低一)),COLORYELLOW;DRAWTEXT_FIX(1,0.15,0.15,0,'元'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(1,0.04,0.20,0,'预测高一:'),COLORFFFFFF;DRAWNUMBER_FIX(1,0.10,0.20,0,CONST(预测高一)),COLORFFFFFF;DRAWTEXT_FIX(1,0.15,0.20,0,'元'),COLORFFFFFF,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.15,0,'预测低二:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.24,0.15,0,CONST(预测低二)),COLORYELLOW;DRAWTEXT_FIX(1,0.29,0.15,0,'元'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.20,0,'预测高二:'),COLORFFFFFF;DRAWNUMBER_FIX(1,0.24,0.20,0,CONST(预测高二)),COLORFFFFFF;DRAWTEXT_FIX(1,0.29,0.20,0,'元'),COLORFFFFFF,LINETHICK1;买回价:=预测低二*1.015;卖出价:=买回价*(1+PP);DRAWTEXT_FIX(1,0.04,0.10,0,'卖出价:'),COLOR8080FF,LINETHICK1;DRAWNUMBER_FIX(1,0.10,0.10,0,CONST(卖出价)),COLOR8080FF;DRAWTEXT_FIX(1,0.15,0.10,0,'元'),COLOR8080FF,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.10,0,'买回价:'),COLOR8080FF,LINETHICK1;DRAWNUMBER_FIX(1,0.24,0.10,0,CONST(买回价)),COLOR8080FF;DRAWTEXT_FIX(1,0.29,0.10,0,'元'),COLOR8080FF,LINETHICK1;DRAWTEXT_FIX(1,0.01,0.02,0,'★====================================== ===== ★'),COLORRED;DRAWTEXT_FIX(1,0.15,0.05,0,'T+1 操作'),COLORFFFFFF;DRAWTEXT_FIX(1,0.01,0.08,0,'操 '),COLOR0000FF;DRAWTEXT_FIX(1,0.01,0.12,0,'盘 '),COLOR0000FF;DRAWTEXT_FIX(1,0.01,0.16,0,'铁'),COLOR0000FF;DRAWTEXT_FIX(1,0.01,0.20,0,'律'),COLOR0000FF;DRAWTEXT_FIX(1,0.32,0.08,0,'坚 '),COLOR0000FF;DRAWTEXT_FIX(1,0.32,0.12,0,'决 '),COLOR0000FF;DRAWTEXT_FIX(1,0.32,0.16,0,'执'),COLOR0000FF;DRAWTEXT_FIX(1,0.32,0.20,0,'行'),COLOR0000FF;DRAWTEXT_FIX(1,0.01,0.24,0,'★====================================== ===== ★'),COLORRED;STICKLINE(C>=O,C,O,3.4,0),COLOR0000AA;STICKLINE(C>=O,C,O,3.0,0),COLOR0000BB ;STICKLINE(C>=O,C,O,2.4,0),COLOR0000CC;STICKLINE(C>=O,C,O,2.0,0),COLOR0000DD ;STICKLINE(C>=O,C,O,1.6,0),COLOR0000EE;STICKLINE(C>=O,C,O,1.2,0),COLOR0000FF;STICKLINE(C>=O,C,O,0.6,0),COLOR0000FF;STICKLINE(C>=O,H,L,0,0),COLORRED;STICKLINE(C<=O,C,O,3.4,0),COLORAAAA00;STICKLINE(C<=O,C,O,3.0,0),COLORBBBB00;STICKLINE(C<=O,C,O,2.4,0),COLORCCCC00;STICKLINE(C<=O,C,O,2.0,0),COLORDDDD00;STICKLINE(C<=O,C,O,1.6,0),COLOREEEE00;STICKLINE(C<=O,C,O,1.2,0),COLORFFFF00;STICKLINE(C<=O,C,O,0.6,0),COLORFFFF00;STICKLINE(C<=O,H,L,0,0),COLORFFFF00;一天十分钟!让您把手中的鸡肋当鸡腿天天吃!不需丰富实战经验的 T+0 自动化的玩法!重申,我不会写公式,所有公式都来自股票论坛,如有侵犯敬请原谅!先恭喜您,手上有脱不了,又舍不得脱的股票,越多越好!如果您不嫌一天1%太少,那就看下去。
通达信多空趋势主图指标
通达信多空趋势主图指标参数
通达信多空趋势主图指标参数是一种常用的技术指标,它可以帮助投资者更好地分析和预测股票市场的走势。
它是由三部分组成的:“快速移动平均线”、“慢速移动平均线”和“趋势指示器”。
快速移动平均线(MA)是采用一定时期内收盘价的算术平均值来表示股价的趋势的技术指标,它可以用来发现股价的即时性变化。
MA的参数一般设置为5、10、20、30、60、120、250天等,其不同的参数值会产生不同的趋势信息。
慢速移动平均线(MA)也是用来表征股票趋势的技术指标,但它比快速移动平均线更加稳定,可以用来发现长期趋势的变化。
慢速移动平均线一般设置为30、60、120、250天等,其不同的参数值会产生不同的趋势信息。
趋势指示器(TRIX)是一种量化股票趋势的技术指标,它能够显示出股价的趋势以及趋势的强弱。
它的参数一般设置为12、25、50、100天等,其不同的参数值会产生不同的趋势信息。
预测大盘(指标公式)-senher的日志-网易博客
预测大盘(指标公式)-senher的日志-网易博客用法:■ 大盘跌破9日均线或14日均线要注意:■大盘指数跌破9日均线,第二第三日5日均线回升可解除大跌信号。
请朋友们原谅:原有参数设置搞错,下面的源码公式巳更正,主图增加一个信号。
副图不是原创.{大盘预测} (DZHL2主图)MA1:MA(CLOSE,5);MA2:MA(CLOSE,9),LINETHICK2;MA3:MA(CLOSE,14),LINETHICK2;MA4:MA(CLOSE,20);MA5:MA(CLOSE,30);MA6:MA(CLOSE,117);条件:=CROSS(MA2,INDEXC) AND MA3>REF(MA3,1) AND MA1<REF(MA1,1);DRAWTEXT(条件,H*1.015,'↙大跌开始');DRAWTEXTABS(5,10,'■ 跌破9日均线或14日均线要注意: '),Color00FFFF,LINETHICK3;DRAWTEXTABS(5,8,' 大盘 '),Color00A9FF,LINETHICK5;DRAWTEXTABS(5,30,'■大盘指数跌破9日均线第二第三日5日'),ColorFFFF00,LINETHICK3;DRAWTEXTABS(22,50,'均线回升可解除大跌信号'),ColorFFFF00,LINETHICK3;Var1:=EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*4,7);休息: DRAWTEXT(CROSS(3,Var1),l,'休息了↗'),Color00FFFF,ALIGN2; {新增信号}{专测大盘} (DZHL2副图)LC:=REF(CLOSE,1);动力1:EMA(EMA((SUM(IF(INDEXC>LC,VOL,0),42)/SUM(IF(INDEXC<= LC,VOL,0),42)),5),2)*100,COLORGRAY,linethick2;动力2:EMA(EMA((SUM(IF(INDEXC>LC,VOL,0),55)/SUM(IF(INDEXC<= LC,VOL,0),55)),5),2)*100,ColorD49D56,linethick2;STICKLINE(CROSS(250,动力1),350,400,9,0),COLOR00ff00;STICKLINE(CROSS(400,动力1),300,400,9,0),COLORff00ff;关注:IF(动力1<70,70,50),LINETHICK2,COLORffcc66;WVAD10:=MA((INDEXC-INDEXO)/(INDEXH-INDEXL)*VOL,10)/1000+50;真金:IF(CROSS(WVAD10,50) AND 关注>50 AND 动力1<400 ANDZIG(1,19)>REF(ZIG(1,19),1),200,50),LINETHICK2,COLORBLUE;白银:IF(CROSS(WVAD10,50) AND 动力1<400 AND ZIG(1,19)>REF(ZIG(1,19),1),150,50),LINETHICK2,COLORYELLOW;铜钱:IF(CROSS(WVAD10,50),100,50),LINETHICK2,COLORRED;Var2:=(INDEXC+INDEXH+INDEXL)/3;Var3:=EMA(Var2,10);Var4:=REF(Var3,1);{持股:}STICKLINE(Var3>Var4,258,288,2,0),COLOR0066FF,linethick2;{持币:}STICKLINE(Var3<Var4,218,248,2,0),COLORgreen,linethick2;大盘:=COUNT(INDEXC>REF(INDEXC,1),3)=3; {连续N天上涨} 动力:=COUNT(动力1<REF(动力1,1),3)=3; {连续N日下跌}DRAWTEXT(FILTER(大盘AND 动力,2),动力1,'小心'),ALIGN1,ColorFFE900;DRAWICON(FILTER(大盘 AND 动力,2),动力1+30,8),ALIGN1;50,LINETHICK2,COLORYELLOW;250,LINETHICK2,COLORff00ff;stickline(c>0,400,400,5,0),LINETHICK2,COLORGREEN;{有之字转向ZIG未来数据是真金、白银只是告诉你多空一个拐点 ,不影响操作, 真正信号是不会逃掉};{大盘预测} (TDX主图)MA1:MA(CLOSE,5);MA2:MA(CLOSE,9),LINETHICK2;MA3:MA(CLOSE,14),LINETHICK2;MA4:MA(CLOSE,20);MA5:MA(CLOSE,30);MA6:MA(CLOSE,117);条件:CROSS(MA2,INDEXC) AND MA3>REF(MA3,1) AND MA1<REF(MA1,1),NODRAW;DRAWTEXT(条件,H*1.015,'↙大跌开始');DRAWTEXT(5,10,'■ 跌破9日均线或14日均线要注意: '),COLOR00FFFF,LINETHICK3,NODRAW;DRAWTEXT(5,8,' 大盘'),COLOR00A9FF,LINETHICK5,NODRAW;DRAWTEXT(5,30,'■大盘指数跌破9日均线第二第三日5日'),COLORFFFF00,LINETHICK3,NODRAW;DRAWTEXT(22,50,'均线回升可解除大跌信号'),COLORFFFF00,LINETHICK3,NODRAW;VAR1:=EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*4,7);休息: DRAWTEXT(CROSS(3,VAR1),L,'休息了↗'),COLOR00FFFF;{专测大盘} (TDX副图)LC:=REF(CLOSE,1);动力1:EMA(EMA((SUM(IF(INDEXC>LC,VOL,0),42)/SUM(IF(INDEXC<= LC,VOL,0),42)),5),2)*100,COLORGRAY,LINETHICK2;动力2:EMA(EMA((SUM(IF(INDEXC>LC,VOL,0),55)/SUM(IF(INDEXC<= LC,VOL,0),55)),5),2)*100,COLORD49D56,LINETHICK2;STICKLINE(CROSS(250,动力1),350,400,9,0),COLOR00FF00;STICKLINE(CROSS(400,动力1),300,400,9,0),COLORFF00FF;关注:IF(动力1<70,70,50),LINETHICK2,COLORFFCC66;WVAD10:=MA((INDEXC-INDEXO)/(INDEXH-INDEXL)*VOL,10)/1000+50;真金:IF(CROSS(WVAD10,50) AND 关注>50 AND 动力1<400 ANDZIG(1,19)>REF(ZIG(1,19),1),200,50),LINETHICK2,COLORBLUE;白银:IF(CROSS(WVAD10,50) AND 动力1<400 AND ZIG(1,19)>REF(ZIG(1,19),1),150,50),LINETHICK2,COLORYELLOW;铜钱:IF(CROSS(WVAD10,50),100,50),LINETHICK2,COLORRED;VAR2:=(INDEXC+INDEXH+INDEXL)/3;VAR3:=EMA(VAR2,10);VAR4:=REF(VAR3,1);{持股:}STICKLINE(VAR3>VAR4,258,288,2,0),COLOR0066FF,LINETHIC K2;{持币:}STICKLINE(VAR3<VAR4,218,248,2,0),COLORGREEN,LINETHIC K2;大盘:=COUNT(INDEXC>REF(INDEXC,1),3)=3; {连续N天上涨}动力:=COUNT(动力1<REF(动力1,1),3)=3; {连续N日下跌}DRAWTEXT(FILTER(大盘AND 动力,2),动力1,'小心'),COLORFFE900;DRAWICON(FILTER(大盘 AND 动力,2),动力1+30,8);50,LINETHICK2,COLORYELLOW;250,LINETHICK2,COLORFF00FF;STICKLINE(C>0,400,400,5,0),LINETHICK2,COLORGREEN;。
通达信指标公式源码江恩斐波 很实用的趋势分析主图指标
江恩斐波很实用的趋势分析主图指标很实用的趋势分析主图,重点支撑、压力分析工具,提前预测行情类型走势。
HDAY:=20;LDAY:=20;上角度:=70;下角度:=70;调点:=3;CURR:=CURRBARSCOUNT;TCH:=CONST(FINDHIGH(H,0,HDAY*10,1));GTT:=CONST(BARSLAST(TCH=H))+1;SX跌H:=CONST(IF(GTT=1,H,REF(H,GTT-1)));BCL:=CONST(FINDLOW(L,0,LDAY*10,1));DTT:=CONST(BARSLAST(BCL=L))+1;SX涨L:=CONST(IF(DTT=1,L,REF(L,DTT-1)));涨点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=SX涨L)+1));跌点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=SX跌H)+1));最低:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,涨点,跌点)));L斜率:=下角度/IF(C<300,1000,10);最高:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,跌点,涨点)));H斜率:=上角度/IF(C<300,1000,10);IM68:=((SX跌H-SX涨L)/8-(SX跌H-SX涨L)/8);GH跌X:=SX跌H+(SX跌H-SX涨L)/8;DL涨X:=SX涨L-(SX跌H-SX涨L)/8;GTHT:=IF(DTT>GTT,DTT,GTT);R:=ABS(GTT-DTT);DHH:DRAWBAND(IF(CURR<=GTHT,SX跌H,DRAWNULL),RGB(0,120,120),SX 跌H,RGB(8,168,168));DLL:DRAWBAND(IF(CURR<=GTHT,SX涨L,DRAWNULL),RGB(0,120,120),SX涨L,RGB(0,160,160));STICKLINE(CURRBARSCOUNT=GTT,SX跌H,SX涨L,0,0),COLOR556600; STICKLINE(CURRBARSCOUNT=DTT,SX跌H,SX涨L,0,0),COLOR666666; STICKLINE(CURRBARSCOUNT=1,SX跌H,SX涨L,0,0),COLOR556600;天线:=SX跌H;地线:=SX涨L;K:=(天线-地线)/(IF(跌点>=涨点,跌点,涨点)-IF(跌点>=涨点,涨点,跌点));上斜线:=IF(地线+CONST(L斜率*4.00)*最低>=地线,地线+CONST(L斜率*4.00)*最低,DRAWNULL);上斜线0:=IF(地线+CONST(L斜率*2.00)*最低>=地线,地线+CONST(L斜率*2.00)*最低,DRAWNULL);上斜线1:=IF(地线+CONST(L斜率*1.5)*最低>=地线,地线+CONST(L斜率*1.5)*最低,DRAWNULL);上斜线2:=IF(地线+CONST(L斜率*1.00)*最低>=地线,地线+CONST(L斜率*1.000)*最低,DRAWNULL);上斜线3:=IF(地线+CONST(L斜率*0.70)*最低>=地线,地线+CONST(L斜率*0.70)*最低,DRAWNULL);上斜线4:=IF(地线+CONST(L斜率*0.50)*最低>=地线,地线+CONST(L斜率*0.50)*最低,DRAWNULL);上斜线5:=IF(地线+CONST(L斜率*0.365)*最低>=地线,地线+CONST(L斜率*0.365)*最低,DRAWNULL);上斜线6:=IF(地线+CONST(L斜率*0.250)*最低>=地线,地线+CONST(L斜率*0.250)*最低,DRAWNULL);上斜线7:=IF(地线+CONST(L斜率*0.165)*最低>=地线,地线+CONST(L斜率*0.165)*最低,DRAWNULL);上斜线8:=IF(地线+CONST(L斜率*0.123)*最低>=地线,地线+CONST(L斜率*0.123)*最低,DRAWNULL);上斜线9:=IF(地线+CONST(L斜率*0.06)*最低>=地线,地线+CONST(L斜率*0.06)*最低,DRAWNULL);上9:IF(上斜线9<=天线*1.05,上斜线9,DRAWNULL),COLORAA00AA,DOTLINE; 上8:IF(上斜线8<=天线*1.05,上斜线8,DRAWNULL),COLORAA00AA,DOTLINE; 上7:IF(上斜线7<=天线*1.05,上斜线7,DRAWNULL),COLORAA00AA,DOTLINE; 上6:IF(上斜线6<=天线*1.05,上斜线6,DRAWNULL),COLORAA00AA,DOTLINE; 上5:IF(上斜线5<=天线*1.05,上斜线5,DRAWNULL),COLORAA00AA,DOTLINE; 上4:IF(上斜线4<=天线*1.05,上斜线4,DRAWNULL),COLOR0000FF,DOTLINE; 上3:IF(上斜线3<=天线*1.05,上斜线3,DRAWNULL),COLORAA00AA,DOTLINE; 上2:IF(上斜线2<=天线*1.05,上斜线2,DRAWNULL),COLORAA00AA,DOTLINE; 上1:IF(上斜线1<=天线*1.05,上斜线1,DRAWNULL),COLORAA00AA,DOTLINE; 上0:IF(上斜线0<=天线*1.05,上斜线0,DRAWNULL),COLORAA00AA,DOTLINE; 上:IF(上斜线<=天线*1.05,上斜线,DRAWNULL),COLORAA00AA,DOTLINE;下斜线:=IF(天线-CONST(H斜率*4.00)*最高<=天线,天线-CONST(H斜率*4.00)*最高,DRAWNULL);下斜线0:=IF(天线-CONST(H斜率*2.00)*最高<=天线,天线-CONST(H斜率*2.00)*最高,DRAWNULL);下斜线1:=IF(天线-CONST(H斜率*1.500)*最高<=天线,天线-CONST(H斜率*1.500)*最高,DRAWNULL);下斜线2:=IF(天线-CONST(H斜率*1.000)*最高<=天线,天线-CONST(H斜率*1.000)*最高,DRAWNULL);下斜线3:=IF(天线-CONST(H斜率*0.70)*最高<=天线,天线-CONST(H斜率*0.70)*最高,DRAWNULL);下斜线4:=IF(天线-CONST(H斜率*0.50)*最高<=天线,天线-CONST(H斜率*0.50)*最高,DRAWNULL);下斜线5:=IF(天线-CONST(H斜率*0.365)*最高<=天线,天线-CONST(H斜率*0.365)*最高,DRAWNULL);下斜线6:=IF(天线-CONST(H斜率*0.250)*最高<=天线,天线-CONST(H斜率*0.250)*最高,DRAWNULL);下斜线7:=IF(天线-CONST(H斜率*0.165)*最高<=天线,天线-CONST(H斜率*0.165)*最高,DRAWNULL);下斜线8:=IF(天线-CONST(H斜率*0.123)*最高<=天线,天线-CONST(H斜率*0.123)*最高,DRAWNULL);下斜线9:=IF(天线-CONST(H斜率*0.06)*最高<=天线,天线-CONST(H斜率*0.06)*最高,DRAWNULL);下9:IF(下斜线9>=地线*0.95,下斜线9,DRAWNULL),COLORAAAAAA,DOTLINE; 下8:IF(下斜线8>=地线*0.95,下斜线8,DRAWNULL),COLORAAAAAA,DOTLINE; 下7:IF(下斜线7>=地线*0.95,下斜线7,DRAWNULL),COLORAAAAAA,DOTLINE; 下6:IF(下斜线6>=地线*0.95,下斜线6,DRAWNULL),COLORAAAAAA,DOTLINE; 下5:IF(下斜线5>=地线*0.95,下斜线5,DRAWNULL),COLORAAAAAA,DOTLINE; 下4:IF(下斜线4>=地线*0.95,下斜线4,DRAWNULL),COLOR0000FF,DOTLINE; 下3:IF(下斜线3>=地线*0.95,下斜线3,DRAWNULL),COLORAAAAAA,DOTLINE; 下2:IF(下斜线2>=地线*0.95,下斜线2,DRAWNULL),COLORAAAAAA,DOTLINE; 下1:IF(下斜线1>=地线*0.95,下斜线1,DRAWNULL),COLORAAAAAA,DOTLINE; 下0:IF(下斜线0>=地线*0.95,下斜线0,DRAWNULL),COLORAAAAAA,DOTLINE; 下:IF(下斜线>=地线*0.95,下斜线,DRAWNULL),COLORAAAAAA,DOTLINE; {黄金分割}X146:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.146,DRAWNULL),DOTLINE,COLOR556600;DRAWTEXT(CURR=GTHT,(X146)*1.001,STRCAT(' 0.146%%',CON2STR(X146,3))),COLOR889900;X191:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.191,DRAWNULL),DOTLINE,COLOR556600;DRAWTEXT(CURR=GTHT,(X191)*1.001,STRCAT(' 0.191%%',CON2STR(X191,3))),COLOR889900;X236:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.236,DRAWNULL),DOTLINE,COLOR556600;DRAWTEXT(CURR=GTHT,(X236)*1.001,STRCAT(' 0.236%%',CON2STR(X236,3))),COLOR889900;X382:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.382,DRAWNULL),DOTLINE,COLOR556600;DRAWTEXT(CURR=GTHT,(X382)*1.001,STRCAT(' 0.382%%',CON2STR(X382,3))),COLOR889900;X500:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.500,DRAWNULL),DOTLINE,COLOR556600;DRAWTEXT(CURR=GTHT,(X500)*1.001,STRCAT(' 0.500%%',CON2STR(X500,3))),COLOR889900;X618:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.618,DRAWNULL),DOTLINE,COLOR556600;DRAWTEXT(CURR=GTHT,(X618)*1.001,STRCAT(' 0.618%%',CON2STR(X618,3))),COLOR889900;X764:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.764,DRAWNULL),DOTLINE,COLOR556600;DRAWTEXT(CURR=GTHT,(X764)*1.001,STRCAT(' 0.764%%',CON2STR(X764,3))),COLOR889900;X809:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.809,DRAWNULL),DOTLINE,COLOR556600;DRAWTEXT(CURR=GTHT,(X809)*1.001,STRCAT(' 0.809%%',CON2STR(X809,3))),COLOR889900;X854:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.854,DRAWNULL),DOTLINE,COLOR556600;DRAWTEXT(CURR=GTHT,(X854)*1.001,STRCAT(' 0.854%%',CON2STR(X854,3))),COLOR889900;{斐波那契周期}DRAWTEXT(CURRBARSCOUNT=GTT,SX跌H*1.02,'斐波那契下跌周期'),COLOR00FF00;DRAWTEXT(CURRBARSCOUNT=GTT,SX跌H*1.01,'1'),COLOR00FF00; STICKLINE(CURRBARSCOUNT=GTT-2,SX跌H,SX涨L,0,0),COLOR556600; DRAWTEXT(CURRBARSCOUNT=GTT-2,SX跌H*1.01,'3'),COLOR00FF00; STICKLINE(CURRBARSCOUNT=GTT-4,SX跌H,SX涨L,0,0),COLOR556600; DRAWTEXT(CURRBARSCOUNT=GTT-4,SX跌H*1.01,'5'),COLOR00FF00; STICKLINE(CURRBARSCOUNT=GTT-7,SX跌H,SX涨L,0,0),COLOR556600; DRAWTEXT(CURRBARSCOUNT=GTT-7,SX跌H*1.01,'8'),COLOR00FF00; STICKLINE(CURRBARSCOUNT=GTT-12,SX跌H,SX涨L,0,0),COLOR556600; DRAWTEXT(CURRBARSCOUNT=GTT-12,SX跌H*1.01,'13'),COLOR00FF00; STICKLINE(CURRBARSCOUNT=GTT-20,SX跌H,SX涨L,0,0),COLOR556600; DRAWTEXT(CURRBARSCOUNT=GTT-20,SX跌H*1.01,'21'),COLOR00FF00; STICKLINE(CURRBARSCOUNT=GTT-33,SX跌H,SX涨L,0,0),COLOR556600; DRAWTEXT(CURRBARSCOUNT=GTT-33,SX跌H*1.01,'34 '),COLOR00FF00; STICKLINE(CURRBARSCOUNT=GTT-54,SX跌H,SX涨L,0,0),COLOR556600; DRAWTEXT(CURRBARSCOUNT=GTT-54,SX跌H*1.01,'55'),COLOR00FF00; STICKLINE(CURRBARSCOUNT=GTT-67,SX跌H,SX涨L,0,0),COLOR556600; DRAWTEXT(CURRBARSCOUNT=GTT-67,SX跌H*1.01,'68'),COLOR00FF00; STICKLINE(CURRBARSCOUNT=GTT-88,SX跌H,SX涨L,0,0),COLOR556600; DRAWTEXT(CURRBARSCOUNT=GTT-88,SX跌H*1.01,'89'),COLOR00FF00; STICKLINE(CURRBARSCOUNT=GTT-109,SX跌H,SX涨L,0,0),COLOR556600; DRAWTEXT(CURRBARSCOUNT=GTT-109,SX跌H*1.01,'110'),COLOR00FF00; STICKLINE(CURRBARSCOUNT=GTT-143,SX跌H,SX涨L,0,0),COLOR556600; DRAWTEXT(CURRBARSCOUNT=GTT-143,SX跌H*1.01,'144'),COLOR00FF00; DRAWTEXT(CURRBARSCOUNT=DTT,SX涨L*0.96,'斐波那契上升周期'),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=DTT,SX涨L*0.98,'1'),COLOR0000FF; STICKLINE(CURRBARSCOUNT=DTT-2,SX跌H,SX涨L,0,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=DTT-2,SX涨L*0.98,'3'),COLOR0000FF; STICKLINE(CURRBARSCOUNT=DTT-4,SX跌H,SX涨L,0,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=DTT-4,SX涨L*0.98,'5'),COLOR0000FF; STICKLINE(CURRBARSCOUNT=DTT-7,SX跌H,SX涨L,0,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=DTT-7,SX涨L*0.98,'8'),COLOR0000FF; STICKLINE(CURRBARSCOUNT=DTT-12,SX跌H,SX涨L,0,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=DTT-12,SX涨L*0.98,'13'),COLOR0000FF;STICKLINE(CURRBARSCOUNT=DTT-20,SX跌H,SX涨L,0,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=DTT-20,SX涨L*0.98.01,'21'),COLOR0000FF; STICKLINE(CURRBARSCOUNT=DTT-33,SX跌H,SX涨L,0,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=DTT-33,SX涨L*0.98,'34'),COLOR0000FF; STICKLINE(CURRBARSCOUNT=DTT-54,SX跌H,SX涨L,0,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=DTT-54,SX涨L*0.98,'55'),COLOR0000FF; STICKLINE(CURRBARSCOUNT=DTT-67,SX跌H,SX涨L,0,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=DTT-67,SX涨L*0.98,'68'),COLOR0000FF; STICKLINE(CURRBARSCOUNT=DTT-88,SX跌H,SX涨L,0,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=DTT-88,SX涨L*0.98,'89'),COLOR0000FF; STICKLINE(CURRBARSCOUNT=DTT-109,SX跌H,SX涨L,0,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=DTT-109,SX涨L*0.98,'110'),COLOR0000FF; STICKLINE(CURRBARSCOUNT=DTT-143,SX跌H,SX涨L,0,0),COLORAA00AA; DRAWTEXT(CURRBARSCOUNT=DTT-143,SX涨L*0.98,'144'),COLOR0000FF; A1:=C>REF(C,4);NT:=BARSLASTCOUNT(A1);TJ11:=NT=9;TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT;DRAWTEXT(AY>0,H*1.01,VAR2STR(AY,0)),COLORFF00FF;DRAWTEXT(NT=9,H*1.01,'9'),COLORGREEN;B1:=C<REF(C,4);NT0:=BARSLASTCOUNT(B1);TJ21:=NT0=9 ;TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0; DRAWTEXT(AY1>0,L*0.99,VAR2STR(AY1,0)),COLORGREEN; DRAWTEXT(NT0=9,L*0.99,'9'),COLORGREEN;。
大盘逃顶主图源码通达信指标公式源码
此超好用,精准,无未来,绝不漂移,是判断趋势的绝佳好指标,一直在使用X_1:=LLV(LOW,9);X_2:=LLV(LOW,14);X_3:=LLV(LOW,19);X_4:=LLV(LOW,29);X_5:=LLV(LOW,39);X_6:=LLV(LOW,59);X_7:=LLV(LOW,99);X_8:=LLV(LOW,119);X_9:=LLV(LOW,199);X_10:=REF(BARSLAST(LOW=X_1),1)+1;X_11:=REF(BARSLAST(LOW=X_2),1)+1;X_12:=REF(BARSLAST(LOW=X_3),1)+1;X_13:=REF(BARSLAST(LOW=X_4),1)+1;X_14:=REF(BARSLAST(LOW=X_5),1)+1;X_15:=REF(BARSLAST(LOW=X_6),1)+1;X_16:=REF(BARSLAST(LOW=X_7),1)+1;X_17:=REF(BARSLAST(LOW=X_8),1)+1;X_18:=REF(BARSLAST(LOW=X_9),1)+1;X_19:=LOW<REF(LOW,X_10) AND MACD.DIF>REF(MACD.DIF,X_10);X_20:=LOW<REF(LOW,X_11) AND MACD.DIF>REF(MACD.DIF,X_11);X_21:=LOW<REF(LOW,X_12) AND MACD.DIF>REF(MACD.DIF,X_12);X_22:=LOW<REF(LOW,X_13) AND MACD.DIF>REF(MACD.DIF,X_13);X_23:=LOW<REF(LOW,X_14) AND MACD.DIF>REF(MACD.DIF,X_14);X_24:=LOW<REF(LOW,X_15) AND MACD.DIF>REF(MACD.DIF,X_15);X_25:=LOW<REF(LOW,X_16) AND MACD.DIF>REF(MACD.DIF,X_16);X_26:=LOW<REF(LOW,X_17) AND MACD.DIF>REF(MACD.DIF,X_17);X_27:=LOW<REF(LOW,X_18) AND MACD.DIF>REF(MACD.DIF,X_18);X_28:=X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24 OR X_25 OR X_26 OR X_27; X_29:=CROSS(MACD.DIF,MACD.DEA) AND COUNT(X_28,10)>=1;X_30:=BARSLAST(REF(CROSS(MACD.DIF,MACD.DEA),1))+1;X_31:=CROSS(MACD.DIF,MACD.DEA) AND MACD.DIF>REF(MACD.DIF,X_30) AND LOW<REF(LOW,X_30);X_32:=EMA(CLOSE,12)-EMA(CLOSE,26);X_33:=EMA(X_32,9);X_34:=2*(X_32-X_33);X_35:=BARSLAST(REF(X_34,1)<0 AND X_34>0);X_36:=LLVBARS(X_34,X_35+18);X_37:=IF(X_36>X_35,REF(X_34,X_36),0);X_38:=LLVBARS(X_32,X_35+18);X_39:=IF(X_38>X_35,REF(X_32,X_38),0);X_40:=X_34<0 AND X_34>X_37 AND X_32<0 AND X_32>X_39 AND CLOSE=LLV(CLOSE,X_35+18) AND X_37<0 AND X_39<0;X_41:=REF(X_40,1)=1 AND X_34>REF(X_34,1) AND X_35>=10;X_42:=X_29 OR X_31 OR X_41 AND NOT(EVERY(ABS(MACD.DIF-MACD.DEA)>0.1,3));X_43:=1;X_44:=MA(CLOSE,13);X_45:=100-ABS((CLOSE-X_44)/X_44*100);X_46:=LLV(LOW,75);X_47:=HHV(HIGH,75);X_48:=(X_47-X_46)/100;X_49:=SMA((CLOSE-X_46)/X_48,20,1);X_50:=SMA((OPEN-X_46)/X_48,20,1);X_51:=3*X_49-2*SMA(X_49,15,1);X_52:=3*X_50-2*SMA(X_50,15,1);X_53:=100-X_52;X_54:=(100-X_51)*X_43;X_55:=X_54>X_45;X_56:=REF(LOW,1)*0.9;X_57:=LOW*0.9;X_58:=EMA(X_57,30);X_59:=CLOSE-REF(CLOSE,1);X_60:=MAX(X_59,0);X_61:=ABS(X_59);X_62:=SMA(X_60,7,1)/SMA(X_61,7,1)*100;X_63:=SMA(X_60,13,1)/SMA(X_61,13,1)*100;X_64:=BARSCOUNT(CLOSE);X_65:=SMA(MAX(X_59,0),6,1)/SMA(ABS(X_59),6,1)*100;X_66:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;X_67:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;X_68:=SMA((SMA(X_67,4,1)-50)*2,3,1);X_69:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;X_70:=SMA(X_69,4,1);X_71:=SMA(X_70,3,1);X_72:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;X_73:=X_65<=25 AND X_66<(-95) AND X_72>20 AND X_68<(-30) AND X_71<30 AND X_58-CLOSE>=(-0.25) AND X_62<22 AND X_63<28 AND X_64>50;X_74:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));X_75:=VOL;X_76:=IF(CLOSE>OPEN,ABS(X_74*(HIGH-LOW)),IF(CLOSE<OPEN,ABS(X_74*(HIGH-OP EN+(CLOSE-LOW))),ABS(VOL/2)));X_77:=IF(CLOSE>OPEN,ABS(0-X_74*(HIGH-CLOSE+(OPEN-LOW))),IF(CLOSE<OPEN,AB S(0-X_74*(HIGH-LOW)),ABS(0-VOL/2)));X_78:=X_73 AND X_76>X_77;X_79:=BARSLAST(X_73)>=1 AND CLOSE>REF(CLOSE,BARSLAST(X_73))*1.01 AND COUNT(X_73,2)=1;X_80:=EMA(CLOSE,12)-EMA(CLOSE,26);X_81:=EMA(X_80,9);X_82:=2*(X_80-X_81);X_83:=BARSLAST(REF(X_82,1)<0 AND X_82>0);X_84:=LLVBARS(X_82,X_83+20);X_85:=IF(X_84>X_83,REF(X_82,X_84),0);X_86:=LLVBARS(X_80,X_83+20);X_87:=IF(X_86>X_83,REF(X_80,X_86),0);X_88:=X_82<0 AND X_82>X_85 AND X_80<0 AND X_80>X_87 AND CLOSE=LLV(CLOSE,X_83+20) AND X_85<0 AND X_87<0;X_89:=REF(X_88,1)=1 AND X_82>REF(X_82,1);X_90:=EXIST(CLOSE/REF(CLOSE,1)>1.055,60);X_91:=X_89 AND X_90;X_92:=X_78 OR X_79 OR X_91;X_93:=HHV(HIGH,9);X_94:=HHV(HIGH,14);X_95:=HHV(HIGH,19);X_96:=HHV(HIGH,29);X_97:=HHV(HIGH,39);X_98:=HHV(HIGH,59);X_99:=HHV(HIGH,99);X_100:=HHV(HIGH,119);X_101:=HHV(HIGH,199);X_102:=REF(BARSLAST(HIGH=X_93),1)+1;X_103:=REF(BARSLAST(HIGH=X_94),1)+1;X_104:=REF(BARSLAST(HIGH=X_95),1)+1;X_105:=REF(BARSLAST(HIGH=X_96),1)+1;X_106:=REF(BARSLAST(HIGH=X_97),1)+1;X_107:=REF(BARSLAST(HIGH=X_98),1)+1;X_108:=REF(BARSLAST(HIGH=X_99),1)+1;X_109:=REF(BARSLAST(HIGH=X_100),1)+1;X_110:=REF(BARSLAST(HIGH=X_101),1)+1;X_111:=HIGH>REF(HIGH,X_102) AND MACD.DIF<REF(MACD.DIF,X_102);X_112:=HIGH>REF(HIGH,X_103) AND MACD.DIF<REF(MACD.DIF,X_103);X_113:=HIGH>REF(HIGH,X_104) AND MACD.DIF<REF(MACD.DIF,X_104);X_114:=HIGH>REF(HIGH,X_105) AND MACD.DIF<REF(MACD.DIF,X_105);X_115:=HIGH>REF(HIGH,X_106) AND MACD.DIF<REF(MACD.DIF,X_106);X_116:=HIGH>REF(HIGH,X_107) AND MACD.DIF<REF(MACD.DIF,X_107);X_117:=HIGH>REF(HIGH,X_108) AND MACD.DIF<REF(MACD.DIF,X_108);X_118:=HIGH>REF(HIGH,X_109) AND MACD.DIF<REF(MACD.DIF,X_109);X_119:=HIGH>REF(HIGH,X_110) AND MACD.DIF<REF(MACD.DIF,X_110);X_120:=X_111 OR X_112 OR X_113 OR X_114 OR X_115 OR X_116 OR X_117 OR X_118 OR X_119;X_121:=CROSS(MACD.DEA,MACD.DIF);X_122:=BARSLAST(REF(X_121,1))+1;X_123:=MACD.DIF<REF(MACD.DIF,X_122);X_124:=HIGH>REF(HIGH,X_122);X_125:=X_121 AND X_123 AND X_124;X_126:=X_121 AND COUNT(X_120,10)>=1;X_127:=X_125 OR X_126;X_128:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;X_129:=SMA(X_128,3,1);X_130:=SMA(X_129,3,1);X_131:=3*X_129-2*X_130;X_132:=CROSS(X_130,X_129);X_133:=BARSLAST(REF(X_132,1))+1;X_134:=X_132 AND X_133>3 AND HIGH>REF(HIGH,X_133) AND REF(X_129,1)<REF(X_129,X_133+1);DRAWICON(X_42,LOW*0.97,23);DRAWICON(X_92,LOW*0.97,1);DRAWICON(X_127,HIGH*1.02,15);X_135:=FILTER(EVERY(CLOSE>REF(CLOSE,4),9),9);JZ:DRAWICON(X_135,HIGH*1.02,39);DRAWICON(X_134,HIGH*1.02,2);X_136:=X_127 AND COUNT(JZ,5)>0;X_137:=X_127 AND COUNT(X_134,5)>0;X_138:=X_136 OR X_137;DRAWICON(X_138,HIGH*1.04,15);MA1:MA(CLOSE,20),COLORGREEN;MA2:MA(CLOSE,55),COLORWHITE;IF(MA1>=REF(MA1,1),MA1,DRAWNULL),COLORRED;。
通达信指标公式源码极品主图(主图 源码)
PT := REF(HIGH,1)-REF(LOW,1);重心:(HIGH + LOW + CLOSE)/3,NODRAW;压力Ⅰ: 2*重心-LOW,NODRAW;压力Ⅱ:重心+ PT,NODRAW;支撑Ⅰ:2*重心-HIGH,NODRAW;支撑Ⅱ: 重心- PT,NODRAW;MA5:MA(C,5),COLOR888899;MA20:MA(C,20),COLOR0099FF;MA30:MA(C,30),COLORYELLOW;MA60:MA(C,60),COLOR00FF00;MA250:MA(C,250),COLOR0099FF;AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'B'),COLORBDB76B;X1:=(C+L+H)/3;DD:=TOTALCAPITAL;SS:=FINANCE(7);GG:=FINANCE(33);TH:=DYNAINFO(39);A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L ,55))/(HHV(H,55)-LLV(L,55))*100,5,1);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'S'),COLORGREEN;双线持币:HHV(MA(HIGH,(3)),2),LINETHICK2,COLOR00FF00;单线持股:LLV(MA(HIGH,(3)),1),LINETHICK2,COLOR0000FF;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-2 0;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 ANDVAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 ANDVAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 ANDVAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.02,'大笔出货'),LINETHICK1,COLORFFCC66;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10))) + IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10))); DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T2:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)) AND (DSLX < DSLX1)),1,0));T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T17:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 < V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND(V1 >= V2)),1,0));T23:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0));T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0));T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)),1,0));DRAWTEXT(T1=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ; DRAWTEXT(T2=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORFF00FF ; DRAWTEXT(T3=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORFF00FF ; DRAWTEXT(T4=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORFF00FF ; DRAWTEXT(T5=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=60,AAA*0.98,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORFF00FF ; DRAWTEXT(T7=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望。
通达信史上最牛主图指标
通达信史上最牛主图指标N:=5;M:=13;上:EMA(C,3),COLORRED,LINETHICK1;中:EMA(C,5),COLOR00FF00,LINETHICK1;下:EMA(中,5),COLORWHITE,LINETHICK1;超买:MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORG REEN,LINETHICK2;超卖:MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORR ED,LINETHICK2;获利盘%:WINNER(CLOSE)*100,NODRAW,COLORWHITE;{此句为计算获利盘比例,不需要可以不要}趋势线:EMA(((SLOPE(CLOSE,21) * 20) +CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA( CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:=REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLOR CC66FF;阻力:=REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLOR GREEN;MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:=MA(CLOSE,N),COLOR888899;MA13:=MA(CLOSE,M),COLORFF00F0,LINETHICK2;V AR1:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) ANDREF(C,3)=LLV(C,4) AND C>=REF(C,1) ORREF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);V AR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);V AR3:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) ORREF(C,1)=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=REF(C,1);V AR5:=REF(C,1)=HHV(C,4) AND CREF(V5,1) ANDREF(V5,1)OPEN;V AR8:=V AR7 AND COUNT(VAR6,2);V AR9:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C -REF(C,1)),6),6);V AR10:=EMA(MA(C,13),13);V AR11:=FILTER((LLV(V AR9,2)=LLV(V AR9,7) AND COUNT(V AR950,2) ANDCROSS(MA(V AR9,2),V AR9))=1,1);V AR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;V AR14:=FILTER(((CROSS(V AR13,0) OR CROSS(C,V AR10))AND V AR11)=1,3);V AR15:=MA(C,18)>=REF(MA(C,18),3) ANDCROSS(C,MA(C,18));V AR16:=V AR8 AND NOT(REF(VAR8,1));强攻:=IF(MA3>REF(MA3,1) ANDMA3>=0,MA13,DRAWNULL),COLORYELLOW,LINETHIC K2;回调:=IF(MA30,MA13,DRAWNULL),COLORGREEN,LINETHI CK2;{KDJ}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))* 100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(V AR14 OR V AR15) AND V AR11;买2:=(V AR14 OR V AR15) AND V AR4;买3:=(V AR14 OR V AR15) AND V AR2;买4:=(V AR2 AND V AR11) OR (V AR4 AND V AR11);买5:=(金叉AND V AR4) OR (金叉AND V AR2) OR (金叉AND V AR11);{涨停}STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 ANDCLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;{跌停}STICKLINE(CLOSE=CLOSE,CLOSE,OPEN,1.3,0),COLORF FBB00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.8,0),COLORC YAN;{红}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.3,0),COLOR000 099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),COLOR000 0CC;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.3,0),COLOR000 0FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.8,0),COLORCC 66FF;{绿}STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR0 09900;STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,2.4,0),COLOR0 0BB00;STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,1.3,0),COLOR0 0DD00;STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,0.8,0),COLOR0 0FF00;{灰}STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR9 99999;STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORB BBBBB;STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,1.3,0),COLORD DDDDD;STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,0.8,0),COLORF FFFFF;STICKLINE(金叉,OPEN,CLOSE,1,0),COLORYELLOW;STICKLINE(死叉,OPEN,CLOSE,1,0),COLOR000099;DRAWICON(V AR16,LOW-0.02,7);DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 买5,LOW-0.01,1);DRAWICON(死叉OR V AR12 ORCROSS(40,V AR9),HIGH+0.01,2);X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10; EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 ANDEMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠45升'),COLORWHITE;V AR81:=1;V AR82:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:=20,COLORYELLOW,LINETHICK2;高死叉出:=90,COLORGREEN,LINETHICK3;V AR84:=LLV(LOW,5);V AR85:=HHV(HIGH,4);C1:=(EMA((((V AR82-V AR84)/(V AR85-V AR84))*100),4)*V A R81),COLORFF00FF,LINETHICK2;C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*V AR81),COL ORFFFFFF,LINETHICK2;条件:=CROSS(C1,C2) AND C180;DRAWTEXT(条件0,H*1.02,'S'),COLORBLUE;{DRAWTEXT(CROSS(C1,75),H*1.013,'险区'),COLORGREEN;}DRAWTEXT(TJ3,L*0.98,'买底'),COLORFF00FF;DRAWTEXT(TJ4,H*1.02,'逃顶'),COLORGREEN;E1:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);B0:=(AH-AL)/40;KB1:=H+B0;KB2:=L-B0;STICKLINE((E1+0)/34=FLOOR((E1+0)/34),KB2,KB2-0.8*B0 ,1,0),COLORYELLOW,LINETHICK3;DRAWTEXT((E1+0)/34=FLOOR((E1+0)/34),KB2-B0,'时窗'),COLORYELLOW;水平面:=EMA(CLOSE,89),COLOR3399FF;AAA:=(3*C+H+L+O)/6;短趋:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3 )+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AA A,8))/36;中趋:=(LLV(短趋,2)+LLV(短趋,4)+LLV(短趋,6))/3;{STICKLINE(C>中趋,短趋,中趋,0,0),COLORYELLOW;}TTJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>短趋;立桩量:=FILTER(TTJ1,5);TTJ2:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:=TTJ2=1;TTJ3:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法则:=TTJ3=1;成立:=三天法则AND 突破;条件成立:=FILTER(成立,3);DRAWICON(条件成立,L*0.91,1);DRAWTEXT(条件成立,L*0.91,'立桩'),COLORFF26FF;MA(C,9),LINETHICK0,COLORYELLOW;MA(C,21),LINETHICK0,COLORRED;IF(MA(C,9)<REF(MA(C,9),1),MA(C,9),DRAWNULL),LINET HICK0,COLORBLUE;IF(MA(C,21)<REF(MA(C,21),1),MA(C,21),DRAWNULL),LI NETHICK0,COLORGREEN;V AR90:=((((HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),4)REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DC LOSE,12)-EMA(DCLOSE,26)),9)))*2),1))) AND(REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EM A(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1)<REF((((EMA( DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12) -EMA(DCLOSE,26)),9)))*2),2))) AND(REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EM A(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)O,L*0.98,'追加'),COLORMAGENTA;DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DIF" ,"MACD.DEA"),1))+1)>C ANDREF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF"," MACD.DEA"),1))+1)C ANDREF("KDJ.K",BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1 ))+1)C ANDREF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)0,L-0.18,'R'),COLORFF00FF;{RSI底背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DEA ","MACD.DIF"),1))+1)0,H+0.16,'★M'),COLORGREEN;{MACD顶背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.D","KD J.K"),1))+1)0,H+0.08,'◎K'),COLORGREEN;{KDJ顶背离}DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI2"," RSI.RSI1"),1))+1)0,H+0.04,'R'),COLORGREEN;{RSI顶背离};。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
{大盘预测TDX主图}
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,9),LINETHICK2;
MA3:MA(CLOSE,14),LINETHICK2;
MA4:MA(CLOSE,20);
MA5:MA(CLOSE,30);
MA6:MA(CLOSE,117);
条件:=CROSS(MA2,INDEXC) AND MA3 > REF(MA3,1) AND MA1 < REF(MA1,1); DRAWTEXT(条件,H*1.015,'↙大跌开始');
DRAWTEXTABS(5,10,'■跌破9日均线或14日均线要注意: '),Color00FFFF,LINETHICK3;
DRAWTEXTABS(5,8,' 大盘'),Color00A9FF,LINETHICK5;
DRAWTEXTABS(5,30,'■大盘指数跌破9日均线第二第三日5日'),ColorFFFF00,LINETHICK3;
DRAWTEXTABS(22,50,'均线回升可解除大跌信号'),ColorFFFF00,LINETHICK3;
Var1:=EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*4,7);
休息: DRAWTEXT(CROSS(3,Var1),l,'休息了↗'),Color00FFFF,ALIGN2; {新增信号}
====================================================================== =====
{专测大盘} (DZHL2副图)
LC:=REF(CLOSE,1);
动力1:EMA(EMA((SUM(IF(INDEXC > LC,VOL,0),42)/SUM(IF(INDEXC < = LC,VOL,0),42)),5),2)*100,COLORGRAY,linethick2;
动力2:EMA(EMA((SUM(IF(INDEXC > LC,VOL,0),55)/SUM(IF(INDEXC < = LC,VOL,0),55)),5),2)*100,ColorD49D56,linethick2;
STICKLINE(CROSS(250,动力1),350,400,9,0),COLOR00ff00;
STICKLINE(CROSS(400,动力1),300,400,9,0),COLORff00ff;
关注:IF(动力1 < 70,70,50),LINETHICK2,COLORffcc66;
WV AD10:=MA((INDEXC-INDEXO)/(INDEXH-INDEXL)*VOL,10)/1000+50;
真金:IF(CROSS(WV AD10,50) AND 关注> 50 AND 动力 1 < 400 AND ZIG(1,19) > REF(ZIG(1,19),1),200,50),LINETHICK2,COLORBLUE;
白银:IF(CROSS(WV AD10,50) AND 动力 1 < 400 AND ZIG(1,19) > REF(ZIG(1,19),1),150,50),LINETHICK2,COLORYELLOW;
铜钱:IF(CROSS(WV AD10,50),100,50),LINETHICK2,COLORRED;
Var2:=(INDEXC+INDEXH+INDEXL)/3;
Var3:=EMA(Var2,10);
Var4:=REF(Var3,1);
{持股:}STICKLINE(Var3 > Var4,258,288,2,0),COLOR0066FF,linethick2;
{持币:}STICKLINE(Var3 < Var4,218,248,2,0),COLORgreen,linethick2;
大盘:=COUNT(INDEXC > REF(INDEXC,1),3)=3; {连续N天上涨}
动力:=COUNT(动力1 < REF(动力1,1),3)=3; {连续N日下跌}
DRAWTEXT(FILTER(大盘AND 动力,2),动力1,'小心'),ALIGN1,ColorFFE900; DRAWICON(FILTER(大盘AND 动力,2),动力1+30,8),ALIGN1;
50,LINETHICK2,COLORYELLOW;
250,LINETHICK2,COLORff00ff;
stickline(c > 0,400,400,5,0),LINETHICK2,COLORGREEN;。