智能辅助线通达信指标公式源码
通达信人工智能指标公式
通达信⼈⼯智能指标公式通达信⼈⼯智能指标公式股票软件源码如下:VAR1:=(C-EMA(C,7))/EMA(C,7);VAR2:=EMA(EMA(VAR1,3),3);VAR3:=EMA(EMA(VAR1,3),2);VAR4:=100*( VAR2+ VAR3);VAR5:=EMA(VAR4,2.5);BI:=100*(H+L)/2/EMA(C,17)-100;BUY1:=VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND REF(VAR4,2)<REF(VAR4,3);BUY2:=REF(BI,1)>0 AND BUY1 AND VAR4<-2;BUY3:=REF(BI,1)<0 AND BUY1 AND REF(VAR4,1)<-3;BUY4:=VAR4<0 AND CROSS(VAR4,VAR5) AND BUY1;BUY:=(BUY2 OR BUY3 OR BUY4) AND (EMA(INDEXC,5)>REF(EMA(INDEXC,5),1) OR VAR4>=REF(VAR4,1)); DRAWICON(BUY,-130,14);100;主⼒:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,COLORGREEN,LINETHICK3;散户:=EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5;BT2:=CROSS(主⼒,散户) AND 主⼒<-10;DRAWICON(CROSS(主⼒,散户) AND 主⼒<-10,主⼒,23);IF(主⼒>=REF(主⼒,1),主⼒,DRAWNULL),COLORRED,LINETHICK3;IF(主⼒<=REF(主⼒,1),主⼒,DRAWNULL),COLORGREEN,LINETHICK3;BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));主买:主动买/10000,COLORRED,LINETHICK0;{ 股旁⽹_通达信股票指标公式}主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));主卖:-主动卖/10000,COLORGREEN,LINETHICK0;参与度:主买/(主买+主卖),LINETHICK0;单⽇换⼿:=100*V/CAPITAL,LINETHICK0;⼗⽇换⼿:SUM(单⽇换⼿,10),LINETHICK0;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,10);STICKLINE(((CROSS(BIAS,乖离)AND 乖离<-3)),80,98,2,0),COLORRED;DRAWTEXT((CROSS(BIAS,乖离)AND 乖离<-3),130,'变盘'),COLORWHITE;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;顶部:=CROSS(80,RSI)*35;逃顶:=顶部;顶:=IF(逃顶>REF(逃顶,1),35,0);DRAWTEXT(顶=35,170,'逃顶'),COLOR00FF00;STICKLINE(顶部,90,0,1,0),COLORGREEN;VOLUME:=VOL;主⼒启动线:=MA(VOLUME,5);主⼒洗盘线:=MA(VOLUME,35);资⾦异动线:=MA(VOLUME,135);诱多:STICKLINE(CROSS(主⼒启动线,资⾦异动线) OR ((主⼒洗盘线 > 资⾦异动线) AND CROSS(主⼒启动线,主⼒洗盘线)),100,-3,0.5,0),COLORFFFF00;DRAWTEXT(诱多,130,'骗钱'),COLORFFFF00;VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;{DRAWICON(CROSS(82,VARR1),180,15); }DRAWTEXT(CROSS(82,VARR1),150,'逃'),COLORYELLOW;BIASW:=(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*10;狗:=(REF(DOWNNDAY(CLOSE,3),1) AND C>REF(C,1) AND BIASW>=REF(BIASW,1));DRAWTEXT(狗,160,'⾦⽜'),COLORYELLOW;STICKLINE(狗,100,-5,0.5,0),COLORYELLOW;MAN:=MA(C,3);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);MA60:=MA(C,60);D1:=(MAN-MA10)/MIN(MAN,MA10);D2:=(MAN-MA20)/MIN(MAN,MA20);D3:=(MAN-MA30)/MIN(MAN,MA30);D5:=(MA20-MA10)/MIN(MA20,MA10);D6:=(MA30-MA10)/MIN(MA30,MA10);D8:=(MA20-MA30)/MIN(MA20,MA30);DB:=MA(MIN(MIN(MIN(D1,D2),MIN(D3,D5)),MIN(D6,D8))*100,2);GJ:=(2*C+H+L)/4;底:=DB<-10 AND GJ<MA30 AND REF(DB,1)<MIN(REF(DB,2),DB);DRAWTEXT(底 AND COUNT(底,BARSLAST(NOT(DB<-10 AND GJ<MA30)))=1,160,'抄底'),COLORMAGENTA; AAWW:=C-MA(C,6);吗:=0;DRAWICON(CROSS(AAWW,吗),90,17);TJ1:=COUNT((C<O),5)>=3;TJ2:=(MIN(C,O)-L)/(H-L)>=0.5;TJ3:=L/MIN(C,O)<=0.97;TJ4:=(C-MA(C,30))/MA(C,30)*100<-10;长下影买:=TJ1 AND TJ2 AND TJ3 AND TJ4;STICKLINE(长下影买,-150,0,0.3,0),COLORFF00FF;DRAWTEXT(长下影买>0,-80,'长下影买'),COLORF8FFFF;弱转强:=CROSS(CCI,-200) AND CCI>REF(CCI,1);STICKLINE(弱转强,80,90,2,0),COLORWHITE;DRAWTEXT(弱转强,110,'出击'),COLORYELLOW;DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEAP:=EMA(DIFF,9),COLORFFFF00;MACD:=(DIFF-DEAP)*2;A1:=BARSLAST(REF(CROSS(DIFF,DEAP),1));AR1:=REF(CLOSE,1);AR2:=SMA(MAX(CLOSE-AR1,0),7,1)/SMA(ABS(CLOSE-AR1),7,1)*100;特准:STICKLINE(FILTER(REF(AR2,1)<20 AND AR2>REF(AR2,1),5),60,0,2,0),COLOR0066FF; DRAWTEXT(特准,35,'←绝杀'),COLORWHITE;增减⼒度:=(MA(CLOSE,34.000) - CLOSE) / MA(CLOSE, 34.000) * 10.000;STICKLINE(CROSS( 1.700,增减⼒度), 75,30, 1,0),COLORWHITE;DRAWTEXT(CROSS( 1.700,增减⼒度), 100,'底'),COLORWHITE;STICKLINE(FILTER(CROSS(0.019100,增减⼒度),21),120,50, 1,0),COLORFFFF00;DRAWTEXT(FILTER(CROSS(0.019100,增减⼒度),21), 150,'⼩⼼'),COLORGREEN;RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;BT1:=CROSS(RSI1,25);STICKLINE(BT1,30,50,3,0),COLORFF00FF;DRAWTEXT(BT1,75,'反弹'),COLORYELLOW;短线获利:STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,80,-50,0.3,0),COLOR0000FF;DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,50,'短买'),COLORWHITE;AA:=EMA(C,5)-EMA(C,13);BBP:=EMA(AA,3);X:=AA>REF(AA,1); Y:=REF(AA,3)>=REF(AA,2);Z:=REF(AA,2)>=REF(AA,1);Z1:=AA<BBP;注意:=X AND Y AND Z AND Z1 ;DRAWTEXT(注意,1,'启动!'),COLORYELLOW;DRAWICON(注意,10,1);OSC:=100*(CLOSE-MA(CLOSE,20));MAOSC:=EXPMEMA(OSC,6);BIASWP:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;BIASMA:=MA(BIASWP,6);F:=100*(C-REF(C,1))/REF(C,1);P1:=IF(C<REF(O,1) AND F<0,1,0);P2:=IF(C<REF(O,2) AND F<0,1,0);LIN:=IF(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,1,0);DRAWICON(LIN,120,5);SS1:=CROSS(OSC,MAOSC) AND LIN;DRAWTEXT(SS1,-45,'<=抢反弹'),COLORFFFF22;STICKLINE(SS1,-70,0,1,1),COLOR00FFFF;SS:=CROSS(OSC,MAOSC) AND CROSS(BIASWP,BIASMA) AND LIN;DRAWTEXT(SS,-100,'<=激进淘⾦'),COLORFF00FF;STICKLINE(SS,-150,0,0.3,0),COLORRED;A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)); A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));STICKLINE(B2>0,-100,-80,2,0),COLORFF00FF;DRAWTEXT(B2>0,-80,'←启动'),COLORYELLOW;STICKLINE(B3>0,-80,-60,2,0),COLORYELLOW;DRAWTEXT(B3>0,-60,'←⾛强'),COLORYELLOW;FL:=V>REF(V,1) OR V>MA(V,5);SZ:=(CROSS(C,MA(C,3)) OR CROSS(C,MA(C,5))) AND C>=O;放量上涨:=IF(FL AND SZ,1,0);STICKLINE(放量上涨,-40,-20,2,0),COLOR00FFFF;DRAWTEXT(放量上涨,-25,'<=放量上涨'),COLORFF00FF;。
经传软件主图叠加智能辅助线
经传软件的经典智能辅助线,公式代码通达信适用公式要放在主图均线里面才能正常调用智能辅助线:HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4) +15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11) +8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+ 2*REF(HHJSJDA,18)+REF(HHJSJDA,20))/210,COLORYELLOW;HHJSJDC:MA(HHJSJDB,5),COLORRED;经传软件智能辅助线使用详解经传软件智能辅助线详解序:情到浓时无怨尤,感恩,是一种处世哲学,是一种人生境界。
对于市场多一分包容、少一分抱怨,我相信你一定会收获更多。
指标解析:先看下智能辅助线的具体含义,只有指标理解了,应用起来方能得心应手。
应用范围:对于智能辅助线,个人感觉应用范围是比较广的,经常说的“线上持股、线下持币”就是其最基础的盈利模式,后面也有展伸为“线上阴线买、线下阳线抛”,细化地分析应用范围可以大到分析大盘看大势、细化到剖析板块抓龙头、甚至于个股的买卖取舍均可以得到有效解决。
而且经过对智能辅助线的长期跟踪和分析整理出来一套中轴理论,后文中会给大家以个股做案例,详细讲解此理论以便各位理解和应用。
应用技巧:1.对于大盘怎样把握以智能辅助线为界线,如果上证指数运行到线之上,就说明是可操作区域,反之如果市场运行到线下就说明处于不可操作区域。
非常实用的波段神器通达信指标公式源码
非常实用的波段神器通达信指标公式源码以下是通达信指标公式的一些源码,这些指标常被视为实用的波段神器。
1.均线指标公式:MA(CLOSE,N):=AVERAGE(CLOSE,N);MA(CLOSE,N1,N2):=MA(MA(CLOSE,N1),N2);2.相对强弱指标公式(RSI):LC:=REF(CLOSE,1);RSI(CLOSE,N):=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;3. 动量指标公式(Momentum):MOM(CLOSE,N):=CLOSE-REF(CLOSE,N);4. 平均幅度指标公式(Average True Range, ATR):TR:=MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1)),ABS(LOW-REF(CLOSE,1))),ABS(HIGH-REF(LOW,1)));ATR(N):=MA(TR,N);5. 布林带指标公式(Bollinger Bands):MB:=MA(CLOSE,N);UP:=MB+STD(CLOSE,N)*K;DN:=MB-STD(CLOSE,N)*K;6. 弗拉基米尔指标公式(Vladimir):TYP:=(HIGH+LOW+CLOSE)/3;VOLMA(CLOSE,V):=MA(VOL,V);FRAV(TYP):=MA(TYP*(HIGH-LOW),VI);FAPT:=(FRAV(TYP)/VOLMA(CLOSE,V))/FRAV(TYP)*FRAV(VOLMA(CLOSE, VI)-VOLMA(CLOSE,V));7. 成交量指标公式(Volume):VOLMA(CLOSE,N):=MA(VOL,N);以上是一些通达信指标公式的简单示例。
请注意,这些只是指标的公式描述,实际使用中可能需要根据自己的需求进行修改和优化。
通达信公式源码大全
通达信公式源码大全1. 什么是通达信公式源码?通达信公式源码是指针对通达信软件所编写的股票交易技术指标公式的源代码。
通达信是国内一款非常流行的股票分析软件,用户可以通过编写自定义的技术指标公式来进行股票的分析和交易。
2. 通达信公式源码的格式和特点通达信公式源码采用明文的形式进行存储,一般以文本文件的形式保存,以供用户进行查看和编辑。
通达信公式源码采用一套基于C语言的公式语言进行编写,具有以下特点:•简洁明了:通达信公式源码通常采用简洁的语法结构,使得用户能够清晰地理解公式的计算逻辑。
•灵活可扩展:用户可以根据自己的需求,编写自定义的指标公式,扩展通达信软件的功能。
•效率高:通达信公式源码经过优化,运行效率较高,可以在大数据量情况下进行快速计算。
3. 通达信公式源码的编写方式通达信公式源码的编写方式相对简单,下面是一个简单的例子:MA(CLOSE, 5)在这个例子中,MA代表计算均线指标,CLOSE代表收盘价,5代表计算5日均线。
用户可以根据需求,编写自定义的公式。
编写的公式可以包括各种计算方法,如均线、移动平均收敛/发散(MACD)、相对强弱指标(RSI)等。
4. 常见的通达信公式源码下面是一些常见的通达信公式源码示例:4.1. 均线指标MA(CLOSE, 5)计算5日均线的公式。
4.2. 移动平均收敛/发散(MACD)指标MACD(12, 26, 9)计算MACD指标的公式,其中12、26、9分别代表了快速线、慢速线和MACD平均线的参数。
4.3. 相对强弱指标(RSI)RSI(CLOSE, 14)计算14日相对强弱指标的公式。
4.4. 梅斯特线(MA)MA(C, 10),COLORRED;MA(C, 20),COLORGREEN;MA(C, 30),COLORBLUE;计算并绘制10日、20日和30日均线,并设置绘制的颜色。
5. 如何使用通达信公式源码要使用通达信公式源码,用户需要打开通达信软件的编辑器,在编辑器中新建一个公式文件,将公式源码内容复制到文件中,保存后即可在通达信软件中使用。
通达信指标公式源码大全
通达信指标公式源码大全Profit: EMA(EMA(EMA(High,5),5)*1.15.Color=ffffff。
LineThickness=1;Risk: EMA(EMA(High,5),5)*1.1.Color=yellow;Drawdown:EMA(MA(EMA(High,5),5),5)*1.05.Color=00FF00;Balance: EMA(EMA(EMA(High,5),5)。
Color=FF00FF。
LineThickness=1;Rebound: MA(MA(MA(High,5),5)*0.95.Color=gray。
LineThickness=1;Oversold: MA(MA(MA(Close,5),5)*0.9.Color=blue。
LineThickness=1;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),34,1)/SMA(ABS(Close-REF(Close,1)),7,1)*100;VAR9:=SMA(Max(Close-REF(Close,1),13,1)/SMA(ABS(Close-REF(Close,1)),13,1)*100;VAR10:=IF(Cross(3,16,1)=0 AND High>Low+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=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);VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);Rewritten:The profit ___ (EMA) of the high price over 5 ds。
自动画线 通达信指标公式源码
Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0;A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1);D1:=FILTER(C1,3);{高点}A2:=REF(LOW,3)=LLV(LOW,2*3+1);B2:=FILTER(A2,3);C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3);{低点}E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1; H2:=D1 AND NOT(D2 AND E1>=E2);L1:=D2 AND NOT(D1 AND E1=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);{过滤后高点}J1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HD),BARSLAST(LD))+1);J2:=J1>REF(J1,1);A3:=H;B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,REF(BARSLAST(HD),1)+2+REF(BARSLAST (HD),REF(BARSLAST(HD),1)+2));D3:=A3 AND B3 AND HD;E3:=BACKSET(D3,REF(BARSLAST(HD),1)+2);HH:=E3>REF(E3,1);{找出全部长期高点}A4:=L>REF(L,REF(BARSLAST(LD),1)+1);B4:=REF(L,REF(BARSLAST(LD),1)+1); D4:=A4 AND B4 AND LD; E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2); LL:=E4>REF(E4,1);{找出全部长期低点} DRAWICON(HH,H*1.01,8);DRAWICON(LL,L*0.999,7);H3:=HH OR ISLASTBAR OR BARSCOUNT(C)=1; {后面进行过滤,方法同前。
通达信指标公式源码 龙行副图 自用指标源码
N 1 11 3牛板金龙:3*SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1)-2*SMA(SMA((C-LLV(L,13))/(HH V(H,13)-LLV(L,13))*100,5,1),3,1),COLORYELLOW,LINETHICK2;牛板金龙1:=EMA(牛板金龙,N),COLORFFFF00,LINETHICK1;亢龙有悔:IF(牛板金龙>=90,90,100);LOWV:=LLV(C,15);HIGHV:=HHV(C,15);RSV:=EMA((C-LOWV)/(HIGHV-LOWV)*100,3);K:=EMA(RSV,3);牛股1:=REF(牛板金龙<=10,1) AND K>REF(K,1);吸筹1:=IF(牛板金龙<=10,10,0);A1:TROUGH(牛板金龙1,1,1),COLORLIGREEN,DOTLINE; VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);牛股2:=IF(CROSS(VAR1,8),80,0);吸筹2:=IF(VAR1<=8,25,0);VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,13);VAR6:=HHV(VAR4,13);VAR7:=IF(MA(CLOSE,34),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);吸筹3:=CROSS(VAR9>20,0.5);快线:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;慢线:=SMA(快线,3,1);空:=SMA(慢线,3,1);牛股3:=IF(BARSLAST(CROSS(慢线,空))<9 AND CROSS(慢线,空) AND 慢线<20,90,0); 潜龙在渊:IF(吸筹1 OR 吸筹2 OR 吸筹3,18,0),STICK,COLORGRAY;金龙出水:IF(CROSS(牛股1,0.5) OR 牛股2 OR 牛股3,58,0.0),STICK,COLORRED;。
智能主图通达信指标公式源码
智能主图通达信指标公式源码DRAWTEXT_FIX(ISLASTBAR,0,0.88,0,'{绿线熊市观望,即使冒头也不动;蓝线震荡市,K线冒头变红进半仓,⼀旦变成红线加满仓,若⼜跌破蓝线则半仓⽌损出场。
本⾦安全是第⼀位的!'),COLORWHITE;{智能主图}DIR2:=ABS(CLOSE-REF(CLOSE,30));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),30);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;M熊:EMA(DMA(CLOSE,CQ2),2),COLORGREEN,LINETHICK1;⽜熊:=M熊;M震:IF(M熊/REF(M熊,1)>0.997,M熊,DRAWNULL),COLORBLUE,LINETHICK1;M⽜:IF(M熊/REF(M熊,1)>1.001,M熊,DRAWNULL),COLORRED,LINETHICK1;XX1:=C>⽜熊AND ⽜熊>REF(⽜熊,1);DRAWTEXT_FIX(ISLASTBAR AND XX1,0,0.01,0,'【处于⽜区】'),COLORRED; XX2:=C<⽜熊AND ⽜熊<=REF(⽜熊,1);DRAWTEXT_FIX(ISLASTBAR AND XX2,0,0.01,0,'【处于熊区】'),COLORGREEN; F111:=ZIG(3,15);F211:=IF((F111> REF(F111,1)),100,80);T01:=CONST(LLVBARS(LOW,10));T11HIGH:=CONST(REF(HIGH,T01));CC1:=CONST(CURRBARSCOUNT);T02:=CONST(BARSLAST((CURRBARSCOUNT >(CC1+T01)) AND (HIGH>T11HIGH)));T12HIGH:=CONST(REF(HIGH,T02));T03:=CONST(BARSLAST((CURRBARSCOUNT >(CC1+T02)) AND (HIGH>T12HIGH)));T13HIGH:=CONST(REF(HIGH,T03));洗:DRAWLINE(CURRBARSCOUNT=T03+1, T13HIGH, ISLASTBAR, T13HIGH, 1),DOTLINE,COLORFFFFFF; AY:=REF(H,10)=HHV(H,2*10+1);QYY:=BACKSET(AY,10+1);CC:=FILTER(QYY,10) AND H=HHV(H,10+1);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);压:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORFFFF00,LINETHICK1,DOTLINE;A2:=REF(L,5)=LLV(L,2*5+1);B2:=FILTER(A2,5);C2:=BACKSET(B2,5+1);D2:=FILTER(C2,5);E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);F2:=E2>REF(E2,1);⽀:DRAWLINE(D2,L,F2,L,1),COLORLIRED,DOTLINE;⾼1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);HH1:=⾼1-(⾼1-低1)*0.191;冲:REFDATE(HH1,DATE),COLORLIGREEN;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),2) AND REF(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),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) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)=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),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=F211=100 AND VAR10;买2:=F211=100 AND (VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);F1:=ZIG(3,15);F21:=IF((F1> REF(F1,1)),100,80);VARE1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR1A:=IF(VARE1>0,VARE1,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;⼤顶0:=VAR1C AND COUNT(VAR1C,30)=1;DRAWTEXT(⼤顶0=1,H*1.03,'⼤顶!'),COLORWHITE;PL5:=ZIG(3,5);EN1:=PL5>REF(PL5,1) AND REF(PL5,1)<=REF(PL5,2) AND REF(PL5,2)<=REF(PL5,3); EX1:=PL5=REF(PL5,2) AND REF(PL5,2)>=REF(PL5,3); PL10:=ZIG(3,10);EN2:=PL10>REF(PL10,1) AND REF(PL10,1)<=REF(PL10,2) AND REF(PL10,2)<=REF(PL10,3);EX2:=PL10=REF(PL10,2) AND REF(PL10,2)>=REF(PL10,3);PL20:=ZIG(3,20);EN3:=PL20>REF(PL20,1) AND REF(PL20,1)<=REF(PL20,2) AND REF(PL20,2)<=REF(PL20,3);EX3:=PL20=REF(PL20,2) AND REF(PL20,2)>=REF(PL20,3);⾛强1:=BARSLAST(PL5⾛弱1:=BARSLAST(PL5>REF(PL5,1));⾛强2:=BARSLAST(PL10⾛弱2:=BARSLAST(PL10>REF(PL10,1));⾛强3:=BARSLAST(PL20⾛弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,⾛强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,⾛强2),0);DTJZ5:=IF(PL10DTJD5:=IF(PL10ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,⾛强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,⾛强3),0);DTJZ10:=IF(PL20DTJD10:=IF(PL20DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'㈠'),COLORFFFFFF;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'㈡'),COLORGREEN;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'㈢'),COLORFFFFFF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLORFFFFFF; DRAWTEXT(EN1 ANDPL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR00FFFF; DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLORFFFF00; DRAWTEXT(EN1 AND PL10>REF(PL10,1) ANDZTJZ5=3,L*0.98,'⑷'),COLOR00FFFF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) ANDZTJD10=1,H*1.02,'⑸'),COLORGREEN; DRAWTEXT(EN2 AND DTJZ10=1,L*0.95,'Ⅰ'),COLORFFFFFF; DRAWTEXT(EX2 AND DTJD10=2,H,'Ⅱ'),COLORGREEN;DRAWTEXT(EN3 AND ZTJZ10=1,L*0.95,'Ⅲ'),COLORFF00FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.06,'①'),COLORFFFF00; DRAWTEXT(EN2 ANDPL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'②'),COLORFF00FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.06,'③'),COLORGREEN;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.94,'④'),COLORFF00FF;M5:=MA(C,5);M10:=MA(C,10);M20:=MA(C,20);M30:=MA(C,30);M60:=MA(C,60);MA5:=EMA(C,5);MA13:=EMA(C,6);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROS S(MA5,MA13))+1),0);AAAL:=(3*C+H+L+O)/6;VAR1L:=(8*AAAL+7*REF(AAAL,1)+6*REF(AAAL,2)+5*REF(AAAL,3)+4*REF(AAAL,4)+3*REF(AAAL,5)+2*REF(AAAL,6)+REF(AAAL,8))/36;VAR6L:=(LLV(VAR1L,2)+LLV(VAR1L,4)+LLV(VAR1L,6))/3;DRAWTEXT(C>M5 AND O<⼀0.809 AND C>M10 AND C>M30 AND M30>=REF(M30,1) AND CROSS(C,VAR6L) AND C/REF(C,1)>1.03 AND C>O AND F211=100 AND UP,O,'⽜'),COLORFFFFFF;Z:=ISLASTBAR;DRAWTEXT (REF(C,2)>REF(O,2)&&REF(C,1)>REF(O,1)&&C<=O&&Z,0.98*REF(H,1),'防调'),COLORGREEN; DRAWTEXT (REF(C,2)<=REF(O,2)&&REF(C,1)>REF(O,1)&&C<=O&&Z,0.98*REF(H,1),'跌势'),COLORGREEN; AAA:=CONST(HHV(H,90));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);T23:=CONST(IF(C>200 AND C>M5 AND M5>REF(M5,1) AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0)); DRAWTEXT(T23=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'⼤盘重拾升势。
智能主图通达信指标公式源码
DRAWTEXT_FIX(ISLASTBAR,0,0.88,0,'{绿线熊市观望,即使冒头也不动;蓝线震荡市,K线冒头变红进半仓,一旦变成红线加满仓,若又跌破蓝线则半仓止损出场。
本金安全是第一位的!'),COLORWHITE;{智能主图}DIR2:=ABS(CLOSE-REF(CLOSE,30));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),30);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;M熊:EMA(DMA(CLOSE,CQ2),2),COLORGREEN,LINETHICK1;牛熊:=M熊;M震:IF(M熊/REF(M熊,1)>0.997,M熊,DRAWNULL),COLORBLUE,LINETHICK1;M牛:IF(M熊/REF(M熊,1)>1.001,M熊,DRAWNULL),COLORRED,LINETHICK1;XX1:=C>牛熊AND 牛熊>REF(牛熊,1);DRAWTEXT_FIX(ISLASTBAR AND XX1,0,0.01,0,'【处于牛区】'),COLORRED;XX2:=C<牛熊AND 牛熊<=REF(牛熊,1);DRAWTEXT_FIX(ISLASTBAR AND XX2,0,0.01,0,'【处于熊区】'),COLORGREEN;F111:=ZIG(3,15);F211:=IF((F111> REF(F111,1)),100,80);T01:=CONST(LLVBARS(LOW,10));T11HIGH:=CONST(REF(HIGH,T01));CC1:=CONST(CURRBARSCOUNT);T02:=CONST(BARSLAST((CURRBARSCOUNT >(CC1+T01)) AND (HIGH>T11HIGH))); T12HIGH:=CONST(REF(HIGH,T02));T03:=CONST(BARSLAST((CURRBARSCOUNT >(CC1+T02)) AND (HIGH>T12HIGH)));T13HIGH:=CONST(REF(HIGH,T03));洗:DRAWLINE(CURRBARSCOUNT=T03+1, T13HIGH, ISLASTBAR, T13HIGH, 1),DOTLINE,COLORFFFFFF;AY:=REF(H,10)=HHV(H,2*10+1);QYY:=BACKSET(AY,10+1);CC:=FILTER(QYY,10) AND H=HHV(H,10+1);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);压:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLOR FFFF00,LINETHICK1,DOTLINE;A2:=REF(L,5)=LLV(L,2*5+1);B2:=FILTER(A2,5);C2:=BACKSET(B2,5+1);D2:=FILTER(C2,5);E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);F2:=E2>REF(E2,1);支:DRAWLINE(D2,L,F2,L,1),COLORLIRED,DOTLINE;高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);HH1:=高1-(高1-低1)*0.191;冲:REFDATE(HH1,DATE),COLORLIGREEN;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) AND REF(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) ANDREF(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:=F211=100 AND VAR10;买2:=F211=100 AND (VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);F1:=ZIG(3,15);F21:=IF((F1> REF(F1,1)),100,80);VARE1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR1A:=IF(VARE1>0,VARE1,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;大顶0:=VAR1C AND COUNT(VAR1C,30)=1;DRAWTEXT(大顶0=1,H*1.03,'大顶!'),COLORWHITE;PL5:=ZIG(3,5);EN1:=PL5>REF(PL5,1) AND REF(PL5,1)<=REF(PL5,2) AND REF(PL5,2)<=REF(PL5,3); EX1:=PL5<REF(PL5,1) AND REF(PL5,1)>=REF(PL5,2) AND REF(PL5,2)>=REF(PL5,3); PL10:=ZIG(3,10);EN2:=PL10>REF(PL10,1) AND REF(PL10,1)<=REF(PL10,2) AND REF(PL10,2)<=REF(PL10,3);EX2:=PL10<REF(PL10,1) AND REF(PL10,1)>=REF(PL10,2) AND REF(PL10,2)>=REF(PL10,3);PL20:=ZIG(3,20);EN3:=PL20>REF(PL20,1) AND REF(PL20,1)<=REF(PL20,2) AND REF(PL20,2)<=REF(PL20,3);EX3:=PL20<REF(PL20,1) AND REF(PL20,1)>=REF(PL20,2) AND REF(PL20,2)>=REF(PL20,3);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'㈠'),COLORFFFFFF;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'㈡'),COLORGREEN;DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'㈢'),COLORFFFFFF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLORFFFFFF; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR00FFFF; DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLORFFFF00; DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR00FFFF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLORGREEN; DRAWTEXT(EN2 AND DTJZ10=1,L*0.95,'Ⅰ'),COLORFFFFFF;DRAWTEXT(EX2 AND DTJD10=2,H,'Ⅱ'),COLORGREEN;DRAWTEXT(EN3 AND ZTJZ10=1,L*0.95,'Ⅲ'),COLORFF00FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.06,'①'),COLORFFFF00; DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'②'),COLORFF00FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.06,'③'),COLORGREEN;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.94,'④'),COLORFF00FF;M5:=MA(C,5);M10:=MA(C,10);M20:=MA(C,20);M30:=MA(C,30);M60:=MA(C,60);MA5:=EMA(C,5);MA13:=EMA(C,6);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROS S(MA5,MA13))+1),0);AAAL:=(3*C+H+L+O)/6;VAR1L:=(8*AAAL+7*REF(AAAL,1)+6*REF(AAAL,2)+5*REF(AAAL,3)+4*REF(AAAL,4)+3*REF(AAAL,5)+2*REF(AAAL,6)+REF(AAAL,8))/36;VAR6L:=(LLV(VAR1L,2)+LLV(VAR1L,4)+LLV(VAR1L,6))/3;DRAWTEXT(C>M5 AND O<一0.809 AND C>M10 AND C>M30 AND M30>=REF(M30,1) AND CROSS(C,VAR6L) AND C/REF(C,1)>1.03 AND C>O AND F211=100 AND UP,O,'牛'),COLORFFFFFF;Z:=ISLASTBAR;DRAWTEXT (REF(C,2)>REF(O,2)&&REF(C,1)>REF(O,1)&&C<=O&&Z,0.98*REF(H,1),'防调'),COLORGREEN;DRAWTEXT (REF(C,2)<=REF(O,2)&&REF(C,1)>REF(O,1)&&C<=O&&Z,0.98*REF(H,1),'跌势'),COLORGREEN;AAA:=CONST(HHV(H,90));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);T23:=CONST(IF(C>200 AND C>M5 AND M5>REF(M5,1) AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0));DRAWTEXT(T23=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'大盘重拾升势。
通达信副图指标公式源码大全
实用标准文档副图指标公式源码1、百万踏浪(相传为杨百万看图公式)N1:=9;N:=3;VAR1:=REF(CLOSE,1);标尺 : SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100;VAR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1);浪: VAR3,COLORBLUE;波: VAR4, COLORRED;段: VAR5 ,COLORYELLOW;VAR6:=CROSS(VAR3,VAR4) AND VAR4<25;STICKLINE(VAR6,0,VAR4+15,5,0), COLORGREEN;VAR7:=CROSS(VAR4,VAR5) AND VAR4<25;VAR8:=VAR7 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2;STICKLINE(VAR7,0,VAR4+55,5,0),COLORWHITE;DRAWTEXT(VAR7 AND COUNT(VAR7,10)=1,VAR4+25,' 抄底 '),COLORYELLOW; STICKLINE(VAR8,0,VAR4+15,5,0),COLORBLUE;DRAWTEXT(VAR8 AND COUNT(VAR8,10)=1,VAR4-1,' 放量 '),COLORGREEN; VAR9:=CROSS(VAR3,VAR4) AND VAR4>80 AND VAR4>VAR5;STICKLINE(VAR9 AND COUNT(VAR9,5)=1,VAR4-5,100,5,0),COLORYELLOW;实用标准文档VARA:=CROSS(VAR5,VAR4) AND REF(VAR4,1)>80;STICKLINE(VARA,VAR4-15,100,15,0), COLORYELLOW;DRAWTEXT(VARA AND COUNT(VARA,10)=1,VAR4-25,' 逃顶'), COLORYELLOW;VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 ANDVAR1E<30 AND VAR11-CL0SE>=-0.25 AND VAR15<22 AND VAR16<28 ANDVAR17>50;STICKLINE(VAR20,0,50,10,0),LINETHICK2,COLORBLUE;弹?')丄 INETHICK7,C0L0RWHITE;2、分类资金A:=IF((CL0SE>126.32),(AM0UNT)/(100000),V0L);主力 :MA(A,4),LINETHICK0,C0L0RYELL0W;游资 :MA(A,8),LINETHICK0,C0L0R00FF00;大户 :MA(A,16),LINETHICK0,C0L0RRED;散户 :MA(A,32),LINETHICK0,C0L0RF0F000;警戒线 :MA(A,180),C0L0RFF66FF,LINETHICK1; 主力 > 0),0,主力 > 0),0,主力 > 0),0,主力 > 0),0,主力 > 0),0,主力 > 0),0, 主力 ,3,0),C0L0R009CFF;STICKLINE(( 主力 ,2.8,0),C0L0R009CFF; STICKLINE(( 主力 ,2.5,0),C0L0R00C0FF; STICKLINE(( 主力 ,1.5,0),C0L0R00D1FF; STICKLINE(( 主力 ,1,0),C0L0R00EAFF; STICKLINE(( 主力 ,0.7,0),C0L0RYELL0W;STICKLINE(( DRAWTEXT(CROSS(VAR20,0.5)AND C0UNT(VAR20=1,10)=1,60,' 百万导主比:ABS (((主力)/(主力 游资大户 散户 ))*(100)),LINESTICK,C0L0RYELL0W; 游比:ABS (((游资)/(主力 游资大户 散户 ))*(100)),LINESTICK,C0L0R00FF00; 大比:ABS (((大户)/(主力 游资 大户 散户 ))*(100)),LINESTICK,C0L0RRED;散比:ABS (((散户)/(主力 游资大户 散户 ))*(100)),LINESTICK,C0L0RF0F000;STICKLINE(( 游资> 0),0,游资,3,0),COLOR00C100;STICKLINE(( 游资> 0),0,游资,2.8,O),COLOROOCAOO;STICKLINE(( 游资> 0),0,游资,2.5,O),COLOROOD3OO;STICKLINE(( 游资> 0),0,游资,1.5,0),COLOROODBOO;STICKLINE(( 游资> 0),0, 游资,1 ,0),COLOR00EA00;STICKLINE(( 游资> 0),0,游资,0.7,0),COLORGREEN;STICKLINE(( 大户> 0),0, 大户 ,3,0),COLOR1020AA;STICKLINE(( 大户> 0),0, 大户 ,2.8,0),COLOR1020BB;STICKLINE(( 大户> 0),0, 大户 ,2.5,0),COLOR1020CC;STICKLINE(( 大户> 0),0, 大户 ,1.5,0),COLOR1020DD;STICKLINE(( 大户> 0),0, 大户 ,1,0),COLOR1020EE;STICKLINE(( 大户> 0),0, 大户 ,0.7,0),COLORRED;STICKLINE(( 散户> 0),0, 散户 ,3,0),COLORFF7700;STICKLINE(( 散户> 0),0, 散户 ,2.8,0),COLORFF8800;STICKLINE(( 散户> 0),0, 散户 ,2.5,0),COLORFF9900;STICKLINE(( 散户 > 0),0, 散户 ,1.5,0),COLORFFAA00; STICKLINE(( 散户 > 0),0, 散户,1,0),COLORFFBBOO;STICKLINE(( 散户 > 0),0, 散户 ,0.7,0),COLORLIBLUE;3、黑马起爆点VAR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;VAR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;VAR3:=SMA(VAR2,2,1);天:100+(-ABS(VAR1)),COLORRED;下:SMA(VAR3,2,1);无:ABS(VAR1),C0L0RGREEN;敌:50,COLORFFAA00 ,L INETHICK3;A:80;B:20;买:STICKLINE(CROSS(下,无),3,2O,2,O),COLORRED,LINETHICK1;STICKLINE(CROSS(下,无),20,25,2,0),COLORFF9900,LINETHICK1;DRAWTEXT(CROSS( 下,无),30,' '),COLORFFFFCC;卖:STICKLINE(CROSS(下,天),7O,9O,2,O),COLORRED,LINETHICK1;STICKLINE(CROSS(下,天),9O,99,2,O),COLORFF99OO,LINETHICK1;DRAWTEXT(CROSS( 下,天),70,' '),COLORFFFFCC;选股 2:IF(CROSS( 下,20),1,0);DRAWICON((CROSS( 下,20) ),20,1);DRAWICON((CROSS( 下,20) ),-20,25);4、宁波绝密(相传为宁波涨停敢死队的绝密指标)AND WOL:IF(CURRBARSCOUNT=1PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORFFFFFF;VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V135:MA(VOLUME,135);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买 :IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;主卖 :IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),COLOR00FF00,POINTDOT;STICKLINE( 主买 >0,0, 主买 ,2,0),COLORRED;{STICKLINE( 主卖 >0, 主买 ,VOL,2,1),COLOR00FF80;}STICKLINE(主买 <REF(主买,1)AND 主买 >0,0,主买,2,0),COLOROOFFFF;换手:VOL/CAPITAL*100,POINTDOT;二十日换手 :SUM( 换手 ,20);5、起涨点换手率 %:VOL/CAPITAL*100,LINETHICK0,COLORYELLOW;量比:V/(REF(MA(V,5),1)),LINETHICK0,COLORRED;AND VVOL:=IF(CURRBARSCOUNT=1PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;虚拟量比 :VVOL/(REF(MA(V,5),1)),LINETHICK0,COLORRED;获利比例 %:WINNER(C)*100,COLORLIBLUE;涨幅 %:(C-REF(C,1))/REF(C,1)*100,LINETHICK0;量比 1:= 量比 >1.5 OR 虚拟量比 >1.5;换手率 %1:= 换手率 %>5;获利比例 %1:= 获利比例 %>70;涨幅 %1:= 涨幅 %>3;启动 := 换手率 %1 AND 量比 1 AND 获利比例 %1 AND 涨幅 %1 ;起涨点:IF(启动,101,0)COLORRED,LINETHICK2;6、庄家建仓VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4;VAR3:=EMA(VAR2,13);VAR4:=LLV(LOW,34);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:STICKLINE(VAR5>REF(VAR5,1),0,VAR5,7,0 ),COLORRED;7、出色超赢JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;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));VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(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));VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR实用标准文档VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股 :VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场 :=IF( 红色持股 ,JRL,DRAWNULL);明离场价 :=离场 ,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOROOOOFF,NODRAW;青色观望 :VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLORFFOOOO,NODRAW;黄色低买 :VAR19,COLOR33AACC,NODRAW;洋红离场 :VAR1A,COLORMAGENTA,NODRAW;急跌关注 :(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORWHITE,NODRAW;上市日期年 :REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFFOOFF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOROOFFFF;STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,3O,1),COLOROOOOFF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,3O,1),COLOROOFFOO;实用标准文档STICKLINE(C>=O,L,H,0,0),COLOR0000CC;STICKLINE(C<O,L,H,0,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5; STICKLINE( 红色持股,CLOSE,O,2.8,0),COLOR000055; STICKLINE( 红色持股,CLOSE,O,2,0),COLOR000088; STICKLINE( 红色持股,CLOSE,O,1.5,0),COLOR0000AA; STICKLINE( 红色持股,CLOSE,O,1,0),COLOR0000CC; STICKLINE( 红色持股,CLOSE,O,0.5,0),COLOR0000EE; STICKLINE( 青色观望,CLOSE,O,2.8,0),COLOR555500; STICKLINE( 青色观望,CLOSE,O,2,0),COLOR888800; STICKLINE( 青色观望,CLOSE,O,1.5,0),COLORAAAA00; STICKLINE( 青色观望,CLOSE,O,1,0),COLORCCCC00; STICKLINE( 青色观望,CLOSE,O,0.5,0),COLOREEEE00; CO:=(C-O);STICKLINE( 急跌关注 ,O,C-CO/2,2.8,0),COLOR555555; STICKLINE( 急跌关注 ,O,C-CO/2,2,0),COLOR888888; STICKLINE( 急跌关注 ,O,C-CO/2,1.5,0),COLORAAAAAA; STICKLINE( 急跌关注 ,O,C-CO/2,1,0),COLORCCCCCC; STICKLINE( 急跌关注 ,O,C-CO/2,0.5,0),COLOREEEEEE; STICKLINE( 黄色低买 ,O,O+CO/3,2.8,0),COLOR335555; STICKLINE( 黄色低买 ,O,O+CO/3,2,0),COLOR338888;实用标准文档STICKLINE( 黄色低买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE( 黄色低买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE( 黄色低买,O,O+CO/3,0,0),COLOR33EEEE;STICKLINE( 洋红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE( 洋红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE( 洋红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE( 洋红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE( 洋红离场,O,O+CO/3,0.5,0),COLOREE00EE;压力 :MA(REF(HHV(C,30),1),2),POINTDOT,COLOR9DFFFF;支撑 :MA(REF(LLV(C,30),1),2),POINTDOT,COLORABFF46;PMA:MA(C,5),COLORWHITE,LINETHICK2;IF(PMA>REF(PMA,1),PMA,DRAWNULL),COLORRED,LINETHICK2;IF(PMA<REF(PMA,1),PMA,DRAWNULL),COLORGREEN,LINETHICK2;X:=(3*C+L+O+H)/6;多空线 :(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF (X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFF00FF,LINETHICK2;DD:= 多空线 <REF( 多空线 ,1);IF(DD, 多空线 ,DRAWNULL),COLOR00FFFF,LINETHICK2;实用标准文档A:=(PMA> 多空线 );IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;X2:=LLV(J,2)=LLV(J,8);Y:=IF(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,30,0);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.98,' '),COLORYELLOW;8、彩色成交量STICKLINE(VOL > 0,VOL,0,3,0),COLOR333333;STICKLINE(VOL > 0,VOL,0,2.5,0),COLOR998855;STICKLINE(VOL > 0,VOL,0,1.7,0),COLORBBAA77;STICKLINE(VOL > 0,VOL,0,0.9,0),COLORDDCC99;STICKLINE(VOL > 0,VOL,0,0.04,0),COLORFFEEBB;换手 :=VOL/CAPITAL*100,COLORRED;STICKLINE( 换手 >2 ,VOL ,CAPITAL*0.02,3,0),COLOR00AAAA;STICKLINE( 换手 >2 ,VOL ,CAPITAL*0.02,2.5,0),COLOR00CCCC;STICKLINE( 换手 >2 ,VOL ,CAPITAL*0.02,1.7,0),COLOR00EEEE;STICKLINE( 换手 >2 ,VOL ,CAPITAL*0.02,0.08,0),COLOR00FFFF;STICKLINE( 换手 >4 ,VOL ,CAPITAL*0.04,2.5,0 ),COLOR00BB00;STICKLINE( 换手 >4 ,VOL ,CAPITAL*0.04,1.7,0 ),COLOR00DD00;STICKLINE( 换手 >4 ,VOL ,CAPITAL*0.04,3,0 ),COLOR009900;实用标准文档STICKLINE( 换手 >4 ,VOL ,CAPITAL*0.04,0.8,0 ),COLOR00FF00; STICKLINE( 换手 >7 ,VOL ,CAPITAL*0.07,3,0),COLORBROWN; STICKLINE( 换手 >7 ,VOL ,CAPITAL*0.07,2.5,0),COLOR0000AA; STICKLINE( 换手 >7 ,VOL ,CAPITAL*0.07,1.7,0),COLOR0000CC; STICKLINE( 换手 >7 ,VOL ,CAPITAL*0.07,0.8,0),COLOR0000DD;五天均量 :MA(VOL,5),COLORRED,LINETHICK0.01;廿天均量 :MA(VOL,20),COLORWHITE,LINETHICK0.01;HSS:=V/CAPITAL*100,NODRAW;{ 显示当日换手 }五天换手率 :SUM(HSS,5),NODRAW;廿天换手率 :SUM(HSS,20),NODRAW;抛压 :STICKLINE(CROSS(84,RSI),0 ,VOL,1.5,0),COLORBLUE,LINETHICK5; V24:MA(VOL,24),COLORLIBLUE;V10:MA(VOL,10),COLORRED;V3:MA(VOL,3),COLORLIGRAY;9、涨停回马枪(有主图)均价线 :=AMOUNT/V/100;C2:=REF(C,1);涨停 :=IF(REF(C,1)*1.1-C<0.01 ,1,0);STICKLINE( 涨停 ,0,5,6,0),COLORYELLOW;DRAWTEXT(涨停,8,'涨停'),COLORYELLOW;实用标准文档MA13:=MA(C,13),COLORGRAY;MA21:=MA(C,21),COLORWHITE;支撑线 :=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; LC:=REF(CLOSE,1);操作线 :=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; 趋势线 :=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; 震仓线 :=45;震仓线 2:=50;逃命线 :=80;抄底线 :=20;绝底线 :=5;PP2:= 操作线<震仓线 2 AND REF( 操作线,1)> 震仓线 2 ;PP:=操作线 < 震仓线 AND REF(操作线,1)>震仓线;PP3:= 操作线<抄底线 AND REF( 操作线,1)> 抄底线 ;HH:=COUNT( 涨停,13)>=1;STICKLINE(PP2 AND HH,0,5,3,0),COLORRED;STICKLINE(PP AND HH,0,5,3,0),COLORRED;STICKLINE(PP3 AND HH,0,5,3,0),COLORRED;DRAWTEXT(PP2 AND HH,8,' 预警'),COLORRED;DRAWTEXT(PP AND HH,8,' 预警'),COLORRED;DRAWTEXT(PP3 AND HH,8,' 预警'),COLORRED;A:=SMA(L,4,3) ;绿色买入 :IF (((A AND REF(PP ,1) AND HH) OR (A AND REF(PP3,1) AND HH)),1,0 ); STICKLINE(A AND REF(PP ,1) AND HH ,0,10,1,0),COLORGREEN;DRAWICON(A AND REF(PP ,1) AND HH,12,1);STICKLINE(A AND REF(PP3,1) AND HH ,0,10,1,0)COLORGREEN;DRAWICON(A AND REF(PP3,1) AND HH,12,1);10 、海风 3 号M1:=MA(CLOSE,1);M2:=(LOW+HIGH+CLOSE)/3;M3:= MA(M2,5);M4:= HHV(M3,10);Z:=HHV((M1<M4),10) OR HHV((M1<M4),10);S:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,35)-LLV(LOW,34)),3);DRAWTEXT( FILTER(CROSS(S ,60 ),20),L*0.98,' ▲'),COLORYELLOW ;{DRAWTEXT(FILTER( Z,9),H*1.028,' ★') ,COLORBLUE;STICKLINE( S>60,O,C,4,0) ,COLORFF9BFB;}STICKLINE( S>60,O,C,2,0) ,COLORRED;{STICKLINE( S>60,O,C,1.5,0) ,COLORFD9BFB; }STICKLINE( S>60,H,L,0,0) ,COLORRED;{STICKLINE( S<60,O,C,4,0) ,COLOR01DC38;STICKLINE( S<60,O,C,2.5,0) ,COLOR01FE41;}STICKLINE( S<60,O,C,2,0) ,COLORGREEN;STICKLINE( S<60,H,L,0,0) ,COLORGREEN;VAR1:MA(CLOSE,5);VAR2:MA(CLOSE,10);VAR3:MA(CLOSE,20);VAR60:MA(CLOSE,60);VAR120:MA(CLOSE,120);VAR4:=OPEN<VAR1 OR OPEN<VAR2 OR OPEN<VAR3;VAR5:=CLOSE>MAX(VAR1,MAX(VAR2,MAX(VAR3,VAR60)));VAR6:=VOL/MA(VOL,30)>1.2;VAR7:=CLOSE/REF(CLOSE,1)>1.049;VAR8:=VAR4 AND VAR5 AND VAR6 AND VAR7;VAR9:=VAR8 AND (REF(BARSLAST(VAR8),1)>60 OR BARSSINCE(VAR8)=0); DRAWICON(VAR9 ,L*0.98,1) ;STICKLINE( VAR9,O,C,6,0) ,COLORYELLOW;STICKLINE( VAR9,H,L,0.6,0) ,COLORYELLOW;11 、涨停时间窗(通达信金融终端副图) N:=13;WR 大于 80 考虑买:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))丄 INETHICKO; 均价:AMOUNT/(VOL*100),LINETHICK0,COLORYELLOW;ZT:=C/REF(C,1)>1.O97;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);STICKLINE(ZT,0,L*1,3,0),COLORYELLOW;DRAWTEXT(ZT,L*1.1,' 涨停 '),COLORF00FF0;VARZT:=BARSLAST(C/REF(C,1)>1.097);AA:=BETWEEN(C,REF(L,BH)*1.01,REF(L,BH)*0.987); STICKLINE(AA,0,L*0.5,2,0),COLORBLUE;DRAWTEXT(AA,L*0.6,' 警戒 '),COLORWHITE;STICKLINE(AA AND VARZT=2,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=2,L*0.9,' 时间窗 '),COLORWHITE; STICKLINE(AA AND VARZT=4,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=4,L*0.9,' 时间窗 '),COLORWHITE; STICKLINE(AA AND VARZT=7,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=7,L*0.9,' 时间窗 '),COLORWHITE; STICKLINE(AA AND VARZT=12,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=12,L*0.9,' 时间窗 '),COLORWHITE; STICKLINE(AA AND VARZT=20,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=20,L*0.9,' 时间窗 '),COLORWHITE;。
经传软件主图叠加--智能辅助线
经传软件的经典智能辅助线,公式代码通达信适用公式要放在主图均线里面才能正常调用智能辅助线:HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4) +15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11) +8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+ 2*REF(HHJSJDA,18)+REF(HHJSJDA,20))/210,COLORYELLOW;HHJSJDC:MA(HHJSJDB,5),COLORRED;经传软件智能辅助线使用详解经传软件智能辅助线详解序:情到浓时无怨尤,感恩,是一种处世哲学,是一种人生境界。
对于市场多一分包容、少一分抱怨,我相信你一定会收获更多。
指标解析:先看下智能辅助线的具体含义,只有指标理解了,应用起来方能得心应手。
应用范围:对于智能辅助线,个人感觉应用范围是比较广的,经常说的“线上持股、线下持币”就是其最基础的盈利模式,后面也有展伸为“线上阴线买、线下阳线抛”,细化地分析应用范围可以大到分析大盘看大势、细化到剖析板块抓龙头、甚至于个股的买卖取舍均可以得到有效解决。
而且经过对智能辅助线的长期跟踪和分析整理出来一套中轴理论,后文中会给大家以个股做案例,详细讲解此理论以便各位理解和应用。
应用技巧:1.对于大盘怎样把握?以智能辅助线为界线,如果上证指数运行到线之上,就说明是可操作区域,反之如果市场运行到线下就说明处于不可操作区域。
通达信指标公式源码百发百中(副图 源码 通达信)
百发百中(副图源码通达信)BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;MN:=MA(MM,3);VAR24:=LLV(LOW,36);VAR25:=HHV(HIGH,30);VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25;底背离:IF(MN<-4 ,17,0),COLORA67D3D,LINETHICK3;顶背离: IF((VAR26>90),17,0), COLOR6B238E,LINETHICK3;IF(MN<-4 ,12,0),COLORBLACK,LINETHICK3;IF((VAR26>90),12,0), COLORBLACK,LINETHICK3;DRAWTEXT(底背离,6,'底背离'),COLORA67D3D;DRAWTEXT(顶背离,6,'顶背离'),COLORGREEN;N:=20;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);股价线:(C-LB1)/(UB-LB)*100,COLORGREEN, LINETHICK1;趋势线:MA(股价线,6),COLORRED, LINETHICK3;90,COLORGREEN, LINETHICK1;50,COLORWHITE, LINETHICK1;0,COLORWHITE, LINETHICK1;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);准备建仓:EMA(IF(L<= LLV(L,30),VARC,0),3),COLORFF00FF,LINETHICK2;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),80,100) ,COLORFFFF00,LINETHICK3;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;下单:IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA (SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),38,0),STI CK ,COLORYELLOW, LINETHICK4;DRAWTEXT(下单,38,'下单!'),COLORGREEN;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离1:=MA(BIAS,3);{}乖离:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORRED,LINETHICK2;IF(CROSS(BIAS,乖离1) AND 乖离1<-9,18,0),COLORRED,LINETHICK2;STICKLINE(CROSS(BIAS,乖离1) AND 乖离1<-9,-12,0,6,0),COLORYELLOW; DRAWTEXT(乖离,18,'低买'),COLORRED;TRJ:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW -REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);神偷线:=(((DMP ) * 100) / TRJ);辅助线:=((DMM * 100) / TRJ);动向趋势线:=(MA(((ABS((辅助线- 神偷线)) / (辅助线+ 神偷线)) * 100),3)); ADXR:=((动向趋势线+ REF(动向趋势线,3)) / 2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100); 快买:( IF(((动向趋势线> 88) AND (神偷线< 5.8)),68,0)),LINETHICK1,COLORFF00FF; ( IF(((动向趋势线> 88) AND (神偷线< 5.8)),48,0)),LINETHICK1,COLORFF00FF; DRAWTEXT(快买,60,'准备'),COLORFF00FF;MA2:=EMA(C,2);MA5:=EMA(C,5);MA13:=EMA(C,13);MA30:=EMA(C,30);MA55:=EMA(C,5 5);YCX:=MA5>=REF(MA5,1);H1:=MAX(MAX(MA5,MA13),MA30);L1:=MIN(MIN(MA5,MA1 3),MA30);一阳穿三线:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1);满仓选股:IF(一阳穿三线,88,0),COLORFFFF00,LINETHICK2;IF(一阳穿三线,58,0),COLORFFFF00,LINETHICK2;DRAWTEXT(一阳穿三线,88,'满仓'),COLORYELLOW;VAR2:=0.0001*AMOUNT,;MA1:=0.0001*MA(AMOUNT,5);M2:=0.0001*MA(AMOUNT,10);百日地量:LLV(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK0;DRAWTEXT(百日地量,-10,'地量'),COLORRED;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可}DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);JC:IF(SSS-SSB=2 AND SSS>REF(SSS,1),-22,0),LINETHICK2,COLORFFFF00;IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORFFFF00; DRAWTEXT(A1,-10,'W底'),COLORYELLOW;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);V1:(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));IF(V1,28,0),COLORYELLOW,LINETHICK2;IF(V1,18,0),COLORYELLOW,LINETHICK2;DRAWTEXT(V1,28,'买点'),COLORRED;AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);{}三拾日乖离率:=(C-AA30)/AA30*100;(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1); (AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1); BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;强势狙击选股:FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;青云直上选股:IF(FILTER(MR,10),30,0),COLORYELLOW,LINETHICK2;IF(FILTER(MR,10),20,0),COLORYELLOW,LINETHICK2;DRAWTEXT(青云直上选股,30,'青云直上'),COLORGREEN;QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13))*100<= -28 AND(CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34))*100<=-19 AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND (COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 ANDIF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-L LV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)<REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),2)AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23 ,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND (C/MA(C,70))<0.70 AND((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3),3) ;DRAWTEXT(QUAN,88,'弱市百发百中'),COLORFFFF00;IF(QUAN,88,0),COLORFFFF00,LINETHICK2;IF(QUAN,60,0),COLORFFFF00,LINETHICK2;AA:=1;BB:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;CC:=IF(AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100>100,100,AMOUNT/C/HHV(AMOUNT ,9)/HHV(C,9)*100);DD:=CC/BB;顶部雷达:CROSS(80,RSI)*88,LINETHICK2 ,COLORGREEN;CROSS(80,RSI)*58,LINETHICK2 ,COLORGREEN;DRAWTEXT(CROSS(80,RSI),88,'逃顶'),COLORGREEN;。
通达信指标公式源码 精准找牛 无未来 副图源码
MA5:=MA(CLOSE,5);MA15:=MA(CLOSE,15);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);离散量30:100*(MA5-(MA15+MA30)/2)/MA30,COLORYELLOW,LINETHICK1; 离散量60:100*(MA5-(MA15+MA30+MA60)/3)/MA60,COLORCYAN;粘合K:-2*(离散量30-离散量60),COLORRED,LINETHICK2;粘合D:=EMA(粘合K,3),COLORYELLOW;主升:BARSLAST(CROSS(粘合K,粘合D))*(粘合K>粘合D),NODRAW,COLORGREEN;粘合:=ABS(粘合K)+ABS(离散量60),COLORGREEN;{离差:当此数>0时,表示"离散量30"在"粘合K"的下方,但只有在"离散量30"上升时才有数}离差:(粘合K-离散量30)*(离散量30>REF(离散量30,1)),NODRAW;{关注1:粘合K在0轴附近,同时粘合K与离散量30都处于上升趋势时} CC:=粘合K-离散量30;GZ1:=(ABS(粘合-粘合K)<3 AND 粘合K>粘合D) OR (粘合K>-0.5 AND 粘合K<1 AND 粘合K>粘合D) OR (CC>0 AND CC<2 AND 离散量30>REF(离散量30,1));STICKLINE(GZ1,0,-1,0.8,1),COLORYELLOW;关注1:IF(GZ1,1,0),COLORYELLOW,NODRAW;{关注2:包含关注1=1,同时处于上升趋势时}VAR1:=IF(GZ1=1 AND 粘合K>REF(粘合K,1),1/ABS(粘合-粘合K),0);GZ2:=IF(VAR1>10,10,IF(VAR1<0.5,0,IF(VAR1<1,1,VAR1)));STICKLINE(GZ2>0,0,-GZ2,2,0),COLORMAGENTA;关注2:IF(GZ2>0,1,0),COLORMAGENTA,NODRAW;{老鸭嘴:有只在粘合K处于上升趋势时,使用此指标一定要注意" t粘合K"的趋势}VAR3:=REF(离散量30,3)>=REF(离散量30,1) AND REF(离散量30,1)<=离散量30 AND (离散量30-粘合K<2) AND 主升>0;STICKLINE(VAR3,粘合K+1,粘合K-1,1,0),COLORGREEN;鸭嘴:IF(VAR3,1,0),COLORGREEN,NODRAW;{三金点:当关注1、关注2、老鸭嘴同时为1时};三金点:关注1+关注2+鸭嘴,NODRAW;{判断超跌反弹}VAR4:=IF(离散量30<-5 AND REF(离散量30,2)>REF(离散量30,1) AND 离散量30>REF(离散量30,1),1,0);STICKLINE(VAR4,离散量30+2,离散量30,1,0),COLORYELLOW;反弹:IF(VAR4,1,0),COLORYELLOW,NODRAW;0,COLORWHITE;0,COLORWHITE;。
智能辅助指标公式源码
智能辅助指标公式源码智能辅助指标的具体公式源码因指标的种类和用途而异。
以下是一些常见智能辅助指标的示例公式源码,供参考:1. 移动平均线(Moving Average,MA):def moving_average(close_prices, window):return close_prices.rolling(window).mean()。
2. 相对强弱指数(Relative Strength Index,RSI):def relative_strength_index(close_prices, window):price_diff = close_prices.diff()。
up = price_diff.where(price_diff > 0, 0)。
down = -price_diff.where(price_diff < 0, 0)。
average_gain = up.rolling(window).mean()。
average_loss = down.rolling(window).mean()。
rs = average_gain / average_loss.rsi = 100 (100 / (1 + rs))。
return rsi.3. 布林带指标(Bollinger Bands):def bollinger_bands(close_prices, window, num_std):rolling_mean =close_prices.rolling(window).mean()。
rolling_std = close_prices.rolling(window).std()。
upper_band = rolling_mean + num_std rolling_std. lower_band = rolling_mean num_std rolling_std.return upper_band, lower_band.4. 随机指标(Stochastic Oscillator):def stochastic_oscillator(close_prices, window):lowest_low = close_prices.rolling(window).min()。
通达信指标公式源码 自动画线主图指标公式
N1:=10;N2:=10;DISP:=2;K:=IF(PERIOD=5,1,{日}IF(PERIOD=6,1,{周}IF(PERIOD=7,1,{月}IF(PERIOD=8,1,{多分钟}IF(PERIOD=9,1,{多日}IF(PERIOD=10,1,{季}IF(PERIOD=11,2,{年}IF(PERIOD=4,1,{60F}IF(PERIOD=3,1,{30F}IF(PERIOD=2,1,{15F}IF(PERIOD=1,1{5F},1{1F})))))))))))/10;P1:=PEAK(1,K*N1,1);P2:=PEAK(1,K*N1,2);WP1:=PEAKBARS(1,K*N1,1);WP2:=PEAKBARS(1,K*N1,2);T1:=TROUGH(2,K*N2,1);T2:=TROUGH(2,K*N2,2);WT1:=TROUGHBARS(2,K*N2,1);WT2:=TROUGHBARS(2,K*N2,2);TJ1:=P1>T1 AND P2>T2 ;ZD:=MAX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST( TJ4),1)));TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST( TJ4),1)));TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4 ),1));TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,DRAWNULL);ZSG:=IF(TJ8,ZG,DRAWNULL);ZSH:=IF(TJ8,HH,DRAWNULL);ZSL:=IF(TJ8,LL,DRAWNULL);STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGENTA; DRAWTEXT(DISP=2,ZSH,'中枢'),COLORWHITE;中枢高:=PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CIRCLEDOT,COLORLIRED; 中枢低:=PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CIRCLEDOT,COLORLIGRE EN;{中枢最高:PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLORRED;中枢最低:PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLORGREEN;} 趋势高:=PLOYLINE(DISP=3,ZIG(1,K*N1)),COLORLIBLUE;趋势低:=PLOYLINE(DISP=3,ZIG(2,K*N2)),COLORLIBLUE;局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0); 缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0); 距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0); 高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0); 低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) ANDH>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) ORREF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW;{大折线}A1:=REF(HIGH,10)=HHV(HIGH,2*10+1);B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1);D1:=FILTER(C1,10);{高点}A2:=REF(LOW,10)=LLV(LOW,2*10+1);B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1);D2:=FILTER(C2,10);{低点}E1:=(REF(LLV(LOW,2*10),1)+REF(HHV(HIGH,2*10),1))/2;E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT((D2 AND E1>=E2))) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT((D1 AND E1<E2)));H2:=D1 AND NOT((D2 AND E1>=E2));X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1)); G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);{过滤后高点}DRAWLINE(LD,L,HD,H,0),COLORMAGENTA,DOTLINE,LINETHICK1; DRAWLINE(HD,H,LD,L,0),COLORMAGENTA,DOTLINE,LINETHICK1;J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1);J2:=J1>REF(J1,1);DRAWLINE(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BARSLAST(LD),H,L ),0),COLORWHITE,LINETHICK1;{趋势线}UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);VV:=UU>REF(UU,1);WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);XX:=WW>REF(WW,1);DRAWLINE(XX,L,VV,L,1),COLORRED,LINETHICK2;UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);VV2:=UU2>REF(UU2,1);WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);XX2:=WW2>REF(WW2,1);DRAWLINE(XX2,H,VV2,H,1),COLORGREEN,LINETHICK2;。
通达信指标公式源码 组合智能KDJ 副图源码
源码:VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100; VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);VAR4:=LLV(LOW,38);VAR5:=HHV(VAR3,38);VAR6:=IF(LLV(LOW,90),1,0);VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6; VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;VAR9:=SMA(VAR8,13,8);底线:0,COLOR00FFFF;主力吸货:VAR7,COLOR0000FF;吸筹1:STICKLINE(VAR7,0,VAR7,6,0),COLOR0000FF;吸筹2:STICKLINE(VAR7,0,VAR7,5,0),COLOR6600FF;吸筹3:STICKLINE(VAR7,0,VAR7,4,0),COLORBB00FF;吸筹4:STICKLINE(VAR7,0,VAR7,3,0),COLORFF00FF;吸筹5:STICKLINE(VAR7,0,VAR7,2,0),COLORFF33FF;吸筹6:STICKLINE(VAR7,0,VAR7,1,0),COLORFF66FF;吸筹7:STICKLINE(VAR7,0,VAR7,0,0),COLORFF99FF;BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,3);抄底:IF(乖离<-12 AND 乖离>=-18,-4,0), COLORCYAN,LINETHICK1; STICKLINE(乖离<-12 AND 乖离>=-18,2,0,6,0) , COLORCYAN;抄底二:IF(乖离<-18,3,0),COLORFF35FF,LINETHICK1;STICKLINE(乖离<-18,3,0,6,0),COLORFF35FF;抄底三:IF(乖离<-6,5,0),COLORRED,LINETHICK1;STICKLINE(乖离<-6,5,3,2,1),COLORRED;抄底四:IF(乖离<-4.5,0,0),COLOR00FFFF,LINETHICK1;STICKLINE(乖离<-4.5,0,1,3,1),COLOR00FFFF;VARA1:=DMA(CLOSE,VOL/MA(VOL,4)/4);VARA2:=DMA(CLOSE,VOL/MA(VOL,31)/31);VARA3:=(CLOSE-VARA1)/VARA1*100<-10;VARA4:=(VARA1-VARA2)/VARA2*100<-16;VARA5:=(CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100<-23;VARA6:=SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1)/SMA(ABS(CLOSE-REF(CLOS E,1)),3,1)*100>16;VARA7:=100*(HHV(HIGH,27)-CLOSE)/(HHV(HIGH,27)-LLV(LOW,27)); VARA8:=INDEXC;VARA9:=MA(VARA8,6);VARA:=MA(VARA8,24);VARB:=MA(VARA8,32);VARC:=VARB>VARA9*1.11 AND VARA>VARA9*1.095;SSS:=(VARA3 AND VARA4 AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 OR VARA5 AND VARA6 AND CROSS(VARA7,79) OR VARC ANDCLOSE/COST(8)<=0.8)*100;抄底王:SSS>0,COLORWHITE,LINETHICK1;STICKLINE(SSS>0,0,6,6,0),COLORWHITE;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,3,1),COLORWHITE;D:SMA(K,3,1),COLORYELLOW;J:3*K-2*D,COLORMAGENTA;底: 20,LINETHICK1 ,POINTDOT, COLOR77AA1A;入顶: 80,LINETHICK2 ,POINTDOT , COLOR9966FF;大顶: 100,LINETHICK2 ,POINTDOT ,COLOR22A6E6;顶轴:105, POINTDOT,LINETHICK2;上轴:90, POINTDOT,LINETHICK2;下轴:10, POINTDOT,LINETHICK2;底轴:0, POINTDOT,LINETHICK2;抢钱轴:-10, POINTDOT,LINETHICK2;DRAWTEXT(CROSS(J,顶轴) ,100,'大出'), COLORYELLOW;DRAWTEXT(CROSS(J,上轴) ,90,'小出'), COLOR99FFCC;DRAWTEXT(CROSS(下轴,J) ,10,'小进'), COLORBLUE;DRAWTEXT(CROSS(底轴,J) ,0,'大进'), COLORRED;DRAWTEXT(CROSS(抢钱轴,J) ,-5,'狂进'), COLORWHITE;A01:=DYNAINFO(5); IF(K<REF(K,1),K,DRAWNULL),COLORGREEN,LINETHICK1;IF(D<REF(D,1),D,DRAWNULL),COLORCYAN,LINETHICK1;IF(J<REF(J,1),J,DRAWNULL),COLORFFFF00,LINETHICK1;IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK1;IF(D>REF(D,1),D,DRAWNULL),COLORYELLOW,LINETHICK1;IF(J>REF(J,1),J,DRAWNULL),COLORFF00FF,LINETHICK1;小底:REF(IF((MA(C,5)-C)/C>0.04 AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04,5,0),1),COLORYELLOW;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100 ;B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100;D1:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+1 00;大底:=(A<15 AND REF(A,1)<15 AND D1<18 AND B>REF(B,1) AND CROSS(B,A) AND B>D1AND (REF(B,1)<5 OR REF(B,2)<5 ) AND (D1>=A OR REF( B,1)<1 )); STICKLINE( 大底,0,10,11,0 ),COLORRED;DRAWTEXT(大底,11,'大底')COLORFF00FF;VARFN:=LOW*0.9;VAR11N:=EMA(VARFN,30);VAR12N:=CLOSE-REF(CLOSE,1);VAR13N:=MAX(VAR12N,0);VAR14N:=ABS(VAR12N);VAR15N:=SMA(VAR13N,7,1)/SMA(VAR14N,7,1)*100;VAR16N:=SMA(VAR13N,13,1)/SMA(VAR14N,13,1)*100;VAR17N:=BARSCOUNT(CLOSE);VAR18N:=SMA(MAX(VAR12N,0),6,1)/SMA(ABS(VAR12N),6,1)*100;VAR19N:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+10 0;VAR1AN:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1BN:=SMA((SMA(VAR1AN,4,1)-50)*2,3,1);VAR1CN:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*10 0;VAR1DN:=SMA(VAR1CN,4,1);VAR1EN:=SMA(VAR1DN,3,1);VAR1FN:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20N:=VAR18N<=25 AND VAR19N<-95 AND VAR1FN>20 ANDVAR1BN<-30 AND VAR1EN<30AND VAR11N-CLOSE>=-0.25 AND VAR15N<22 AND VAR16N<28 ANDVAR17N>50;STICKLINE(VAR20N,0,70,1,0),COLORBLUE,LINETHICK3 ;DRAWTEXT(VAR20N,80,'★青龙出海!'),COLORBLUE; HP:=HHV(H,9);LP:=LLV(L,9);R:=(C-LP)/(HP-LP)*100;M:=MA(R,40);S:=STD(R,40);高:=M+2*S;中:=M;低:=M-2*S;【高】: 高,COLOR0099FF;【中】: 中,POINTDOT,COLORWHITE;【低】: 低,COLOR00FF00;。
智能辅助线通达信指标公式源码
{智能辅助线}
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3) +16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
REF(HHJSJDA,20))/210,COLORYELLOW;
HHJSJDC:MA(HHJSJDB,5),COLORRED;
{流量幅和行业板块}
总额:=AMO(C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));
买%:=买1/AMOUNT*100;
流入1:=AMOUNT*买%/10000000000;
流出1:=AMOUNT/100000000-流入1;
净流:=(流入1-流出1);
总额3:=SUM(AMOUNT,3);
流入3:=SUM(流入1,3);
流出3:=SUM(流出1,3);
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10) +9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+ 3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
{智能辅助线}HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3) +16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10) +9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+ 3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+REF(HHJSJDA,20))/210,COLORYELLOW;HHJSJDC:MA(HHJSJDB,5),COLORRED;{流量幅和行业板块}总额:=AMOUNT;买1:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));买%:=买1/AMOUNT*100;流入1:=AMOUNT*买%/10000000000;流出1:=AMOUNT/100000000-流入1;净流:=(流入1-流出1);总额3:=SUM(AMOUNT,3);流入3:=SUM(流入1,3);流出3:=SUM(流出1,3);净流3:=SUM(流入1-流出1,3);总额5:=SUM(AMOUNT,5);流入5:=SUM(流入1,5);流出5:=SUM(流出1,5);净流5:=SUM(流入1-流出1,5);总额10:=SUM(AMOUNT,10);流入10:=SUM(流入1,10);流出10:=SUM(流出1,10);净流10:=SUM(流入1-流出1,10);画:=CONST(FINDHIGH(总额10,0,190,1));DRAWTEXT_FIX(1,0.11,0.12,0,'净流(亿):'),COLOR8080FF,LINETHICK1; DRAWTEXT_FIX(1,0.18,0.1,0,'1日'),COLOR8080FF,LINETHICK1;DRAWTEXT_FIX(1,0.23,0.1,0,'3日'),COLOR8080FF,LINETHICK1;DRAWTEXT_FIX(1,0.28,0.1,0,'5日'),COLOR8080FF,LINETHICK1;DRAWTEXT_FIX(1,0.33,0.1,0,'10日'),COLOR8080FF,LINETHICK1; DRAWNUMBER_FIX(1,0.18,0.15,0,CONST((净流))),COLORYELLOW; DRAWNUMBER_FIX(1,0.23,0.15,0,CONST((净流3))),COLORYELLOW; DRAWNUMBER_FIX(1,0.28,0.15,0,CONST((净流5))),COLORYELLOW; DRAWNUMBER_FIX(1,0.33,0.15,0,CONST((净流10))),COLORYELLOW;Z1A:=STRCAT(HYBLOCK,' ');Z2A:=STRCAT(Z1A,FGBLOCK);Z3A:=STRCAT(Z2A,DYBLOCK);Z4A:=STRCAT(Z3A,' ');DRAWTEXT_FIX(ISLASTBAR,0.25,0.98,0,STRCAT(Z4A,GNBLOCK)),COLORCYAN; {短中线}MA1:=MA(C,1);MA2:=MA(C,2);MA3:=MA(C,3);MA4:=MA(C,5);MA52:=MA(C,8);MA62:=MA(C,13);短线:MA((MA1+MA2+MA3+MA4+MA52+MA62)/6,5),COLORMAGENTA,LINETHICK2; {短线出击}TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);TT1:=REF(EMA(TT2,3),1);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;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);AA1:=AMOUNT/VOL;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=VOL<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;F:=100*(C-REF(C,1))/REF(C,1);P1:=IF(C<REF(O,1) AND F<0,1,0);P2:=IF(C<REF(O,2) AND F<0,1,0);TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;Z1:=MA(C,13);ZX:=REF(Z1,13/2+1);DRAWTEXT(CROSS(CLOSE,TT1)AND J<55,LOW,'买'),COLORRED;STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;A1:=EMA(C,14)COLORWHITE,LINETHICK1;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN;{时间窗}AZ:=BARSCOUNT(CLOSE);AH:=HHV(HIGH,144);AL:=LLV(LOW,144);B0:=(AH-AL)/34;BL1:=HIGH+B0;BL2:=LOW-B0;STICKLINE((AZ+0)/34=FLOOR((AZ+0)/34),BL2,BL2-2*B0,2,0),COLORFFFFFF; DRAWTEXT((AZ+0)/34=FLOOR((AZ+0)/34),BL2-4*B0,'窗'),COLORFFFFFF;{股市上涨}VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);{绿}STICKLINE(VAR3,O,(O+C)/2,2.5,0),COLOR00BB00;STICKLINE(VAR3,O,(O+C)/2,0.2,0),COLOR00FF00;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));{买卖线}买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,32)*20+CLOSE,56),LINETHICK0;BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT (BU,LOW*0.989,'点'),COLORYELLOW,LINETHICK3;STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,2,0),COLORYELLOW;{买进主图}A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买3:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买3=1,5),LOW-0.15,'进'),COLORYELLOW;STICKLINE(买3,OPEN,CLOSE,2,0),COLORYELLOW;{看牛骑牛主图}天使:=EMA(C,2);魔鬼:=EMA(SLOPE(C,9)*20+C,40);买5:=CROSS(天使,魔鬼);DRAWTEXT (买5,LOW*0.97,'牛'),COLORMAGENTA;STICKLINE(CROSS(天使,魔鬼),OPEN,CLOSE,2,0),COLORYELLOW;{庄现主图}AA:=CROSS(MA(C,5),MA(C,21)) AND CROSS(MA(C,5),MA(C,34)) AND CROSS(MA(C,5),MA(C,55));BB:=MA(C,55)>MA(C,13) AND CROSS(MA(C,13),MA(C,34)) AND MA(C,34)>MA(C,21) AND ABS(MA(C,55)-MA(C,21))/MA(C,21)<0.05;CC:=MA(C,34)>MA(C,5) AND CROSS(MA(C,5),MA(C,21)) AND MA(C,21)>MA(C,13); DD:=ABS((MA(C,5)-MA(C,13))+(MA(C,13)-MA(C,21))+(MA(C,21)-MA(C,34)))<0.02 AND MA(C,5)>REF(MA(C,5),1) AND MA(C,13)>REF(MA(C,13),1);EE:=MA(C,21)>MA(C,5) AND CROSS(MA(C,5),MA(C,13)) AND MA(C,13)>MA(C,55) AND ABS(MA(C,21)-MA(C,55))/MA(C,55)<0.05;FFF:=AA OR BB OR CC OR DD OR EE ;探测:=FFF AND FILTER( FFF,8);DRAWTEXT(探测,L*0.978,'●'),COLORRED;STICKLINE(探测,O,C,3,0),LINETHICK2,COLORWHITE;JG:=REF(C,BARSLAST(VOL=HHV(VOL,7)));CON:=BARSLAST(VOL=HHV(VOL,7));STICKLINE(CON>0,JG,JG,10,0),COLORYELLOW,LINETHICK2;。