欢迎来到春秋美文网!

准确顶底波段指标公式

热门资讯 时间:2021-05-04

【www.cqwcsy.com--热门资讯】

篇一:《【股票指标公式下载】-【通达信】顶底分明(短买奇准、急买奇准、波段高抛、波段低吸)》

【通达信】顶底分明(短买奇准、急买奇准、波段高抛、波段低吸)-指标公式源码

买:=MA(CLOSE,1);

卖:=(LOW+HIGH+CLOSE)/3;

奇准:= MA(卖,5);

买卖:=LLV(奇准,10);

急买奇准:=LLV((买<买卖),5);

短买奇准:=LLV((买<买卖),10);

STICKLINE(短买奇准,0,100,3,0),COLORRED;

STICKLINE(急买奇准,0,50,3,0),COLORFF00FF;

顶: 97,COLORBLUE;

波段高抛注意: 80,COLORMAGENTA;

趋势:

3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORFFFFFF;

波段低吸: 20,COLORRED;

底:8,COLORGREEN;

强弱分界: 50,COLORGRAY;

DRAWICON(REF(趋势,1)<8 AND REF(趋势,2)>REF(趋势,1) AND 趋势>REF(趋势,1),趋势,1);

DRAWICON(REF(趋势,1)>90 AND REF(趋势,2)<REF(趋势,1) AND 趋势<REF(趋势,1),趋势,2);

【通达信】顶底分明(短买奇准、急买奇准、波段高抛、波段低吸)-指标公式效果图

(文档来源:若水财经社区)

以下是通达信奉献一个超级准的极品逃顶指标+用法+图示主图源码)(无源码的请下载附件导入) 藏很久的逃顶指标,该指标在各分时图上均适用。

用这个指标可以判断,个股逃顶数值在3.2以上,尤其是到达3.5以上,一旦在高位出现绿色柱状,就要及时卖出了,连续出现2个绿色柱状,说明下降通道打开了,更要逃命了,掌握住这点,你就是赢家。我们不是庄家,不会卖到最高价,但通过这个指标,可以卖到较高价。

个股购买时,也可以参考这个指标,逃顶指标到达3.0以上的个股要谨慎买入了,对于逃顶指标到达3.3以上的个股,原则上不买入了,此时的下跌风险远远大于上涨的机会。

附,完整版的逃顶抄底指标:

DZH1 2均可用。

1.{短线MACD}

VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);

VAR2:=EMA(VAR1,50);

VAR3:=2*(VAR1-VAR2);

STICKLINE(VAR3<REF(VAR3,1) AND VAR3>0,0,VAR3,4,1),coloryellow;

STICKLINE(VAR3>=REF(VAR3,1)AND VAR3>0,0,VAR3,4,1),colorred;

STICKLINE(VAR3>REF(VAR3,1)AND VAR3<0,0,VAR3,4,1),COLORFFC8FF;

STICKLINE(VAR3<=REF(VAR3,1)AND VAR3<0,0,VAR3,4,1),COLORFFCC66;

趋势一:EMA(CLOSE,12)-EMA(CLOSE,26),colorred;

趋势二:EMA(VAR1,50),colorgreen;

该指标既能使用于短线操作,又是一个能预测顶底的指标,简单实用,还可以做足一次行情的波段,用好用活能做到少赔多赚,在变幻莫测的股市能达到这个目标就已经不错了!

使用方法及要领:

1、0轴线是强弱的分水岭,0轴以上为强势区,0轴以下为弱势区;

2、0轴以上的红拄表示股票由弱开始转强,此时介入相对安全,只要红柱一根比一根长,应该耐心持股;当红柱比前一根缩短时应该 警 惕,出现黄柱时卖出。也就是红买黄卖。

3、当股票完成一波上涨后回落到0轴以下开始转弱出现兰色柱,此时应该持币观望,当兰色柱收敛出现粉色柱时表示股价超跌反弹,但不能表示下跌趋势的改变,有看盘经验的可以做短线,不可恋战。

4、当兰色柱线不断缩短向0轴线运行时,表明股价即将脱离弱势区有趋势向好的迹象,可以重点关注。当在0轴线上收出红柱线时,应该结合大盘趋势选择时机果断介入。

5、按照上述方法反复轮做应该有较好的收获。

2.鸡肋组合:dzh2底部

高位线:85,COLORRED,POINTDOT;

底部线:20,COLORFFCCCC,POINTDOT;

var6:=(2*CLOSE+HIGH+LOW)/4;

var7:=LLV(LOW,13);

var8:=HHV(HIGH,13);

var9:=EMA((var6-var7)/(var8-var7)*100,13);

varA:=EMA(0.667*REF(var9,1)+0.333*var9,2);

多:var9,COLORRED;

空: EMA(0.382*REF(var9,2)+0.618*var9,12);

STICKLINE(var9>varA,var9,varA,6,0),COLORRED;

STICKLINE(var9<=varA,var9,varA,6,0),COLORFFCC66;

VM1:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;

低吸:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100*VM1;

波段底部:IF(CROSS(低吸,-24),0,50)*VM1, COLORYELLOW, LINETHICK2;

VP1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;

VP2:=SMA(SMA(VP1,3,1),3,1);

VP3:=EMA(VP2,5);

无敌:=3*VP2-2*VP3;

超级无敌:IF(CROSS(无敌,VP2) AND 无敌<21,45,0),COLORFF00FF,LINETHICK2; Vr2:=(2*CLOSE+HIGH+LOW)/4;

Vr4:=LLV(LOW,5);

Vr5:=HHV(HIGH,4);

散户:=EMA((Vr2-Vr4)/(Vr5-Vr4)*100,4);

庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2);

短线高手:if(CROSS(散户,庄家) AND 散户<50 AND 29<散户 AND

C>O,40,0),COLORFFC8FF;

趋势线:=SMA(EMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,3),7,1)-(13); 判断:=(SMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,2,1)-8);

买参考:IF(FILTER(CROSS(判断,趋势线)=1 OR 判断>REF(判断,1),10) AND 判断 <25 ,35,1),COLORWHITE,POINTDOT;

STICKLINE(FILTER(CROSS(判断,趋势线)=1 OR 判断>REF(判断,1),10) AND 判断 <25 ,35,0,4,1),COLORWHITE;

卖参考:IF(FILTER(判断<REF(判断,1)AND 判断

>65,5),80,70),COLOR00FF00,POINTDOT;

STICKLINE(FILTER(判断<REF(判断,1)AND 判断

>65,5),80,70,4,0),COLOR00FF00;

3.新编子午线

a:=(3*c+l+o+h)/6;

b:=(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*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)

+2*ref(a,18)+ref(a,20))/210;

天地区域:=((HHV(b,14)-b)/(HHV(b,14)-LLV(b,14))*200)-125;

RSV:=((HHV(HIGH,m)-CLOSE)/(HHV(HIGH,m)-LLV(LOW,m))*200)-125;

子:SMA(RSV,aa,1),linethick2;

RSV1:=((CLOSE-LLV(LOW,m))/(HHV(HIGH,m)-LLV(LOW,m))*200)-105;

午:SMA(RSV1,aa,1),linethick2;

stickline(天地区域=75,天地区域,天地区域-5,8,1),colorred;{准确顶底波段指标公式}.

stickline(天地区域=-125,天地区域+5,天地区域,8,1),colorgreen;

stickline(天地区域>-125 and 天地区域<75,午+子+1,午+子-1,8,1),coloryellow; 天:55,linethick2;

地:-90,linethick2;

DRAWTEXT( cross(午,地) OR cross(天,子) ,-110,'★买'),coloryellow;

DRAWTEXT( cross(子,地) OR cross(天,午) ,-10,'★卖'),;

用法:

买入:子线下穿天线或午线上穿子线!!

卖出:午线上穿天线!!

VAR6:=(2*CLOSE+HIGH+LOW)/4;

VAR8:=LLV(LOW,35);

VARB:=HHV(HIGH,35);

BB:=EMA((VAR6-VAR8)/(VARB-VAR8)*100,9);

金盆聚宝指标:EMA(0.667*REF(BB,1)+0.333*BB,2);

GC1:BB,POINTDOT,COLOR0000A8;

RSV1:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;

K1:=SMA(RSV1,13,1);

D1:=SMA(K1,13,1);

GC2:EMA(D1,3),POINTDOT,COLORYELLOW;

STICKLINE((BB-金盆聚宝指标>0),BB,金盆聚宝指标,6,0),COLOR0000A8;

STICKLINE((BB-金盆聚宝指标>0),BB,金盆聚宝指标,5,0),COLOR0000C0;

STICKLINE((BB-金盆聚宝指标>0),BB,金盆聚宝指标,4,0),COLOR0000E0;

STICKLINE((BB-金盆聚宝指标>0),BB,金盆聚宝指标,3,0),COLOR0000F0;

STICKLINE((BB-金盆聚宝指标>0),BB,金盆聚宝指标,2,0),COLOR0000D0;

STICKLINE((BB-金盆聚宝指标>0),BB,金盆聚宝指标,1,0),COLOR8080FF;

STICKLINE((BB-金盆聚宝指标<0),BB,金盆聚宝指标,6,0),COLORFFFFFF;

STICKLINE((BB-金盆聚宝指标<0),BB,金盆聚宝指标,5,0),COLORFFFFFF;

STICKLINE((BB-金盆聚宝指标<0),BB,金盆聚宝指标,4,0),COLORFFFFFF;

STICKLINE((BB-金盆聚宝指标<0),BB,金盆聚宝指标,3,0),COLORFFFFFF;

STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EMA(D1,3),1),8,0),COLOR

RED;

STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EMA(D1,3),1),7,0),COLOR

1029FF;

STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EMA(D1,3),1),6,0),COLOR

1040FF;

STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EMA(D1,3),1),5,0),COLOR

1083FF;

STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EMA(D1,3),1),4,0),COLOR

10ABFF;

DRAWTEXT(FILTER(CROSS(BB,金盆聚宝指标)AND BB<30 AND 金盆聚宝指

标>REF(金盆聚宝指标,1)AND BB>=金盆聚宝指标,5),35,'减空');

DRAWICON(FILTER(CROSS(BB,金盆聚宝指标)AND BB<30 AND 金盆聚宝指

标>REF(金盆聚宝指标,1)AND BB>=金盆聚宝指标,5),31,4);

DRAWTEXT(FILTER(CROSS(BB,金盆聚宝指标)AND BB<30 AND 金盆聚宝指

标>REF(金盆聚宝指标,1)AND BB<=金盆聚宝指标,5),35,'追多');

DRAWICON(FILTER(CROSS(BB,金盆聚宝指标)AND BB<30 AND 金盆聚宝指

标>REF(金盆聚宝指标,1)AND BB<=金盆聚宝指标,5),31,4);

DRAWTEXT(FILTER(BB<REF(BB,1)AND BB>55 AND BB>REF(BB,4)AND

C>MA(C,15),7)AND BB>金盆聚宝指标,55,'减多');

DRAWICON(FILTER(BB<REF(BB,1)AND BB>55 AND BB>REF(BB,4)AND

C>MA(C,15),7)AND BB>金盆聚宝指标,59,5);{准确顶底波段指标公式}.

DRAWTEXT(FILTER(BB<REF(BB,1)AND BB>92.5 AND BB>REF(BB,4)AND

C>MA(C,15),7)AND BB<金盆聚宝指标,55,'追空');

DRAWICON(FILTER(BB<REF(BB,1)AND BB>92.5 AND BB>REF(BB,4)AND

C>MA(C,15),7)AND BB<金盆聚宝指标,59,5);

GC3: LLV(BB,198),POINTDOT,COLORGREEN;

GC4: HHV(BB,188),POINTDOT,COLORGREEN;

DRAWTEXT(FILTER(GC4>REF(GC4,1),7),GC4-7,'将见顶');

DRAWICON(FILTER(GC4>REF(GC4,1),7),GC4,13);

CC:=(BB-金盆聚宝指标<0.3)AND (BB<25)AND C<MA(C,13)*0.98 AND C>REF(C,1);

DD:=FILTER(CC,10);

DRAWTEXT(DD,15,'还有一跌');

DRAWICON(DD,19,9);

GG:=(BB-金盆聚宝指标<0.6)AND (BB<40)AND C<MA(C,13)*0.996 AND C>REF(C,1);

HH:=FILTER(GG,10);

DRAWTEXT(HH,25,'逃底点'),COLOR43D0FA;

DRAWICON(HH,20,10);

EE:=(BB-金盆聚宝指标>0.55)AND (BB>70)AND C>MA(C,13)*0.96 AND C<REF(C,1);

FF:=FILTER(EE,10);

DRAWTEXT(FF,70,'逃高点'),COLOR43D0FA;

DRAWICON(FF,75,8);

DRAWTEXT(FILTER(GC3>REF(GC3,1),5)AND BB<40 AND 金盆聚宝指标>REF(金盆聚

宝指标,1),GC3+6,'将见底');

DRAWICON(FILTER(GC3>REF(GC3,1),5)AND BB<40 AND 金盆聚宝指标>REF(金盆

聚宝指标,1),GC3,11);

【通达信】顶底波段(攻击线、操盘线、生命线、决策线、短底)-指标公式源码

攻击线5:MA(C,5)LINETHICK1;

操盘线10:MA(C,10)LINETHICK1;

生命线30:MA(C,30)LINETHICK1;

决策线60:MA(C,60)LINETHICK1;

DRAWTEXT(CROSS(攻击线5,操盘线10),LOW*0.95,'攻抄金叉'),COLORRED;

DRAWTEXT(CROSS(生命线30,决策线60),LOW*0.95,'生决金叉'),COLORMAGENTA; N:=20;

M:=30;

P1:=80;

P2:=100;

VAR101:=(C+H+O+L)/4;

卖出:XMA(VAR101,N)*(1+P1/1000),COLORRED,LINETHICK2;

买入:XMA(VAR101,M)*(1-P2/1000),COLORLIRED,LINETHICK2;

幅度:=100*(卖出-买入)/买入,NODRAW;

MA1:=MA(VAR101,3);

STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖

出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;

STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖

出,MAX(OPEN,CLOSE),3,0),COLORGREEN;

STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;

STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;

STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;

STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买

入),3,0),COLORMAGENTA;

STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买

入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;

STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA; STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;

STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;

DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'买'),COLORRED,LINETHICK2; DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'卖'),COLORGREEN;

MA20:=MA(CLOSE,20);

MA120:=MA(CLOSE,120);

MA30:=MA(CLOSE,37);

MAP:=MA(CLOSE,8);

AA5:=MA(CLOSE,21);

AA10:=MA(CLOSE,8),COLORFF0000;

AA12:=MA(CLOSE,12),COLORFF0000;

BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);

BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);

MA13:=MA(CLOSE,13);

VAR01:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);

中期大底:=LLV(LOW,30),;

短期底部0:=LLV(HIGH,30);

短底:=EMA(VAR01,5);

支撑:=HHV(短底,60);

压力1:=HHV(LOW,20),COLORFAABEC;

压力:=SMA(LOW,5,1);

中线:=MA(CLOSE,3);

DRAWTEXT(FILTER(((((HIGH > 支撑) AND (CLOSE < 支撑)) AND ((CLOSE / OPEN) > (0 - 1.06))) AND (CLOSE < OPEN)),5),(HIGH + 0.02),'逃'),COLORFFFF00;

中轨道:=(MA(HIGH,15) * 1.05);

天:=(MA(LOW,15) * 0.985);

人:=(MA(LOW,15) * 0.96);

地:=(((HIGH + LOW) + CLOSE) / 3);

B1:=HHV(地,(4 * 15));

B6:=LLV(地,(4 * 15));

B7:=(B1 - B6);

B8:=(MA(((地 - B6) / B7),2) * 80);

VAR1:=(((CLOSE - LLV(LOW,100)) / (HHV(HIGH,100) - LLV(LOW,100))) * 200); 飞龙顶底线1:=SMA(VAR1,3,1);

VAR2:=SMA(飞龙顶底线1,3,1);

VAR3:=((3 * 飞龙顶底线1) - (2 * VAR2));

VAR4:=LLV(LOW,5);

VAR5:=HHV(HIGH,5);

VAR6:=(EMA((((CLOSE - VAR4) / (VAR5 - VAR4)) * 100),4) * 2);

VAR7:=EMA(((0.667 * REF(VAR6,1)) + (0.333 * VAR6)),2);

VAR8:=((3 * VAR6) - (2 * VAR7));

VAR9:=(POW(MA(CLOSE,5),2) + MA(CLOSE,5));

VARA:=(POW(MA(LOW,5),2) + MA(LOW,5));

VARB:=(POW(MA(HIGH,5),2) + MA(HIGH,5));

VARC:=(((((VAR9 - LLV(VARA,64)) / (HHV(VARB,64) - LLV(VARA,64))) * 150) + 65) - 10);

VARD:=((SMA(VARC,3,1) * 1.5) - 100);

VARE:=SMA(VARD,3,1);

VARF:=((3 * VARD) - (2 * VARE));

VAR10:=(((HIGH + LOW) + (CLOSE * 2)) / 4);

VAR11:=EMA(VAR10,13);

VAR12:=STD(VAR10,13);

VAR13:=(((VAR10 - VAR11) * 100) / VAR12);

VAR14:=EMA(VAR13,5);

VAR15:=EMA(VAR14,13);

VAR16:=((EMA(VAR14,13) + 200) - 100);

VAR17:=EMA(VAR16,10);

VAR18:=((3 * VAR16) - (2 * VAR17));

VAR19:=(((飞龙顶底线1 + VAR6) + VARD) + VAR16);

VAR1A:=(((VAR2 + VAR7) + VARE) + VAR17);

VAR1B:=(((VAR3 + VAR8) + VARF) + VAR18);

VAR1C:=(((HIGH + LOW) + CLOSE) / 3);

VAR1D:=((AMOUNT / VOL) / 100);

VAR1E:=((SUM(AMOUNT,5) / SUM(VOL,5)) / 100);

VAR1F:=((VAR1C - MA(VAR1C,34)) / (0.015 * AVEDEV(VAR1C,34))); VAR21:=((((HIGH + LOW) + CLOSE) + VAR1C) / 4);

VAR22:=EMA(VAR21,24);

VAR23:=STD(VAR21,24);

VAR24:=(((VAR21 - VAR22) / VAR23) * 100);

VAR25:=((VAR1C - MA(VAR1C,24)) / (0.015 * AVEDEV(VAR1C,24))); VAR26:=EMA(VAR24,5);

VAR27:=((VAR1D - MA(VAR1D,21)) / (0.015 * AVEDEV(VAR1D,21))); VAR28:=((VAR1E - MA(VAR1E,90)) / (0.015 * AVEDEV(VAR1E,90)));

VAR29:=(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4);

VAR2A:=(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15); VAR2B:=(((VAR29 + VAR2A) / 2) / 1.1);

VAR2C:=VAR2B;

短线:=MA(VAR2C,26);

MID:=(短线 + (2 * STD(VAR2C,26)));

UPPER:=(短线 - (2 * STD(VAR2C,26)));

LOWER:=IF((VAR2C > 短线),短线,VAR2C);

XY:=MA(CLOSE,5);

M80:=MA(CLOSE,80);

短期底部:=(LLV(HIGH,30) * 0.93);

MA80:=LLV(HIGH,30);

短期底部2:=SMA(CLOSE,2,1);

趋势:=(MA(LOW,10) * 0.96);

趋:=(EMA(OPEN,107) * 0.897);

超跌位2:=MA(CLOSE,15);

GF:=MA(CLOSE,10);

MAN:=(SMA(HIGH,21,2) * 1.05);

上1:=(HHV(短底,60) * 0.92);

压力2:=(SMA(HIGH,21,2) * 1.035);

阻挡线:=(SMA(LOW,21,2) * 0.96);

下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RSV:=SMA(下档线,3,1);

K:=SMA(RSV,3,1);

D:=((3 * RSV) - (2 * K));

J:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);

VAR2P:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);

VAR3P:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);

VAR4P:=(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6);

VAR5P:=MA(VAR4P,3);

VAR6P:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100); RSV12:=SMA(VAR6P,3,1);

K12:=SMA(RSV12,3,1);

D12:=((3 * RSV12) - (2 * K12));

J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(J12,3,1);

K24:=SMA(RSV24,3,1);

D24:=((3 * RSV24) - (2 * K24));

J24:=IF(CROSS(D,D24),LOW,REF(LOW,BARSLAST(CROSS(D,D24))));

压力位:=IF(CROSS(D24,D),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D)))); 支撑位:=IF((CLOSE >= MA(CLOSE,20)),80,50);

U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);

L2L:=IF(((D < 支撑位) AND (REF(D,1) >= 支撑

位)),HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),REF(HHV(REF(HIGH,1),(BARSLAST(((D >= 支撑位) AND (REF(D,1) < 支撑位))) - 1)),BARSLAST(((D < 支撑位) AND REF(D,1)))));

RH1:=IF((HIGH > L2L),LOW,REF(LOW,BARSLAST((HIGH > L2L))));

RH4:=IF((HIGH > L2L),D,REF(D,BARSLAST((HIGH > L2L))));

RH42:=IF((((HIGH > RH1) AND (D < RH4)) AND (D <

D24)),HIGH,REF(HIGH,BARSLAST((((HIGH > RH1) AND (D < RH4)) AND (D < D24)))));

RH5:=IF(((D > U2L) AND (REF(D,1) <= U2L)),LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),REF(LLV(REF(LOW,1),(BARSLAST(((D <= U2L) AND (REF(D,1) > U2L))) - 1)),BARSLAST(((D > U2L) AND REF(D,1))))); RL1:=IF((LOW < RH5),HIGH,REF(HIGH,BARSLAST((LOW < RH5))));

RL4:=IF((LOW < RH5),D,REF(D,BARSLAST((LOW < RH5))));

RL42:=IF((((LOW < RL1) AND (D > RL4)) AND (D >

D24)),LOW,REF(LOW,BARSLAST((((LOW < RL1) AND (D > RL4)) AND (D > D24))))); 长期底部:=LLV(HIGH,30);

DRAWTEXT(FILTER(((((RL42 = J24) AND (CLOSE > OPEN)) AND (CLOSE > 长期底部)) AND (LOW <= J24)),20),(LOW - 0.12),'底成'),COLOR0EABFF; RL5:=(SMA(HIGH,5,2) * 1.05);

上:=(SMA(LOW,5,2) * 0.96);

下:=SMA(LOW,2,1);

中:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);

X1:=EMA(中,10);

X2:=REF(X1,1);

X3:=((REF(HIGH,1) + REF(LOW,1)) / 2);

X4:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));

X5:=REF(CLOSE,1);

X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100);

【通达信】波段理论(波浪顶、波段底)-指标公式源码

PL5:=ZIG(3,5);

EN1:=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);

EX1:=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);

PL10:=ZIG(3,13);

EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);

EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);

PL20:=ZIG(3,26);

EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);

EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);

PL40:=ZIG(3,55);

走强一:=BARSLAST(PL5<REF(PL5,1));

走弱一:=BARSLAST(PL5>REF(PL5,1));

走强二 :=BARSLAST(PL10<REF(PL10,1));

走弱二:=BARSLAST(PL10>REF(PL10,1));

走强三:=BARSLAST(PL20<REF(PL20,1));

走弱三:=BARSLAST(PL20>REF(PL20,1));

ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强二 ),0);

ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强二 ),0);

DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱二),0);

DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱二),0);

ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强三),0);

ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强三),0);

DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱三),0);

DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱三),0);

DRAWTEXT(EN1 AND DTJZ5=1,LOW*0.98,'(Ⅰ)'),COLORFFFF00;

DRAWTEXT(EX1 AND DTJD5=2,HIGH*1.02,'(Ⅱ)'),COLORFFFF00;

DRAWTEXT(EN2 AND ZTJZ5=1,LOW*0.98,'(Ⅲ)'),COLORFFFF00;

DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,HIGH*1.02,'⑴

'),COLOR0000FF;

DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,LOW*0.98,'⑵

'),COLOR0000FF;

DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,HIGH*1.02,'⑶

'),COLOR0000FF;

DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,LOW*0.98,'⑷

'),COLOR0000FF;

DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.02,'⑸

'),COLOR0000FF;

DRAWTEXT(EN2 AND DTJZ10=1,LOW*0.94,'【A】'),COLOR00FF00;

DRAWTEXT(EX2 AND DTJD10=2,HIGH*1.03,'【B】'),COLOR00FF00;

DRAWTEXT(EN3 AND ZTJZ10=1,LOW*0.94,'【C】'),COLOR00FF00;

DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,HIGH*1.04,'①

'),LINETHICK3,COLOR00FFFF;

DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,LOW*0.94,'②

'),LINETHICK3,COLOR00FFFF;

DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,HIGH*1.04,'③'),LINETHICK3,COLOR00FFFF;

DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,LOW*0.94,'④

'),LINETHICK3,COLOR00FFFF;

DMLJ:=HHV(HIGH,120);

TY:=CLOSE;

HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10); LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10); A:=REF(CLOSE,BARSLAST(HD));

B:=REF(CLOSE,BARSLAST(LD));

T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;

T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);

波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2;

STICKLINE(T1,A,A,9,0),COLORFF00FF;

波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2;

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:=MA(HHV(CLOSE-REF(CLOSE,1),0),34)/MA(ABS(CLOSE-REF(CLOSE,1)),7)*100;

VAR9:=MA(HHV(CLOSE-REF(CLOSE,1),0),13)/MA(ABS(CLOSE-REF(CLOSE,1)),13)*100;

VARA:=BARSCOUNT(CLOSE);

VARB:=VAR8<20 AND VAR9<23 AND VARA>35;

本文来源:https://www.cqwcsy.com/news/58396/

推荐内容