【股票指标公式下载】-【通达信】高低点(高点压力、低点支撑)

合集下载

【股票指标公式下载】-【通达信】抄底精品(趋势、风险、抄底、天线、逃顶)

【股票指标公式下载】-【通达信】抄底精品(趋势、风险、抄底、天线、逃顶)

【通达信】抄底精品(趋势、风险、抄底、天线、逃顶)-指标公式源码趋势:5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(S MA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2 ,1),LINETHICK0,COLOR7F52AF;趋势1: EMA(MA(趋势,5),3),LINETHICK0,COLORA6B8C1;STICKLINE(趋势>=趋势1,趋势,趋势1,5,0),COLOR7F52AF;STICKLINE(趋势<趋势1,趋势,趋势1,5,0),COLORA6B8C1;STICKLINE(趋势>108 AND 趋势>=趋势1,趋势,108,5,0),COLORFF0000; STICKLINE(趋势1>108 AND 趋势<趋势1,趋势1,108,5,0),COLORFFFFFF; STICKLINE(趋势<0 AND 趋势<趋势1,趋势,0,5,0),COLORF00FF0; STICKLINE(趋势1<0 AND 趋势>趋势1,趋势1,0,5,0),COLORF0F000;V1:= MA(CLOSE,5)=HHV(MA(CLOSE,5),20);V2:= MA(CLOSE,5)>MA(CLOSE,20);V3:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险: IF(V1 AND V2 AND V3,30,0),LINETHICK0,STICK,COLOR00FF00;V11:= MA(CLOSE,5)=HHV(MA(CLOSE,5),120);V21:= MA(CLOSE,5)>MA(CLOSE,120);V31:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险1: IF(V11 AND V21 AND V31,60,0),LINETHICK0,STICK,COLORF0F000;底部: 5,LINETHICK0,COLOR00FFFF;抄底: IF(CROSS(趋势,底部),60,0),LINETHICK2,STICK,COLORRED; DRAWTEXT(抄底,50,'抄底'),COLOR0000FF;天线: 108,LINETHICK0,COLORFF9D00;逃顶: IF(CROSS(天线,趋势),1,0),LINETHICK0,STICK,COLORFF9D00; STICKLINE(CROSS(天线,趋势),90,108,3,0),COLORFF9D00;DRAWTEXT(CROSS(天线,趋势),85,'逃顶'),COLORFF9D00;【通达信】抄底精品(趋势、风险、抄底、天线、逃顶)-指标公式效果图(文档来源:若水财经社区)。

【通达信指标】重心、压力、支撑主图指标公式

【通达信指标】重心、压力、支撑主图指标公式

【通达信指标】重⼼、压⼒、⽀撑主图指标公式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)-20;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 AND VAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-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 AND VAR13<=-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),'该股缩量下跌,⾛势偏弱,离场观望。

【股票指标公式下载】-【通达信】风险控制(风险区、安全区、天线、地线、强弱线)

【股票指标公式下载】-【通达信】风险控制(风险区、安全区、天线、地线、强弱线)

【通达信】高点压力(布林、阻力区、长期策略、短期策略、卖出)-指标公式源码布林:=HHV(HHV(L,14),60);阻力区:=EMA(EMA(布林,16)-2*STD(布林,16),3);阻力区1:=EMA(EMA(布林,14)+2*STD(布林,14),18);DRAWBAND(阻力区,RGB(241,241,247),阻力区1,RGB(241,241,247));{=================================================}STICKLINE(C>=O,C,O,3,0),COLOR0000AA;STICKLINE(C>=O,C,O,2.5,0),COLOR0000BB ;STICKLINE(C>=O,C,O,1.5,0),COLOR0000CC ;STICKLINE(C>=O,C,O,1,0),COLOR0000EE;STICKLINE(C>=O,H,L,0,0),COLOR0000FF;STICKLINE(C<=O,C,O,3,0),COLOR7B7B00;STICKLINE(C<=O,C,O,2.5,0),COLOR909000;STICKLINE(C<=O,C,O,1.5,0),COLORA8A800;STICKLINE(C<=O,C,O,1,0),COLORCECE00;STICKLINE(C<=O,H,L,0,0),COLORFFFF00;ZA1:=EMA(C,25);ZA2:=EMA(ZA1,45);ZB1:=EMA(C,65);ZB2:=EMA(ZB1,45);DIFF:=(ZA1+ZB2)/2;DEA:=(ZA2+ZB1)/2;KA0:=(HHV(C,45)-LLV(C,45))/45;KA1:=SMA(C,3,1);KA2:=SMA(C-KA0*3,3,1);KA3:=SMA(KA1-KA0*3,3,1);SC:=100*(CLOSE-MA(CLOSE,80));SC1:=EMA(SC,5);SC2:=EMA(SC,21);长期策略:SC1>=SC2,NODRAW;次级策略:DIFF>=DEA,NODRAW;短期策略:KA2>=KA3,NODRAW;短期拐点:REF(短期策略,1)=0 AND 短期策略=1,NODRAW;长期趋势:ZB2,COLORYELLOW,LINETHICK3;次级趋势:DIFF,NODRAW;短期趋势:KA2,NODRAW;IF(DIFF>=DEA,DIFF,DRAWNULL),LINETHICK3,COLORRED;IF(DIFF<DEA,DIFF,DRAWNULL),LINETHICK1,COLORBLUE;IF(KA2>=KA3,KA2,DRAWNULL)COLORMAGENTA,LINETHICK3;IF(KA2<KA3,KA2,DRAWNULL),LINETHICK1,COLORGREEN;CSAR:=SAR(10,2,20);持股:=IF(CSAR<=L,CSAR,0);涅磐:=EMA(SLOPE(C,21)*20+C,42);般若:=EMA(C,5);VAR1:=(C+H+O+L)/4;卖出:=XMA(VAR1,20)*(1+80/1000);买入:=XMA(VAR1,32)*(1-100/1000);菩提:=买入+(卖出-买入)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};开悟:=IF(般若>=REF(般若,1),般若,DRAWNULL);抛物线转向:=CROSS(L,CSAR) AND 开悟>0 AND H<菩提 AND 持股>0 AND H>涅磐; DRAWICON(抛物线转向,(H),16);{趋势底};般:=XMA(CLOSE,7);若:=MEMA(CLOSE,3);趋势延伸:=短期拐点 AND 菩提>H AND NOT(抛物线转向);DRAWICON(趋势延伸,H,4);DRAWICON(LONGCROSS(若,般,3) AND H>菩提,H,19);DRAWICON(BARSLAST(LONGCROSS(若,般,3) AND H>菩提)=1,H,2);【通达信】高点压力(布林、阻力区、长期策略、短期策略、卖出)-指标公式效果图(文档来源:若水财经社区)。

压力支撑线指标公式(通达信)

压力支撑线指标公式(通达信)

压力支撑线指标公式(通达信)压力支撑线指标(Pressure Support Line)是一种技术分析工具,用于帮助投资者识别股票价格在上升或下跌时的可能的压力和支撑水平。

其主要思想是通过一系列数学公式来计算出当前价格的压力和支撑水平,从而为投资者提供买入或卖出的参考。

通达信是一个提供股票技术分析工具的软件,其中包括了压力支撑线指标的计算公式。

下面将详细介绍通达信中压力支撑线指标的计算公式和使用方法。

压力线=当日最高价+ATR*参数支撑线=当日最低价-ATR*参数其中,ATR(Average True Range)是一个波动性指标,用于测量市场的波动性。

它的计算公式如下:TR=MAX(H-L,H-Cp,Cp-L)ATR=SMA(TR,N)其中,H是当日最高价,L是当日最低价,Cp是前一日的收盘价,MAX是选择最大值的函数,SMA是简单移动平均线,N是计算的周期。

1.在通达信软件中,选择一个股票并打开K线图。

2.在菜单中选择“技术分析”-“波动率指标”,然后选择“压力支撑线”。

3.设置压力支撑线指标的参数,点击确定。

4.在K线图上,会显示出压力线和支撑线的曲线,与股票价格进行比较。

5.如果股票价格上涨并且接近压力线时,投资者可以考虑卖出。

6.如果股票价格下跌并且接近支撑线时,投资者可以考虑买入。

需要注意的是,压力支撑线指标只是一种参考工具,不能单独作为买卖的依据。

投资者还需要结合其他技术分析工具和市场的实际情况来做出决策。

总结起来,压力支撑线指标是一种通过计算股票价格的压力和支撑水平的技术分析工具,可以帮助投资者做出买卖决策。

通达信是一个提供该指标计算和使用的股票技术分析软件,并提供了相关的计算公式和使用方法。

投资者可以根据自己的需求来设定参数,并结合其他技术分析工具和市场情况来使用该指标。

通达信低点抬高连线指标公式

通达信低点抬高连线指标公式

通达信低点抬高连线指标公式通达信软件中没有直接提供“低点抬高连线”指标,但你可以通过使用公式语言编写一个自定义指标来实现这一功能。

在通达信软件中,你可以使用自定义指标公式来创建新的技术指标。

以下是一个简单的示例,用于计算低点抬高连线:
低点抬高连线:=REF(LOW,1)>REF(LOW,2) AND REF(LOW,1)>REF(LOW,0);
这个公式使用了通达信的函数和关键字,其中 REF 用于引用历史数据,LOW 表示最低价。

这个公式检查当前K线的前两个K线的最低价,如果它们都比当前K线的最低价要低,那么就认为存在低点抬高连线。

请注意,这只是一个简单的示例,你可能需要根据你的具体需求进行调整。

在通达信软件中,你可以在公式编辑器中创建和测试自定义指标。

请确保了解通达信公式语言的基本语法和函数,以便正确编写和使用自定义指标。

1/ 1。

【股票指标公式下载】-【通达信】主力趋势(支撑、中期大底、顶线、底线)

【股票指标公式下载】-【通达信】主力趋势(支撑、中期大底、顶线、底线)

【通达信】主力趋势(支撑、中期大底、顶线、底线)-指标公式源码N:=3;N2:=6;N3:=-23;N4:=75;VAR2:=(C-REF(C,1))/REF(C,1)*100;VAR3:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100;VAR4:=SMA(VAR3,9,1);VAR5:=SMA(VAR4,3,1);J:3*VAR4-2*VAR5,COLOR00FFFF;VAR6:=J>1*REF(J,1);VAR7:=LLVBARS(L,50);VAR8:=SUM(V,VAR7);VAR9:=HHVBARS(H,50);VAR10:=SUM(V,VAR9);VAR11:=(C-REF(O,VAR9))/REF(O,VAR9)*100;VAR12:=VAR10/CAPITAL*100;VAR13:=(C-REF(O,VAR7))/REF(O,VAR7)*100;VAR14:=VAR8/CAPITAL*100;VAR15:=MA(WINNER(C),N)*100;VAR16:=EMA(VAR4,N);A2:EMA(VAR4,N),COLORFFDDCC;A3:=EMA(A2,N);A4:=EMA(A3,N);A5:=EMA(A4,N);A6:=EMA(A5,N);A7:=EMA(A6,N);VAR17:=EMA(A7,N);VAR18:=EMA(VAR17,N);VAR19:=EMA(VAR18,N);AA:=EMA(A5,N2);中期大底:LLV(J,AA),LINETHICK2,COLOR0000FF;上:=IF(MA(H,3)*1.05,30,0)*10-AA;下:=IF(MA(L,3)*0.96,30,0)*2/中期大底;中:=IF(MA(H,3)*1.05,30,0);电:=J;DRAWTEXT(CROSS(A4,AA) AND VAR11<N3,AA,'底'),COLORFFFF00; DRAWTEXT(CROSS(A2,J) AND A2>N4,A2+4.22,'●峰'),COLOR00FFFF; STICKLINE(J>=A2,A2,J,6,0),COLOR0000FF;STICKLINE(J<=A2,J,A2,6,0),COLOR00FF00;压力:HHV(J,60),COLOR00FFFF;支撑:=LLV(AA,13);STICKLINE(J<=中期大底 AND 中-REF(中,1)>0 ANDC>=O*0.99,1,88,3,0),COLOR0000FF;DRAWICON(J<=中期大底 AND 中-REF(中,1)>0 ANDC>=O*0.99,88,1),COLOR00FF00;STICKLINE(FILTER(CROSS(上,中期大底) AND 中-REF(中,1)>=0,3),中期大底,70,3,0),COLOR00FF00;DRAWICON(FILTER(CROSS(上,中期大底) AND 中-REF(中,1)>=0,3),70,1); STICKLINE(CROSS(上,下) AND C>=O,中期大底,60,2,0),COLORFF0000;B0:=MA(C,3);B01:=MA(C,4);B1:=(H+L+C)/3;B2:=HHV(B1,15);B3:=LLV(B1,15);B4:=B2-B3;B5:MA((B1-B3)/B4,2)*100,COLOR000080;B6:=HHV(B1,4*15);B7:=LLV(B1,4*15);B8:=B6-B7;B9:=MA((B1-B7)/B8,2)*100;BA:=HHV(B1,16*15);BB:=LLV(B1,16*15);BC:=BA-BB;BD:=MA((B1-BB)/BC,2)*100;顶线:=98;底线:=1;【通达信】主力趋势(支撑、中期大底、顶线、底线)-指标公式效果图(文档来源:若水财经社区)。

通达信高低点均线主图指标公式20180203

通达信高低点均线主图指标公式20180203

通达信高低点均线主图指标公式20180203HH:=MA(REF(H,1),N);LL:=MA(REF(L,1),N);STICKLINE(CHH AND CO,O,C,-1,1),COLOR0000DD; STICKLINE(CHH AND CO,H,C,0,0),COLOR0000DD; STICKLINE(CHH AND CO,O,L,0,0),COLOR0000DD; STICKLINE(CHH AND C=O,O,C,-1,0),COLOR0000DD; STICKLINE(CHH AND C=O,H,O,0,0),COLOR0000DD; STICKLINE(CHH AND C=O,C,L,0,0),COLOR0000DD; STICKLINE(CLL AND CO,O,C,-1,1),COLORFFBB00; STICKLINE(CLL AND CO,H,C,0,0),COLORFFBB00; STICKLINE(CLL AND CO,O,L,0,0),COLORFFBB00; STICKLINE(CLL AND C=O,O,C,-1,0),COLORFFBB00; STICKLINE(CLL AND C=O,H,O,0,0),COLORFFBB00; STICKLINE(CLL AND C=O,C,L,0,0),COLORFFBB00; STICKLINE(CLL AND CHH AND CO,C,O,-1,1),COLORAAAAAA;STICKLINE(CLL AND CHH AND CO,H,C,0,0),COLORAAAAAA;STICKLINE(CLL AND CHH AND CO,O,L,0,0),COLORAAAAAA;STICKLINE(CLL AND CHH AND C=O,C,O,-1,0),COLORAAAAAA;STICKLINE(CLL AND CHH AND C=O,H,O,0,0),COLORAAAAAA;STICKLINE(CLL AND CHH AND C=O,C,L,0,0),COLORAAAAAA;UP:HH;DN:LL;BIAS:IF(CHH,(C-HH)/HH*100,IF(CLL,(C-LL)/LL*100,0 )),NODRAW;{突破上轨,在该K线的最高价画红点、向右画横线} TP:=CROSS(C,HH) AND EVERY(REF(C,1)REF(HH,1),3);{突破上轨}TC:=BARSLAST(TP);STICKLINE(TC0,REF(H,TC),REF(H,TC),8,-1),COLOR LIRED;{突破上轨,在该K线的最高价向右画横线};●:IF(TP,H,DRAWNULL),POINTDOT,COLORRED,LINE THICK4; {突破上轨,在该K线的最高价画红点};{突破上轨、突破横线选股}TPUP:=TP AND CROSS(C,REF(H,TC+1));{突破上轨AND前高}{TPUP:=TP AND CROSS(CREF(H,TC+1),0.5);} {两个TPUP式等同}TPHX:=CROSS(C,REF(H*1.004,TC)) AND CHH; {突破横线};{TPHX:=CROSS(CREF(H*1.004,TC),0.5) AND CHH;} {两个TPHX式等同}XG:=FILTER(({TPUP OR }TPHX),2);DRAWICON(XG,L*0.998,1);{倒数第2、第3根K线高低点划线}{HH2:=HHV(H,2);LL2:=LLV(L,2);T1:=BARSLAST(CURRBARSCOUNT=2);T2:=BARSLAST(CURRBARSCOUNT=3);DRAWLINE(REF(H,T1)=HH2,H,ISLASTBAR,REF(H,T1 ),0),COLORGREEN;DRAWLINE(REF(L,T1)=LL2,L,ISLASTBAR,REF(L,T1), 0),COLORYELLOW;DRAWLINE(REF(H,T2)=REFX(HH2,1),H,ISLASTBAR, REF(H,T2),0),COLORGREEN;DRAWLINE(REF(L,T2)=REFX(LL2,1),L,ISLASTBAR,R EF(L,T2),0)百度搜索“就爱阅读”,专业资料,生活学习,尽在就爱阅读网,您的在线图书馆!。

【股票指标公式下载】-【通达信】高低点画笔(主图)

【股票指标公式下载】-【通达信】高低点画笔(主图)

【通达信】高低点画笔(主图)-指标公式源码局部低点预选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); 局部极点A:=局部低点预选C+局部高点预选C;AAAA:IF(局部低点预选C=-1,L,IF(局部高点预选C=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW;缺口判断:=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); AAAD:=IF(高保留=1 AND 低保留=-1 AND H>REF(H,REF(距前高天,1)+2),1,IF(高保留=1 AND 低保留=-1 AND L<REF(L,REF(距前低天,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留+低保留,AAAD);局部极点:=IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW;DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORYELLOW; DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORYELLOW;【通达信】高低点画笔(主图)-指标公式效果图(文档来源:若水财经社区)。

通达信优化支撑压力主图指标公式

通达信优化支撑压力主图指标公式

通达信优化支撑压力主图指标公式通达信优化支撑压力主图指标公式股票软件源码如下:N:=5;NN:=100;AA:=REF(H,N)=HHV(H,2*N+1);AA1:=REF(L,N)=LLV(L,2*N+1);QY:=BACKSET(AA,N+1); QY1:=BACKSET(AA1,N+1);CC:=FILTER(QY,N) AND H=HHV(H,N+1); CC1:=FILTER(QY1,N) AND L=LLV(L,N+1);DDD:=BARSLAST(CC); DD1:=BARSLAST(CC1);GDTS:=IF(CC,CURRBARSCOUNT,0);DDTS:=IF(CC1,CURRBARSCOUNT,0);DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);GDCS1:=CONST(DINGBUTS); DDCS1:=CONST(DDTS1);GDCS13:=CONST(REF(HIGH,GDCS1-1));DDCS13:=CONST(REF(L,DDCS1-1));DINGBUTS1:=REF(DINGBUTS,DDD+1);DDTS2:=REF(DDTS1,DD1+1);GDCS2:=CONST(DINGBUTS1); DDCS2:=CONST(DDTS2);M:=INTPART(3*N/5);AAA:=REF(H,M)=HHV(H,2*M+1);QYY:=BACKSET(AAA,M+1);CCC:=FILTER(QYY,M) AND H=HHV(H,M+1);DDDD:=BARSLAST(CCC),NODRAW;GDTSS:=IF(CCC,CURRBARSCOUNT,0);DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS);GDCS11:=CONST(DINGBUTSS);DINGBUTS11:=REF(DINGBUTSS,DDDD+1);GDCS22:=CONST(DINGBUTS11);AA11:=REF(L,M)=LLV(L,2*M+1);QY11:=BACKSET(AA11,M+1);CC11:=FILTER(QY11,M) AND L=LLV(L,M+1);DD11:=BARSLAST(CC11);DDTSS:=IF(CC11,CURRBARSCOUNT,0);DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS);DDCS11:=CONST(DDTS11);DDTS22:=REF(DDTS11,DD11+1);DDCS22:=CONST(DDTS22);ZGD:=HHV(H,60)*1.01.00;ZGD2:=CONST(ZGD);高点压力M:=DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUN T=GDCS11,H,1),COLORRED,LINETHICK2;低点支撑M:=DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUN T=DDCS11,L,1) COLORRED,LINETHICK2;高点压力1:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT =GDCS1,H,1) ,COLORBLUE,LINETHICK2;低点支撑1:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT =DDCS1,L,1),COLORBLUE,LINETHICK2;高点:=CONST(HHV(H,NN));低点:=CONST(LLV(L,NN));GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L);明日支撑:=L+(C-GJ);明日阻力2:=L+2*(GJ-L)+(C-L);明日支撑2:=L+(C-GJ)-(GJ-L);今日阻力:=CONST(REF(明日阻力 , 1)),NODRAW;今日支撑:=CONST(REF(明日支撑 , 1)),NODRAW;今日阻力2:=CONST(REF(明日阻力2 , 1)),NODRAW;今日支撑2:=CONST(REF(明日支撑2 , 1)),NODRAW;STICKLINE(ISLASTBAR,今日阻力,今日阻力2,10,0),COLOR555555;DRAWTEXT(ISLASTBAR,今日阻力,' 阻'),COLOR0000FF;STICKLINE(ISLASTBAR,今日支撑,今日支撑2,10,0),COLOR555555;DRAWTEXT(ISLASTBAR,今日支撑,' 支'),COLOR00FF00;IF(BETWEEN(高点压力M,高点,低点),高点压力M,DRAWNULL),COLORWHITE,LINETHICK2;IF(BETWEEN(低点支撑M,高点,低点),低点支撑M,DRAWNULL),COLORWHITE,LINETHICK2;IF(BETWEEN(高点压力1,高点,低点),高点压力1,DRAWNULL),COLORGREEN,LINETHICK2;IF(BETWEEN(低点支撑1,高点,低点),低点支撑1,DRAWNULL),COLORGREEN,LINETHICK2;涨停:=C>REF(C,1)*1.099;开盘价:REF(O,BARSLAST(涨停)),COLORWHITE,CIRCLEDOT;DRAWNUMBER(涨停,L,O),COLORRED;C3:=REF(C,1);跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,4,0),COLORGREEN;STICKLINE(跌停,OPEN,CLOSE,3,0),COLORBLUE;DRAWTEXT(跌停,H+0.3,'跌停'),COLORBLUE;{原文链接:/THREAD-4453918-1-1.HTML};STICKLINE(V>=REF(V,1)*2,O,C,3,0)COLORBLUE;STICKLINE(V>=REF(V,1)*2,H,L,0,0)COLORBLUE;STICKLINE(C/REF(C,1)>=1.098,O,C,3,0)COLORRED;STICKLINE(C/REF(C,1)>=1.098,H,L,0,0)COLORRED;STICKLINE(C/REF(C,1)<=0.901,O,C,3,0)COLORBLUE;STICKLINE(C/REF(C,1)<=0.901,H,L,0,0)COLORBLUE;ZT:=C/REF(C,1)>1.097;BH:=BARSLAST(ZT);CZ:=REF(H,BH)-REF(L,BH);STICKLINE(C AND BH<100,(REF(L,BH)+CZ*0.5),(REF(L,BH)+CZ*0.5),3,0),COLORRED;STICKLINE(C AND BH<100,REF(L,BH),REF(L,BH),3,0),COLORWHITE,CIRCLEDOT;STICKLINE(C AND BH<100,REF(H,BH),REF(H,BH),3,0),COLORWHITE;HHH:=CONST(HHV(H,100));LLL:=CONST(LLV(L,100));HH:=HHH-LLL;TJ2:= CURRBARSCOUNT=58;总家数:INDEXADV+INDEXDEC,NODRAW;涨家数:INDEXADV,NODRAW;跌家数:INDEXDEC,NODRAW;差数:INDEXADV-INDEXDEC,NODRAW;半分位:=(O+C)/2;昨半分位:=REF(半分位,1);STICKLINE(ISLASTBAR,昨半分位,昨半分位,10,0);DRAWNUMBER(ISLASTBAR,昨半分位,昨半分位);DRAWTEXT(ISLASTBAR,昨半分位,' 昨半分位');底:=SUM(MA(CLOSE,10),9)/11.114;DRAWTEXT(CROSS(LOW,底) AND REF(底,1)>REF(HIGH,1) OR CROSS(HIGH,底),L,'---铁底'),COLOR00FF00;{原文链接:/THREAD-4648365-1-1.HTML};VAR3:=PEAKBARS(3,10,1)<10;VAR5:=IF(VAR3=1,2,0);顶:= IF(VAR5=2,2,0);DRAWICON(顶>REF(顶,1),H*1.005,2);DRAWICON(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)),L,1);DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),H,12);DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'00',0);{原文链接:/THREAD-4726228-1-1.HTML};生命线:=(EMA(C,10)*14+EMA(C,20)*6)/20;生命线12:=(EMA(生命线,10)*14+EMA(生命线,20)*6)/20;变异1:=生命线+生命线-生命线12;变异线1:=(EMA(变异1,10)*14+EMA(变异1,20)*6)/20;趋势线:变异1+变异1-变异线1,COLORRED;平衡线:(EMA(趋势线,10)*14+EMA(趋势线,20)*6)/20,COLORWHITE;AAA1:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)<REF(CLOSE,3) ANDIF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5), REF(CLOSE,1)<REF(CLOSE,4) OR (REF(CLOSE,2)<REF(CLOSE,4) ANDREF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1, REF(CLOSE,6)<REF(CLOSE,7))));BBB1:=CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,1)>REF(CLOSE,3) ANDIF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5), REF(CLOSE,1)>REF(CLOSE,4) OR (REF(CLOSE,2)>REF(CLOSE,4) ANDREF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))));DRAWICON(AAA1 AND CLOSE>REF(OPEN,3),0.99*LOW,1);DRAWICON(BBB1 AND CLOSE<REF(CLOSE,3),HIGH*1.01,2);DRAWTEXT(AAA1 AND CLOSE>REF(OPEN,3),LOW*0.98,'平底翻红');DRAWTEXT(BBB1 AND CLOSE<REF(CLOSE,3),HIGH*1.02,'平顶翻绿');{通达信股票指标公式}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(FF,MA15),(LOW * 0.99),'底背离'),COLORA6E500;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);VAR26:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;VAR27:=REVERSE(VAR26);VAR28:=SMA(VAR26,3,1);波段王:= SMA(VAR28,3,1);波段鬼:= SMA(波段王,8,1);地狱:DRAWICON(CROSS(波段王,波段鬼) AND 波段王<40,LOW,1);天堂: DRAWICON(CROSS(波段鬼,波段王) AND 波段鬼>75,HIGH,2);DRAWTEXT(CROSS(波段王,波段鬼) AND 波段王<40,LOW*1.01,'低吸做波段'), COLORWHITE;DRAWTEXT(CROSS(波段鬼,波段王) AND 波段鬼>75,HIGH*1.01,'减磅'),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR005100,,LINETHICK2,DOTLINE;支撑:L1+P1*0.5/8,COLOR000075,,LINETHICK2,DOTLINE;现价:=CLOSE,COLORWHITE,LINETHICK1;QQ截图未命名.jpg(24.28 KB, 下载次数: 11)。

通达信顶底压力主图指标公式

通达信顶底压力主图指标公式

通达信顶底压力主图指标公式N02:=30; 高:=REFDATE(HHV(H,N02),DATE);低:=REFDATE(LLV(L,N02),DATE);H1:=高-(高-低)*0.191;H2:=高-(高-低)*0.382;H3:=高-(高-低)*0.5;H4:=高-(高-低)*0.618;H5:=高-(高-低)*0.809;DRAWTEXT(CURRBARSCOUNT=1,高,'高位'),COLORRED;DRAWTEXT(CURRBARSCOUNT=1,H1,'809'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=1,H2,'618'),COLORRED;DRAWTEXT(CURRBARSCOUNT=1,H3,'050'),COLORLIMAGEN TA;DRAWTEXT(CURRBARSCOUNT=1,H4,'382'),COLORRED;DRAWTEXT(CURRBARSCOUNT=1,H5,'191'),COLORWHITE;DRAWTEXT(CURRBARSCOUNT=1,低,'低位'),COLORRED;STICKLINE(CURRBARSCOUNT=13,高,高,100,-1),COLORRED;STICKLINE(CURRBARSCOUNT=13,H1,H1,100,-1),COLORWHITE;STICKLINE(CURRBARSCOUNT=13,H2,H2,100,-1),COLORRED;STICKLINE(CURRBARSCOUNT=13,H3,H3,100,-1),COLORLIMAGENTA;STICKLINE(CURRBARSCOUNT=13,H4,H4,100,-1),COLORRED;STICKLINE(CURRBARSCOUNT=13,H5,H5,100,-1),COLORWHITE;STICKLINE(CURRBARSCOUNT=13,低,低,100,-1),COLORRED;{黄金分割线结束};N:=150;判断高低:=3;近期顶:REFDATE(高,DATE),COLORGREEN,LINETHICK3;最顶:=REFDATE(近期顶,DATE),NODRAW;出:=最顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW;STICKLINE(出,C,O,3,0),COLORGREEN;STICKLINE(出,C,O,2,0),COLORGREEN;近期底:REFDATE(低,DATE),COLORRED,LINETHICK3;最底:=REFDATE(近期底,DATE),NODRAW;进:=最底=L AND ((C L)<(O C) OR (O L)<(C O)),NODRAW;STICKLINE(进,C,O,3,0),COLORRED;STICKLINE(进,C,O,2,0),COLORRED;T1B:=CONST(LLVBARS(LOW,20));T1HIGH:=CONST(REF(HIGH,T1B));CC:=CONST(CURRBARSCOUNT);T2B:=CONST(BARSLAST(CURRBARSCOUNT>CC T1B AND H>T1HIGH));T2HIGH:=CONST(REF(HIGH,T2B));T3:=CONST(BARSLAST(CURRBARSCOUNT>CC T2B AND HIGH>T2HIGH));T3HIGH:=CONST(REF(HIGH,T3));必杀线:DRAWLINE(CURRBARSCOUNT=T3 1, T3HIGH, ISLASTBAR, T3HIGH, 1),COLORRED,LINETHICK3;{,LINETHICK2,COLOR0000FF;}DRAWTEXT(ISLASTBAR, T3HIGH, '必杀线')LINETHICK1,COLOR0000FF;MA5K:必杀线,COLORYELLOW,LINETHICK1;STICKLINE(ISLASTBAR,HHV(C,10),HHV(C,10),218,1)COLORYE LLOW;STICKLINE(ISLASTBAR,HHV(C,10)*0.95,HHV(C,10)*0.95,218,1 )COLORYELLOW;。

通达信指标公式源码分时高低点指标

通达信指标公式源码分时高低点指标

日时转换:=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(250,30,30),EMA(VAR1,60),RGB(30,210,30));牵引线:=VAR1,COLORYELLOW;强弱线:EMA(VAR1,日时转换),POINTDOT,COLORWHITE;趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) ANDVAR6,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;MA30:=EMA(CLOSE,30);强弱:=EMA(CLOSE,900);{STICKLINE((MA30>强弱),MA30,强弱,1,0),COLORRED;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLORBLUE;}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,LINETHICK4;{DRAWICON(趋势关注=1,支撑,13);DRAWTEXT(量价关注=1,支撑,'*量价关注'),COLORWHITE;}{分时突破}分时顶:=HHV(H,480),COLORRED,LINETHICK2;W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));均线5:=MA(C,5)LINETHICK1,COLORCYAN;均价线:=SUM(C*V,240)/SUM(V,240),COLORYELLOW;分时压力:=MA(REF(HHV(C,30),1),2),COLORMAGENTA;分时支撑:=MA(REF(LLV(C,30),1),2),COLORBLUE;{DRAWICON(W4 AND COUNT(W4,5)=1,分时压力,9); }STICKLINE(FILTER(CROSS(C,REF(分时顶,1)),10) AND C>REF(分时顶,1),支撑,C,4,0),COLORMAGENTA;{短突破}MAA:=MA(C,3);MAB:=MA(C,8);生命线:=SUM(VOL*(O+C)/2,88)/SUM(VOL,88),COLORFF80FF,LINETHICK1; 持股线:HHV(MA(C,18),2),COLORWHITE,LINETHICK1;分离线:IF(MA(C,18)<持股线,(MA(C,18)-(持股线-MA(C,18))),持股线),COLORGREEN,LINETHICK1;MA18:MA(C,18),LINETHICK1,COLORYELLOW;{STICKLINE((持股线>分离线),分离线,持股线*1.001,8, 0)COLORLIGREEN;} DRAWBAND(分离线,RGB(255,255,0),持股线,RGB(0,255,255));持股线1:HHV(MA(C,18),2),COLORYELLOW,LINETHICK1;。

通达信涨跌顶底主图指标公式

通达信涨跌顶底主图指标公式

通达信涨跌顶底主图指标公式{涨跌顶底}范围高A:=REFDATE(HHV(H,120),DATE)*1.05;范围低A:=REFDATE(LLV(L,120),DATE)*0.95;MA5:MA(CLOSE,5),COLORWHITE;MA24:=MA(C,24),COLORGREEN,LINETHICK2;MA72:=MA(C,72),COLORRED,LINETHICK2;MA200:=IF((MA(C,200)<=范围高A AND MA(C,200)>=范围低A) OR C>=MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;{=======================仪表盘=========================}主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);主浪回调:=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);主浪深调:=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>IF(MA200=DRAWNULL,0,MA200);初升浪:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;底部反弹:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA5>MA24;探底阶段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MA5;观望:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);有牛:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C>=MA72,MA72<MA200 AND C>=MA200);放弃:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);DRAWGBK(显示仪表盘1=1 AND 主升浪=0 AND 主浪回调=0 AND 主浪深调=0 AND 初升浪=0 AND 底部反弹=0 AND 探底阶段=0 AND 观望=0 AND 有牛=0 AND 放弃=0,0,0,0,'观望',0)COLOR00BF00;DRAWGBK(显示仪表盘1=1 AND 主升浪,0,0,0,'主升浪',0)COLORFF00FF;DRAWGBK(显示仪表盘1=1 AND 主浪回调,0,0,0,'主浪回调',0)COLORFF8080;DRAWGBK(显示仪表盘1=1 AND 主浪深调,0,0,0,'主浪深调',0)COLOR009500;DRAWGBK(显示仪表盘1=1 AND 初升浪,0,0,0,'初升浪',0)COLOR00FFFF;DRAWGBK(显示仪表盘1=1 AND 底部反弹,0,0,0,'底部反弹',0)COLORFFFF00;DRAWGBK(显示仪表盘1=1 AND 探底阶段,0,0,0,'探底阶段',0);DRAWGBK(显示仪表盘1=1 AND 观望,0,0,0,'观望',0)COLORFFFF00;DRAWGBK(显示仪表盘1=1 AND 有牛,0,0,0,'有牛',0)COLOR00FFFF;DRAWGBK(显示仪表盘1=1 AND 放弃,0,0,0,'放弃',0)COLOR00BF00;拉升:IF(CURRBARSCOUNT=1 AND REF(C,1)<REF(C,2) AND C>REF(C,1) AND MA1>REF(MA1,1),CONST(REF(C,1)*1.01),DRAWNULL),COLORFF00FF;A001:STICKLINE(CURRBARSCOUNT=1 AND C>=REF(C,1),拉升,拉升*0.9992,15,0),COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=1 AND 拉升=CONST(REF(C,1)*1.01),L*0.99996,' 拉升线'),COLORMAGENTA;DRAWKLINE(H,拉升,L,C);止损:REF(HHV(H,13),1)*0.95,COLORGREEN,DOTLINE;A002:STICKLINE(CURRBARSCOUNT=1 AND C>=REF(C,1),止损,止损*0.9996,15,0),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=1,止损*0.996,'止损线'),COLORGREEN;DRAWKLINE(H,O,L,C);ZKP:=IF(C>REF(C,1),REF(C,1),DRAWNULL);ZSP:=IF(C>REF(C,1),C,DRAWNULL);DKP:=IF(C<=REF(C,1),REF(C,1),DRAWNULL);DSP:=IF(C<=REF(C,1),C,DRAWNULL);DRAWKLINE(H,DKP,L,DSP);STICKLINE(C<=REF(C,1),DKP,DSP,3.05,0),COLORBLUE;STICKLINE(C<=REF(C,1),DKP,DSP,2.2,0),COLORFF7700;STICKLINE(C<=REF(C,1),DKP,DSP,1.5,0),COLORFF9900;STICKLINE(C<=REF(C,1),DKP,DSP,0.5,0),COLORFFBB00;DRAWKLINE(H,ZKP,L,ZSP);STICKLINE(C>REF(C,1),ZKP,ZSP,3.05,0),COLOR000099;STICKLINE(C>REF(C,1),ZKP,ZSP,2.2,0),COLOR0000CC;STICKLINE(C>REF(C,1),ZKP,ZSP,1.5,0),COLOR0000FF;STICKLINE(C>REF(C,1),ZKP,ZSP,0.5,0),COLORCC66FF;STICKLINE(V/REF(V,1)>2 AND CLOSE>=OPEN,ZKP,ZSP,1,0),COLORYELLOW;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(MID,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* REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLOR8000FF,LINETHICK2;MA10:=MA(C,10);MA30:=MA(C,30);五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORGREEN;多空线:=(MA(C,8)+MA(C,17)+MA(C,26)+MA(C,35)+MA(C,44)+MA(C, 53)+MA(C,62)+MA(C,71)+MA(C,80)+MA(C,91)+MA(C,102)+MA( C,113)+MA(C,124)+MA(C,135)+MA(C,146)+MA(C,157)+MA(C,1 68))/17,COLORWHITE;做多:=多空线+STD(C,80),COLOR00FFFF;做空:=多空线-STD(C,80),COLORFFFF00;买线:=EMA(C,4);卖线:=EMA(SLOPE(C,20)*10+C,35);DRAWTEXT(CROSS(买线,卖线),LOW*1.00,'←买'),COLORRED,LINETHICK2;DRAWTEXT(CROSS(卖线,买线),HIGH*1.01,'←卖'),COLORGREEN;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT(CROSS(90,RSI) , HIGH*1.01,'←逢高出局!'),COLOR00FF00 ;A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A, 4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF( A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*R EF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+R EF(A,20))/210;主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;ZZ:=(O+H+L)/3;YC:=(H+L)/2;YCHJX:=(EMA(ZZ,4))+(YC-REF(ZZ,3))/4;今日买点:EMA(ZZ,3),COLORYELLOW,LINETHICK0;明日买点:YCHJX,LINETHICK0;昨测今日买点:REF(YCHJX,1),LINETHICK0;FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'←拐点卖'),COLOR00FF00;DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'←拐点买'),COLOR00FFFF;VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2:=CROSS(VAR1,0.9);VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4:=CROSS(VAR3,0.9);压力: REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLOREA91B5;STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BA RSLAST(VAR2)),5,0),COLOREA91B5;支撑: REF(LOW,BARSLAST(VAR4)), POINTDOT,COLOR3791B5;STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BAR SLAST(VAR4)),5,0),COLOR3791B5;DRAWTEXT(VAR2,HIGH*1.01,'跌'),COLOR00E40E;VAR5:=IF(VAR2,HIGH,IF(VAR4,LOW,0));VAR6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),3);VAR7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);VAR8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3);VAR9:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),3);VARB:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3);DRAWTEXT(CROSS(VAR9,0.9),LOW*0.99,'涨'),COLOR0000FF;DRAWTEXT(CROSS(VARA,0.9),HIGH*1.01,'犹豫'),COLOR00E5E9;现价:CLOSE,POINTDOT,COLORRED;N:=150;判断高低:=3;高:=REF(HHV(H,N),判断高低);近期顶:REFDATE(高,DATE),COLORGREEN,LINETHICK3;最顶:=REFDATE(近期顶,DATE),NODRAW;出:=最顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW;STICKLINE(出,C,O,3,0),COLORGREEN;STICKLINE(出,C,O,2,0),COLORGREEN;低:=REF(LLV(L,N),判断高低);近期底:REFDATE(低,DATE),COLORRED,LINETHICK3;最底:=REFDATE(近期底,DATE),NODRAW;进:=最底=L AND ((C+L)<(O+C) OR (O+L)<(C+O)),NODRAW;STICKLINE(进,C,O,3,0),COLORRED;STICKLINE(进,C,O,2,0),COLORRED;马线:=MA(牛线,8),COLORGREEN;DRAWICON( FILTER(CROSS(牛线,马线),20),马线+0.02 ,1);DRAWTEXT(CROSS(牛线,马线),LOW*0.98,'买'),COLORRED,LINETHICK2;庄家:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+ 16*REF(MID,4)+15*REF(MID,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*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20) )/210,COLORRED;上涨家数:INDEXADV,COLOR0080FF,NODRAW;下跌家数:INDEXDEC,COLORGREEN,NODRAW;涨停:DYNAINFO(3)*1.1,COLORRED,NODRAW;跌停:DYNAINFO(3)*0.9,COLORGREEN,NODRAW;VAR111:=ZIG(3,13);STICKLINE((REF(VAR111,2) < REF(VAR111,1)) AND (VAR111 < REF(VAR111,1)),CLOSE,OPEN,3,0),COLOR66FF00;DRAWTEXT_FIX(STICKLINE((REF(VAR111,2) < REF(VAR111,1)) AND (VAR111 < REF(VAR111,1)),CLOSE,OPEN,5,0),0.00,0.11,0,''),COLOR00FF00,LI NETHICK1;VAR010:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR011:=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);VAR012:=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);VAR013:=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);VAR014:=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);VAR015:=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);VAR016:=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);VAR017:=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);VAR018:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR019:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR010;买2:=(VAR011+VAR013+VAR015+VAR017);卖1:=(VAR012+VAR014+VAR016+VAR018);B:=IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYEL LOW;DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'*'),COLORRED;S:=IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGR EEN;DRAWTEXT(卖1>0,HIGH*1.02,'*'),COLORGREEN;DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.97,5) ;DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.03,6);DRAWRECTREL(0,500,147,999.4,IF(120,RGB(10,0,0),0));超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;大宗进限制:=IF((超B+大B)=0,0,大宗进);大宗出限制:=IF((超S+大S)=0,0,大宗出);非大宗进限制:=IF(中B+小B=0,0,非大宗进);非大宗出限制:=IF(中S+小S=0,0,非大宗出);主力净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;散户净流入:=(中B+小B)-(中S+小S),COLORRED,NODRAW;净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),COLORRED,NODRAW;大单流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW;大单流入限制:=IF((超B+大B+超S+大S)=0,0,大单流入);大单流出比:=(超S+大S)/(超B+大B+超S+大S)*100,NODRAW;大单流出限制:=IF((超B+大B+超S+大S)=0,0,大单流出比);总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;总流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;成交总量:=(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW;机构参与度:=(超B+超S+大B+大S)/成交总量*100,COLORYELLOW,NODRAW;大单强度:=(超B+大B-超S-大S)/成交总量*100,COLORYELLOW,NODRAW;大单强度限制:=IF(大单强度=0,-100,大单强度);大单强度比:=IF(大单强度>=0,(大单强度限制+100)/2,100-ABS((大单强度限制-100)/2)),NODRAW;超单强度:=(超B-超S)/(超B+超S)*100,COLORYELLOW,NODRAW;超单强度限制:=IF(超单强度=0,-100,超单强度);超单强度比:=IF(超单强度>0,(超单强度限制+100)/2,IF(超单强度<0,100-ABS((超单强度限制-100)/2),0)),NODRAW;DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;DRAWRECTREL(0,CONST(930-(ABS(大宗进)*250/DAZHIV)),35,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(37,CONST(930-(ABS(大宗出)*250/DAZHIV)),72,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(75,CONST(930-(ABS(非大宗进)*250/DAZHIV)),110,950,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(112,CONST(930-(ABS(非大宗出)*250/DAZHIV)),147,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(150,CONST(940-(ABS(净流入)*250/DAZHIV))-20,190,950,IF(CONST(净流入>0),RGB(200,0,0),RGB(0,125,50)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT('' ,CON2STR(大宗进/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.036,0.9,0,STRCAT('', CON2STR(大宗出/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.074,0.9,0,STRCAT('', CON2STR(非大宗进/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.111,0.9,0,STRCAT('',CON2STR(非大宗出/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.150,0.9,0,STRCAT('', CON2STR(净流入/1,0))),COLORYELLOW;DRAWTEXT_FIX(1,0.000,0.99,0,STRCAT(STRCAT('主力',CON2STR(主力净流入,0)),'万')),COLORMAGENTA;DRAWTEXT_FIX(1,0.078,0.99,0,STRCAT(STRCAT('散户',CON2STR(散户净流入,0)),'万')),COLORCYAN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.145,0.99,0,'净流入:(万)'),COLORYELLOW;主力买力度:=LARGEINTRDVOL*1000/VOL;主力卖力度:=LARGEOUTTRDVOL*1000/VOL;AAD:=CONST(MAX(ABS(主力买力度),ABS(主力卖力度)))*4,NODRAW;DRAWRECTREL(0,515,CONST(ABS(主力买力度)*560/AAD),568,IF(CONST(主力买力度)>0,RGB(255,0,0),RGB(0,50,0)));DRAWRECTREL(0,570,CONST(ABS(主力卖力度)*560/AAD),623,IF(CONST(主力卖力度)>0,RGB(0,50,0),RGB(255,0,0)));DRAWTEXT_FIX(1,0,0.524,0,STRCAT('主买力度:',CON2STR(主力买力度,0))),COLORYELLOW;DRAWTEXT_FIX(1,0,0.576,0,STRCAT('主卖力度:',CON2STR(主力卖力度,0))),COLORYELLOW;DRAWTEXT_FIX(C>0,0.08,0.0,0,STRCAT('所属行业:',HYBLOCK)),COLORYELLOW;DRAWTEXT_FIX(C>0,0.18,0.0,0,STRCAT('所属地区:',DYBLOCK)),COLORYELLOW;{DRAWTEXT_FIX(C>0,0.20,0.0,0,STRCAT('主题投资:',GNBLOCK)),COLORYELLOW;DRAWTEXT_FIX(1,0.00,0.04,0,'业绩预报:')COLORYELLOW;DRAWTEXT_FIX(1,0.06,0.04,0,EXTERNSTR(0,11))COLORYELL OW;{DRAWTEXT_FIX(C>0,0.0,0.05,0,STRCAT('主题投资:',EXTERNSTR(0,7))),COLORYELLOW;}{DRAWTEXT_FIX(C>0,0.00,0.05,0,STRCAT('业绩预报:',EXTERNSTR(0,11))),COLORYELLOW;}{DRAWTEXT_FIX(C>0,0.0,0.15,0,STRCAT('解禁日期:',EXTERNSTR(0,8))),COLORYELLOW;}{DRAWTEXT_FIX(C>0,0.00,0.20,0,STRCAT('千股千评:',EXTERNSTR(0,1))),COLOR00FFFF;}{DRAWTEXT_FIX(C>0,0.00,0.25,0,STRCAT('智能诊股:',EXTERNSTR(0,2))),COLOR00FFFF;};{DDE显示}DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*1000/FINANCE(7);DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);DRAWRECTREL(150,500,192,540,IF(CONST(DDX)>0,RGB(255 ,0,0),RGB(0,50,0)));DRAWRECTREL(150,545,192,585,IF(CONST(DDY)>0,RGB(255 ,0,0),RGB(0,50,0)));DRAWRECTREL(150,590,192,630,IF(CONST(DDZ)>0,RGB(255 ,0,0),RGB(0,50,0)));DRAWTEXT_FIX(1,0.153,0.500,0,STRCAT('DDX:',CON2STR(DD X,1))),COLORYELLOW,COLORWHITE;DRAWTEXT_FIX(1,0.153,0.548,0,STRCAT('DDY:',CON2STR(DD Y,1))),COLORYELLOW,COLORWHITE;DRAWTEXT_FIX(1,0.153,0.596,0,STRCAT('DDZ:',CON2STR(DD Z,1))),COLORYELLOW,COLORWHITE;T1:=IF (DDX>0 AND REF(DDX,1)<0,1,0);T2:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)<0,2,T1);T3:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)<0,3,T2);T4:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)<0,4,T3);T5:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)<0,5,T4);T6:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)<0,6,T5);T7:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)<0,7,T6);T8:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)<0,8,T7);T9:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 AND REF(DDX,9)<0,9,T8);T:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 AND REF(DDX,9)>0,10,T9);DRAWTEXT_FIX(1,0.190,0.500,0,STRCAT(STRCAT('',CON2STR(T,0)),' [天] ')),COLORYELLOW;T11:=IF (DDY>0 AND REF(DDY,1)<0,1,0);T21:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)<0,2,T11);T31:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)<0,3,T21);T41:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)<0,4,T31);T51:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)<0,5,T41);T61:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)<0,6,T51);T71:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)<0,7,T61);T81:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)<0,8,T71);T91:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 AND REF(DDY,9)<0,9,T81);TY01:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 AND REF(DDY,9)>0,10,T91);DRAWTEXT_FIX(1,0.190,0.548,0,STRCAT(STRCAT('',CON2STR(TY01,0)),' [天] ')),COLORYELLOW;T1Z:=IF (DDZ>0 AND REF(DDZ,2)<0,1,0);T2Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)<0,2,T1Z);T3Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)<0,3,T2Z);T4Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)<0,4,T3Z);T5Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)<0,5,T4Z);T6Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)<0,6,T5Z);T7Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)<0,7,T6Z);T8Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)<0,8,T7Z);T9Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 AND REF(DDZ,9)<0,9,T8Z);TZ:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 AND REF(DDZ,9)>0,10,T9Z);DRAWTEXT_FIX(1,0.190,0.596,0,STRCAT(STRCAT('',CON2STR(TZ,0)),' [天] ')),COLORYELLOW;M1:=30;P2:=80;VAR11:=(C+H+O+L)/4;买入:=XMA(VAR11,M1)*(1-P2/1000),COLORFFFFFF,LINETHICK2;反弹:=EMA(EMA(EMA(HIGH,5),5),5)*0.95,COLORRED,LINETHICK1;XG:=CROSS(买入,反弹);DRAWTEXT(XG,(LOW -0.2),'暴' ),COLORRED;。

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

【通达信】高低点(高点压力、低点支撑)-指标公式源码
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLA Y:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H*1.02,2);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;
DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055F F,POINTDOT;
DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLO W,POINTDOT;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L*0.98,1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2;
ZGSTAR:=(高点压力+低点支撑)/2;
ZGEND:=CONST((高点压力+低点支撑)/2);
STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);

轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55 BB,LINETHICK2;
DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGEN TA,POINTDOT,;
DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN, POINTDOT;
【通达信】高低点(高点压力、低点支撑)-指标公式效果图
(文档来源:若水财经社区)。

相关文档
最新文档