波段抄底逃顶通达信指标公式源码
通达信波段抄底逃顶指标公式
通达信波段抄底逃顶指标公式【最新版】目录1.通达信波段抄底逃顶指标公式概述2.通达信波段抄底逃顶指标公式的组成3.通达信波段抄底逃顶指标公式的应用4.通达信波段抄底逃顶指标公式的优缺点正文一、通达信波段抄底逃顶指标公式概述通达信波段抄底逃顶指标公式是一种用于股票市场中的技术指标,旨在帮助投资者识别股票价格的底部和顶部,从而实现抄底和逃顶的操作。
该指标公式基于历史股价数据,通过一定的计算和分析方法,为投资者提供参考信息。
二、通达信波段抄底逃顶指标公式的组成通达信波段抄底逃顶指标公式主要由以下几个部分组成:1.操盘线:操盘线是一种基于收盘价的技术指标,用于判断股票价格的趋势。
操盘线的计算公式为:ma(close, 9),其中 close 表示收盘价,9 表示操盘线的周期。
2.今小昨和今小前:这两个指标用于判断股票价格是否处于下跌趋势。
今小昨的计算公式为:if(c < ref(o, 1), 1, 0),其中 c 表示当前收盘价,ref(o, 1) 表示前一日的开盘价;今小前的计算公式为:if(c < ref(o,2), 1, 0),其中 ref(o, 2) 表示前两日的开盘价。
3.波段指标:波段指标是一种基于收盘价和最低价的技术指标,用于判断股票价格的底部和顶部。
波段指标的计算公式为:(close - llv(low, 60)) / (hhv(high, 60) - llv(low, 60)) * 100,其中 close 表示收盘价,low 表示最低价,high 表示最高价,llv 表示最低价的最低值,hhv 表示最高价的最高值。
4.抄底逃顶线:抄底逃顶线是一种基于波段指标的技术指标,用于识别股票价格的底部和顶部。
抄底逃顶线的计算公式为:sma(波段指标,5,1)。
三、通达信波段抄底逃顶指标公式的应用通达信波段抄底逃顶指标公式的应用主要包括以下几个方面:1.判断股票价格的趋势:通过观察操盘线的变化,投资者可以判断股票价格是处于上升趋势、下降趋势还是盘整状态。
波段抄底逃顶通达信指标公式源码
波段抄底逃顶通达信指标公式源码以下是一个简单的波段抄底逃顶指标的通达信公式源码:```c/*************************************************************************【十字星抄底逃顶指标】原理:当市场出现大幅度波动时,十字星形态往往是行情反转的信号,可用于波段抄底逃顶。
公式:条件一:收盘价小于开盘价,并且收盘价小于前一日收盘价;条件二:实体部分长度小于前一日K线实体部分长度;条件三:当前K线最高价小于前一日K线最高价;条件四:当前K线最低价大于前一日K线最低价。
信号:当以上条件均满足时,出现十字星抄底逃顶信号。
**************************************************************************//***************************************收盘价小于开盘价,并且收盘价小于前一日收盘价***************************************/C<LANDREF(C,1)>C/***************************************实体部分长度小于前一日K线实体部分长度***************************************/ABS(C-O)<ABS(REF(C-O,1))/***************************************当前K线最高价小于前一日K线最高价***************************************/HIGH<REF(HIGH,1)/***************************************当前K线最低价大于前一日K线最低价***************************************/LOW>REF(LOW,1)/***************************************以上条件均满足时,出现十字星抄底逃顶信号***************************************/AND(AND(AND(C<L,REF(C,1)>C),ABS(C-O)<ABS(REF(C-O,1))),AND(HIGH<REF(HIGH,1),LOW>REF(LOW,1))) ```以上是一个简单的波段抄底逃顶指标的通达信公式源码,根据波段抄底逃顶的原理和条件编写。
波段抄底通达信指标公式源码
VARA:=BARSCOUNT(CLOSE)*3.142/180;X1: 0;VAR1:=MA(CLOSE,5);VAR2:=MA(CLOSE,10);VAR3:=MA(CLOSE,20);VAR4:=MA(CLOSE,30);VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;VAR6:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;VAR7:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;VAR8:=EMA(VAR6,8);底部: STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 AND VAR6<VAR8,VAR6,0,2,0); STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 ANDVAR6<VAR8,VAR6,0,3,0)COLOR000099;STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 ANDVAR6<VAR8,VAR6,0,2.5,0)COLOR003399;STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 ANDVAR6<VAR8,VAR6,0,2,0)COLOR006699;STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 ANDVAR6<VAR8,VAR6,0,1.3,0)COLOR006699;STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 ANDVAR6<VAR8,VAR6,0,1.1,0)COLOR00CC99;STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 ANDVAR6<VAR8,VAR6,0,0.2,0)COLOR00FF99;转强: STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 ANDVAR6>VAR8,VAR8,0,2,0),COLORLIRED ;STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 ANDVAR6>VAR8,VAR8,0,3,0),COLORCC00FF;STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 ANDVAR6>VAR8,VAR8,0,2.5,0),COLORCC33FF;STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 ANDVAR6>VAR8,VAR8,0,2,0),COLORCC66FF;STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 ANDVAR6>VAR8,VAR8,0,1.5,0),COLORCC99FF;STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 ANDVAR6>VAR8,VAR8,0,1,0),COLORCCCCFF;STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 ANDVAR6>VAR8,VAR8,0,0.3,0),COLORCCFFFF;持股: STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,2,0),COLOR0000CD; STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,3,0),COLOR000099; STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,2.5,0),COLOR003399; STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,2,0),COLOR0000CC; STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,1.5,0),COLOR0033CC; STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,1.0,0),COLOR0000FF; STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,0.3,0),COLOR0033FF; STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,0.1,0),COLOR6666FF;观望: STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) ANDVAR6>0,VAR6,VAR8,2,0),COLORYELLOW;STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) ANDVAR6>0,VAR6,VAR8,3,0),COLOR0000FF;STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) ANDVAR6>0,VAR6,VAR8,2.5,0),COLOR0033FF;STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) ANDVAR6>0,VAR6,VAR8,2.0,0),COLOR0066FF;STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) ANDVAR6>0,VAR6,VAR8,1.5,0),COLOR0099FF;STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) ANDVAR6>0,VAR6,VAR8,1,0),COLOR00CCFF;STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) ANDVAR6>0,VAR6,VAR8,0.3,0),COLOR00FFFF;持币: STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,2,0),COLOR00CA00; STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,3,0),COLOR006600; STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,2.5,0),COLOR006633; STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,2,0),COLOR009900; STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,1.5,0),COLOR009933; STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,1,0),COLOR009966; STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,0.3,0),COLOR00CC66;坚决持股:0,COLORRED;谨慎观望:0,COLOR0066FF;果断持币:0,COLOR00CA00;注意底部:0,COLOR006699;趋势转强:0,COLORFF00FF;HLM1:=MA(HHV(H,485),17);HLM2:=MA(HHV(H,222),17);HLM3:=MA(HHV(H,96),17);HLM4:=MA(LLV(L,485),17);HLM5:=MA(LLV(L,222),17);HLM6:=MA(LLV(L,96),17);HLM7:=MA((HLM1*0.558+HLM2*0.558+HLM3*0.558+HLM4*0.96+HLM5*0.96+HLM6*0 .96)/6,17);HLM8:=MA((HLM1*0.55+HLM2*0.55+HLM3*0.65+HLM4*1.25+HLM5*1.23+HLM6*1.2)/ 6,17);HLM9:=MA((HLM1*0.68+HLM2*0.68+HLM3*0.68+HLM4*1.3+HLM5*1.3+HLM6*1.3)/6, 17);HLM10:=MA((HLM7*3+HLM8*2+HLM9)/6*1.738,17);HLM11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;HLM12:=MA(IF(C*1.35<=HLM10,HLM11*10,HLM11/10),3);HLMH:=HHV(HLM12,30);关注:MA(IF(L<=LLV(L,13),(HLMH+HLM11*2)/2,0),3)/200,COLOR00FFFF; STICKLINE(关注>0, 关注,0,0,0),COLOR00FFFF;DRAWTEXT(CROSS(关注,1.2),关注*0.5-6,'▲'),COLORFF00FF;DRAWTEXT(CROSS(关注,1.2),关注*0.5-13,'▲'),COLORFF00FF;DRAWTEXT(CROSS(关注,4.5),关注,'抄底'),COLOR0000FF;DRAWICON(CROSS(关注,7.0),关注*0.5-10,9);DRAWTEXT(CROSS(关注,7.0),关注*0.5-25,'准备'),COLOR00FFFF;。
通达信波段抄底逃顶指标公式
通达信波段抄底逃顶指标公式通达信是一款常用的股票分析软件,波段抄底逃顶是一种常见的股票交易策略。
为了帮助投资者更好地利用通达信软件进行波段抄底逃顶交易,下面介绍一些常用的指标公式。
1. DMA指标:DMA指标是由短期移动平均线(DMA)、长期移动平均线(AMA)和无方向变动均值指标(ADX)组成。
其计算公式为:DMA = AMA - DMA,其中AMA可选用5日、10日或20日的移动平均线,DMA通常选用20日、30日或60日的移动平均线。
2. DMI指标:DMI指标是计算股价趋势的指标,包括正向趋势线(+DI)和负向趋势线(-DI),其计算公式为:+DI = (H - L)/TR * 100,-DI = (L - H)/TR* 100,其中H为当日最高价,L为当日最低价,TR为真实波动范围。
3. WR指标:WR指标也称为威廉指标,用于判断股价是否超买或超卖。
其计算公式为:WR = (Hn - C)/(Hn - Ln) * 100,其中Hn为最近n天的最高价,Ln为最近n天的最低价,C为当日收盘价。
4. MACD指标:MACD指标是计算股价趋势和动能的指标,包括快线(DIF)和慢线(DEA)。
其计算公式为:DIF = EMA(C, short) - EMA(C, long),DEA = EMA(DIF, mid),MACD = 2 * (DIF - DEA),其中C为当日收盘价,short、long和mid分别表示快线、慢线和MACD线的周期。
以上是通达信波段抄底逃顶指标的一些常用公式。
投资者可以根据自己的交易策略和对市场走势的判断,结合这些指标进行交易决策。
然而,需要注意的是,仅仅凭借指标公式并不能保证获利,还需要结合其他因素进行分析,并制定科学合理的风险控制措施。
在使用通达信软件进行股票交易时,建议投资者注重学习和实践,逐步积累经验,提高自己的交易技巧。
通达信指标公式源码 波段抄底
DRAWGBK(O>C,RGB(0,78,188),RGB(255,158,255),0,'01',0); {买卖决策}TYP:=(H+L+C)/3;LC:=REF(C,1);{NO.1}VAR001:=(TYP-MA(TYP,15))/(0.016*AVEDEV(TYP,15));VAR002:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100;B001:=IF(CROSS(VAR001,-150),1,0);S001:=IF(CROSS(80,VAR002),1,0);{NO.2}VAR003:=EMA(100*(C-LLV(L,31))/(HHV(H,31)-LLV(L,31)),3)/4; B002:=IF(VAR003<1,1,0);S002:=IF(VAR003>23,1,0);{NO.3}VAR004:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100;VAR005:=EMA(VAR004,3);VAR006:=EMA(VAR005,3);VAR007:=(3*VAR005-2*VAR006);VAR008:=REF(COUNT(VAR007<REF(VAR007,1),5)>=3,1) AND REF(VAR007,1)<20;VAR009:=VAR007>REF(VAR007,1);B003:=IF(FILTER(VAR008 AND VAR009,3),1,0);{NO.4}VAR010:=AMOUNT/VOL/1000;VAR011:=(3*H+L+O+2*C)/7;VAR012:=SUM(AMOUNT,13)/VAR010/1000;VAR013:=DMA(VAR011,VOL/VAR012);VAR014:=(CLOSE-VAR013)/VAR013*1000;B004:=IF(CROSS(VAR014,-166),1,0);B005:=IF(CROSS(VAR014,-120),1,0);B006:=IF(CROSS(VAR014,-88),1,0);{NO.5}VAR015:=(TYP-MA(TYP,15))/(0.015*AVEDEV(TYP,15));VAR016:=(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70));VAR017:=IF(VAR015>=150 AND VAR015<200 AND VAR016>=150 AND VAR016<200,100,0);VAR018:=0-IF(VAR016>=200,200,VAR017)+400;S003:=IF(VAR018=300,1,0);{NO.6}VAR019:=DMA((3*H+L+O+2*C)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/1 000)/1000));B007:=IF(CROSS((C-VAR019)/VAR019*1000,-166),1,0);{NO.7}VAR020:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;VAR021:=SMA(VAR020,2,1);B008:=IF(VAR021<10,1,0);{NO.8}VAR022:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),5)/SUM(IF(TYP<REF(TYP,1), TYP*VOL,0),5);MFI:=IF(CROSS(100-(100/(1+VAR022)),20),1,0);RSI:=SMA(MAX(C-LC,0),5,1)/SMA(ABS(C-LC),5,1)*100;B009:=IF(MFI,1,0);B010:=IF(CROSS(RSI,20),1,0);{NO.9}VAR023:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1 ));VAR024:=REF(C,VAR023+1)>C ANDREF("RSI.RSI1"(6,12,24),VAR023+1)<"RSI.RSI1"(6,12,24) ANDCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));VAR025:=IF(VAR024>0,1,0);B011:=IF(VAR025,1,0);{NO.10}VAR026:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));VAR027:=(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70));VAR028:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR029:=100-ABS(VAR028);VAR030:=IF(BARSCOUNT(C)<13,100,IF(VAR029<88 AND VAR028>0,1,0)); VAR031:=IF(BARSCOUNT(C)<13,-100,0-IF(VAR029<92 AND VAR028<0,1,0)); VAR032:=IF(BARSCOUNT(C)<70,1,IF(VAR027>=200 ANDVAR026>=150,1,0));B012:=IF(VAR031,1,0);S004:=IF(VAR030,1,0);S005:=IF(VAR032,1,0);{NO.11}VAR033:=SMA(MAX(C-LC,0),4.1,1)/SMA(ABS(C-LC),4.1,1)*100;VAR034:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA ((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);B013:=IF(CROSS(VAR033,11)*80,1,0);B014:=IF(CROSS(VAR034,3),1,0);B015:=IF(VAR034<=3,1,0);B016:=IF(VAR034<5,1,0);B017:=IF(VAR034<7,1,0);{NO.12}VAR035:=AMOUNT/VOL;VAR036:=L<VAR035*0.9;VAR037:=(C-LC)/LC*100>1.2;VAR038:=L< MA(C,5)*0.921;VAR039:=VOL< MA(V,5)*1.5;B018:=IF(VAR036 AND VAR037 AND VAR038 AND VAR039,1,0);{NO.13}VAR040:=100-3*(SMA(((C-LLV(L,75))/(HHV(H,75)-LLV(L,75)))*100,20,1))+2 *(SMA(SMA(((C-LLV(L,75))/(HHV(H,75)-LLV(L,75)))*100,20,1),15,1));VAR041:=100-3*(SMA(((O-LLV(L,75))/(HHV(H,75)-LLV(L,75)))*100,20,1))+2 *(SMA(SMA(((O-LLV(L,75))/(HHV(H,75)-LLV(L,75)))*100,20,1),15,1));VAR042:=VAR040<REF(VAR041,1) AND VOL>REF(VOL,1) AND C>LC;VAR043:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;VAR044:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;VAR045:=SMA(VAR044,13,8);VAR046:=SMA(VAR043,21,8);VAR047:=SMA(VAR045,13,8);VAR048:=FILTER((COUNT((VAR047-VAR046<(-65)),3)=3),34);VAR049:=MA(C,80)-(MA(C,13))/(3);VAR050:=MA((C-VAR049)/(VAR049),1);VAR051:=(EMA(VAR050,12))*0.69999998;VAR052:=EMA(VAR050,3);VAR053:=IF((LLV(VAR052-VAR051,12)>0),0,(-30));VAR054:=FILTER((COUNT((VAR053<(-20)),3)=3),34);B019:=IF(VAR048,1,0);B020:=IF(VAR054,1,0);{NO.14}VAR055:=C/REF(C,1)>1.045;VAR056:=C/HHV(H,34)<0.7;VAR057:=MAX(FORCAST(COST(24)/L,3),SMA(COST(24)/L,3,1))>1.526 ;VAR058:=VAR055 AND VAR056 AND VAR057;B021:=IF(VAR058,1,0);{NO.15}VAR059:=LLV(L,60);VAR060:=HHV(H,60);VAR061:=EMA((C-VAR059)/(VAR060-VAR059)*100,5);VAR062:=EMA(0.667*REF(VAR061,1)+0.333*VAR061,2);VAR063:=CROSS(VAR062,VAR061) AND VAR061>85;S006:=IF(VAR063,1,0);{NO.16}VAR064:=REF(L,1);VAR065:=SMA(ABS(L-VAR064),13,1)/SMA(MAX(L-VAR064,0),13,1)*4; VAR066:=EMA(VAR065,13);VAR067:=LLV(L,34);VAR068:=EMA(IF(L<=VAR067,VAR066,0),3);B022:=IF(VAR068>REF(VAR068,1),1,0);{NO.17}VAR069:=IF(HHV((MA(C,1)<HHV(MA(TYP,5),10)),5),0,1);VAR070:=IF(LLV((MA(C,1)<LLV(MA(TYP,5),10)),5),1,0);VAR071:=IF(LLV((MA(C,1)<LLV(MA(TYP,5),10)),10),1,0);S007:=IF(VAR069,1,0);B023:=IF(VAR070,1,0);B024:=IF(VAR071,1,0);{NO.18}VAR072:=SUM(MAX(MAX((H-L),ABS((H-LC))),ABS((LOW-LC))),5); VAR073:=H-REF(H,1);VAR074:=REF(L,1)-L;VAR075:=SUM(IF(((VAR073>0)AND(VAR073>VAR074)),VAR073,0),5); VAR076:=SUM(IF(((VAR074>0)AND(VAR074>VAR073)),VAR074,0),5); VAR077:=(VAR075*100)/VAR072;VAR078:=(VAR076*100)/VAR072;VAR079:=MA(((ABS((VAR078-VAR077))/(VAR078+VAR077))*100),3); VAR080:=IF(((VAR079>88)AND(VAR077<5.8)),80,0);B025:=IF(VAR080,1,0);{NO.19}VAR081:=INDEXV*INDEXC;VAR082:=EMA(VAR081,5)/EMA(INDEXV,5);VAR083:=(INDEXC-VAR082)/VAR082*100;VAR084:=VAR083<=-1.5 AND VAR083>-100;VAR085:=SUM(VAR084>0,11)/SUM(VAR084=0,11);VAR086:=VAR085<5 AND VAR085>=0.25;VAR087:=(TYP-MA(TYP,13))/(0.015*AVEDEV(TYP,13));VAR088:=EMA(VAR087,3);VAR089:=SUM(MAX(0,H-REF(TYP,1)),21)/SUM(MAX(0,REF(TYP,1)-L),21)*100 ;VAR090:=REF(MA(VAR089,3),2.2);VAR091:=CROSS(VAR090,VAR089) AND VAR089>150;VAR092:=IF(VAR086 AND CROSS(VAR087,VAR088),1,0),,COLORRED;VAR093:=IF(VAR091,1,0),,COLORGREEN;S008:=IF(VAR093,1,0);B026:=IF(VAR092,1,0);{NO.20}VAR094:="RSI.RSI1"(3,14,24);VAR095:="RSI.RSI2"(3,14,24);VAR096:=IF((VAR095-VAR094)/VAR094>5,50,0);B027:=IF(VAR096,1,0);{NO.21}VAR097:=REF(L,1);VAR098:=SMA(ABS(L-VAR097),3,1)/SMA(MAX(LOW-VAR097,0),3,1)*100; VAR099:=EMA(IF(C*1.2,VAR098*10,VAR098/10),3);VAR100:=LLV(L,38);VAR101:=HHV(VAR099,38);VAR102:=IF(LLV(L,90),1,0);VAR103:=EMA(IF(L<=VAR100,(VAR099+VAR101*2)/2,0),3)/618*VAR102; VAR104:=VAR103>5;VAR105:=REF((L+O+C+H)/4,1);VAR106:=SMA(ABS(L-VAR105),13,1)/SMA(MAX(L-VAR105,0),10,1);VAR107:=EMA(VAR106,10);VAR108:=LLV(L,33);VAR109:=EMA(IF(L<=VAR108,VAR107,0),3);B028:=IF(COUNT(VAR104,2)=2 AND VAR109>REF(VAR109,1),1,0); {NO.22}VAR110:=SMA(MAX(C-LC,0),5,1)/SMA(ABS(C-LC),5,1)*100;VAR111:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;VAR112:=SMA(VAR111,3,1);VAR113:=SMA(VAR112,3,1);VAR114:=(VAR113/2+40)*1.1;VAR115:=SMA(VAR114,3,1);VAR116:=IF(CROSS(VAR115,VAR110),1,0);VAR117:=IF(CROSS(80,VAR110),1,0);S009:=IF(VAR116,1,0);S010:=IF(VAR117,1,0);{ m}{NO.23}VAR118:=(2*C+H+L)/4;VAR119:=EMA((VAR118-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,6);VAR120:=EMA(0.667*REF(VAR119,1)+0.333*VAR119,4);VAR121:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA ((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);VAR122:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100;VAR123:=100*VOL/CAPITAL;VAR124:=IF(IF(COUNT(C<LC,8)/8>0.3 AND COUNT(VAR119>VAR120,3) AND REF(L,1)=LLV(L,120) AND C>O,1,0),52,0);VAR125:=IF(CROSS(VAR121,3),52,0);VAR126:=IF(CROSS(84,VAR122),(-1)*VAR122,0);VAR127:=IF(REF(0.34*VAR123,1)>4 AND REF(0.34*VAR123,1)<4.2,-60,0); B029:=IF(VAR124,1,0);B030:=IF(VAR125,1,0);S011:=IF(VAR126,1,0);S012:=IF(VAR127,1,0);{NO.24}VAR128:=SMA(MAX(C-LC,0),18,1)/SMA(ABS(C-LC),18,1)*100;VAR129:=SMA(MAX(C-LC,0),5,1)/SMA(ABS(C-LC),5,1)*100;S013:=IF(CROSS(68,VAR128),1,0);S014:=IF(CROSS(84,VAR129),1,0);{NO.25}VAR130:=IF(C/O>1.02 AND "BIAS.BIAS3"<-13,1,0);B031:=IF(VAR130,1,0);{NO.26}VAR131:=SUM(MAX(MAX(H-L,ABS(H-LC)),ABS(L-LC)),7);VAR132:=H-REF(H,1);VAR133:=REF(L,1)-L;VAR134:=SUM(IF(VAR132>0 AND VAR132>VAR133,VAR132,0),7);VAR135:=SUM(IF(VAR133>0 AND VAR133>VAR132,VAR133,0),7);VAR136:=VAR134*100/VAR131;VAR137:=VAR135*100/VAR131;VAR138:=MA(ABS(VAR137-VAR136)/(VAR137+VAR136)*100,3);B032:=IF(VAR138>90 AND VAR136=0,1,0);【买点】:B001+B002+B003+B004+B005+B006+B007+B008+B009+B010+B011 +B012+B013+B014+B015+B016+B017+B018+B019+B020+B021+B022+B023+B024+B025+B026+B027+B028+B029+B03 0+B031+B032,COLOR0000FF,NODRAW;【风险】:S001+S002+S003+S004+S005+S006+S007+S008+S009+S010+S011+ S012+S013+S014,COLOR00EE00,NODRAW;STICKLINE(【买点】,0,【买点】*5,0,0),COLORRED;STICKLINE(【风险】,0,【风险】*8,0,0),COLORGREEN;DRAWBAND(【买点】*5,RGB(211,0,0),【风险】*8,RGB(0,155,0)); ZZ:=VAR121>REF(VAR121,1) AND REF(VAR121,1)<12;买点累和:SUM(【买点】,21),COLOR880088,NODRAW;STICKLINE(FILTER(买点累和>50&&ZZ,5),88,0,1.5,1),COLOR0000FF; VV:=SMA(VAR121,5,4);RR:=SUM(CROSS(VAR121,VV),2)>0;FF:=VAR121<REF(VAR121,1) AND REF(VAR121,1)>80;MM:=REF(【买点】,1)>=6 AND 【买点】<REF(【买点】,1);SS:=REF(【风险】,1)>=4 AND 【风险】<REF(【风险】,1); STICKLINE(FILTER(ZZ&&MM,3),0,66,1,0),COLOR00FFFF; STICKLINE(FILTER(RR&&MM,3),0,36,1,0),COLORFF66FF; STICKLINE(SS&&FF,0,66,1,0),COLORFF8800;趋势:VAR121,COLOR00AAFF,LINETHICK1,NODRAW;DRAWBAND(趋势,RGB(255,155,0),VV,RGB(0,0,155));DRAWICON(【风险】>=3,90,2);DRAWICON(【买点】>=6,90,1);DRAWNUMBER(【风险】>=3,100,(【风险】)),COLOR00FF00; DRAWNUMBER(【买点】>=6,100,(【买点】)),COLOR00FFFF; DRAWTEXT(CURRBARSCOUNT=88,66,'====【买入不涨,逄高离场!】===='),COLOR000000;。
通达信指标公式源码超级组合顶底副图,抄底逃顶不是梦,适合做波段或者趋势交易。
VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);阶段卖: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00; 底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓,动力线),20),动力线+0.02,2);DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖,动力线),20),动力线+0.02,2);界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:=动力线,COLORA8A8A8;{希望之星买点}A3:=ABS(REF(C,2)-REF(O,2))/REF(O,2)<0.012;{前天星形}A2:=(REF(O,1)-REF(C,1))/REF(O,1)<0.008;{昨天星形}B1:=IF(REF(C,2)>REF(O,2),REF(O,2),REF(C,2));B2:=IF(REF(C,1)<REF(O,1),REF(O,1),REF(C,1));B3:=IF(C>O,O,C);B4:=B1>B2 AND B3>B2 AND REF(C,1)<MA(C,5);A1:=ABS(C-O)/O<0.012;{今天星形}星K:A3 AND A2 AND A1 AND B4;{准备上买点}VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区:=VARO7<10;TJ:=COUNT(建仓区,3);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);上升:=CROSS(VAR1,8);准备上:(建仓区OR REF(建仓区,0.5)) AND 上升;{出手买点}出手:FILTER((CROSS((EMA(CLOSE,2)-EMA(CLOSE,10)),EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2))AND EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)<0 AND CROSS(C,MA(C,20))),90);{强势买点}D1:="WR.WR1"<5;D2:=CROSS("KDJ.K","KDJ.D") AND "KDJ.K"<50;D3:=CROSS("MACD.DIF","MACD.DEA");D4:="I">-100 AND "I"<-90;D5:=CROSS("RSI.RSI1","RSI.RSI2")AND "RSI.RSI1"<50;S1:=20;M2:=40;L1:=60;AAA:=CLOSE>OPEN;BBB:=AAA&&CLOSE>MA(CLOSE,S1)&&CLOSE>MA(CLOSE,M2)&&CLOSE>MA(CLOSE,L1); CCC:=BBB&&OPEN<MA(CLOSE,M2)&&OPEN<MA(CLOSE,L1);XG1:=CCC&&(CLOSE-OPEN)>0.0618*CLOSE;AA1:=D1 AND D2;AA2:=D2 AND D3;AA3:=D1 AND D3;XG2:=AA1 OR AA2 OR AA3;强势:IF(XG1 AND XG2,1,0),COLORRED;{底部买点}WW:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);MM:=DMA(CLOSE,WW);{好}通道4:= (1-7/100)*MM;VAR4:=EXPMA(CLOSE,9);LDN:=EXPMA(VAR4*0.86,5);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));TTRR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))), ABS(REF(CLOSE,1)-LOW)),14);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);PDI:=DMP*100/TTRR;MDI:=DMM*100/TTRR;ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);买底: C<=通道4 AND C<=LDN AND CCI<-100AND ADX>=60 AND MDI >= PDI AND CLOSE>OPEN;。
通达信波段抄底逃顶公式源码K线图
通达信波段抄底逃顶公式源码K线图以下是通达信波段抄底逃顶公式源码K线图(无源码的请下载附件导入)网上号称抄底逃顶的指标有很多,至于是不是名副其实,那只有使用者自己知道!大家玩股票都知道一个基本规律,但凡出现一波反弹的票大概率都会来一个挖坑;但凡出现出现顶部的,大概率都是从30分钟出现顶背离,日线体现的就是之字形向下;反弹的力度虽然取决于量能,但是基本的k线观察就是中、大阴线的实体半分位和实顶是否有效突破所以,我综合以上理念做了一个综合指标,至于好不好用先上图大家观察。
我找取2个票来测试,一个活跃的,一个不活跃的来分别上图测试;指标公式没有加密,方便各位股友调整测试。
1:抄底信号的出现分为两种:(1)涨了一个'上下上’后出现的'抄底’信号。
这个要注意结合公式中的'快慢线’来做,这个位置不要做波段,只做反弹最安全;(2)下跌出现挖坑后的'抄底’信号。
这个位置可以做波段,一直做到出现'逃顶’信号出现为止的波段抄底;2:k线图中,中、大阴线出现后,会在阴线的'二分位’和'实顶’画出虚线,这个是方便使用者观察用的,并且出现'上穿’破掉了实体'二分位’,激进者可以加仓的点,保守者可以等破掉中、大阴线'实顶’后再加仓;3:公式中的未来函数是'PEAKBARS’,这个是之字形转折,我用在了'逃顶’指标中,所以不要怕抄错底,最多是跑早了;我的习惯是'逃顶’出现后看30分钟macd是否出现顶背离,或者是用'快慢’线看是否顶背离来确认是否止盈或是减仓;收阴线:=C<O;收阴天数:=BARSLASTCOUNT(收阴线);TZ1:=(C-REF(C,收阴天数))/REF(C,收阴天数)*100;TZ2:=COUNT(C<O,收阴天数)=收阴天数 AND TZ1<-8;抄底:REF(TZ2,1) AND C>O AND (C/REF(C,1)-1)*100>1,COLORYELLOW;VAR1:=PEAKBARS(3,15,1)<10;VAR2:=IF(VAR1=1,2,0);顶:IF(VAR2=2,2,0),COLORRED;RSV:= (C-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*5;FASTK:=SMA(RSV,3,1);快:SMA(FASTK,3,1),COLORLIGREEN,COLORYELLOW;慢:SMA(快,5,1),COLORLICYAN,COLORMAGENTA;SET_DAY:=20;{设置个人习惯观察的天数}DOWN_COUNT:=-4;{阴线下跌点数}ZF:=(C/REF(C,1)-1)*100;{当日涨幅}YX:=C<O AND ZF<=DOWN_COUNT;TS:=BARSLAST(YX);{全部收复阴线:IF(TS<=SET_DAY AND C>REF(O,TS) AND ZF>3,2,1);收复阴线一半:IF(TS<=SET_DAY AND C>REF((O+C)/2,TS) AND ZF>3,3,2),COLORRED;}DRAWTEXT(REF(C,1)/C>=1.04,(C+O)/2,'-----------------'),COLORYELLOW;DRAWTEXT(REF(C,1)/C>=1.04,O,'--------------------------'),COLORRED;DRAWTEXT(BARSLAST(C/REF(C,1)<0.95)<=20 && CROSS(C,REF((C+O)/2,BARSLAST(C/REF(C,1)<0.95))),L*0.955,'上穿'),COLORGREEN;实体腰线:=O+(C-O)*0.5;DRAWNUMBER(ZF<-4,实体腰线*0.95,实体腰线),COLORWHITE;。
通达信搏杀波段顶底副图指标抄底逃顶参考指标源码编程思路破译
通达信搏杀波段顶底副图指标抄底逃顶参考指标源码编程思路破译输出REFLINE:100输出QSX:((3 * (((收盘价-27日内最低价的最低值)/(27日内最高价的最高值-27日内最低价的最低值))*100)的5日[1日权重]移动平均) - (2 * (((收盘价-27日内最低价的最低值)/(27日内最高价的最高值-27日内最低价的最低值))*100)的5日[1日权重]移动平均的3日[1日权重]移动平均)),线宽为2,画黄色输出QSD:(((34日内最低价的最低值-收盘价)/(34日内最高价的最高值-34日内最低价的最低值))*100)的3日简单移动平均,COLOR4080FFVAR1赋值:1日前的((((最低价+开盘价)+收盘价)+最高价)/4)VAR2赋值:((最低价-VAR1)的绝对值的13日[1日权重]移动平均 / (最低价-VAR1)和0的较大值的10日[1日权重]移动平均) VAR3赋值:VAR2的10日指数移动平均VAR4赋值:33日内最低价的最低值当满足条件(QSX<=3.5)时,在50和0位置之间画柱状线,宽度为8,0不为0则画空心柱.,画红色当满足条件(QSX>93)时,在100和80位置之间画柱状线,宽度为8,0不为0则画空心柱.,画绿色输出SMLN:(((100*(收盘价-34日内最低价的最低值))/(34日内最高价的最高值-34日内最低价的最低值))的3日指数移动平均 / 4) 当满足条件((QSX>83)AND(SMLN>19.3))时,在75和60位置之间画柱状线,宽度为4,0不为0则画空心柱.,画青色当满足条件((QSX<4)AND(SMLN<2))时,在-75和-55位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLOR4080FF当满足条件((QSX<8)AND(SMLN<8))时,在-10和-25位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLOR8000FF当满足条件((QSX>90)AND(SMLN>23))时,在110和90位置之间画柱状线,宽度为3,0不为0则画空心柱.,画红色当满足条件((QSX>90.9)AND(SMLN>22))时,在-80和-60位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLORFF0080 当满足条件((QSD>-3)AND(QSX<3.5))时,在20和-20位置之间画柱状线,宽度为3,0不为0则画空心柱.,画黄色当满足条件((QSD>-3)AND(QSX<3.5))时,在0位置书写文字,画黄色。
抄底波段通达信指标公式源码
通达信专用指标公式,,只分享给有缘人,用心人,诚心学习股市技术的人好的指标免费分享,好好的行情,我也犯不着找骂。
指标公式只是你炒股理念,你不可能是万能的神,所以公式也不能是万能的。
即使任何人坚定看好的公式,或者是百分百成功率的公式,大家千万不要迷信,做事在人,成事在天,只求心安,唯此而已。
不含未来函数,信号不漂移,可靠性较好。
本次指标加密,不喜欢的可以绕过这里做个声明:本人编写指标纯属个人爱好,承诺永不作为商业用途,也希望得到指标的误标价售卖,如果是转发,还希望能尊重楼主的劳动成果标明出处。
DIF:EMA(CLOSE,9)-EMA(CLOSE,150),NODRAW;DEA:EMA(DIF,12),NODRAW;MACD:2*(DIF-DEA),COLORSTICK;DIK:4*DIF-3*DEA,COLORYELLOW;DED:=EMA(DIK,1),COLORGREEN;IF(C>DED,DED,DRAWNULL),COLORRED,LINETHICK3;IF(DED<=REF(DED,1),DED,DRAWNULL),COLORGREEN,LINETHICK3;启动点:=MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1)<REF(MACD ,2)AND REF(MACD ,2)<REF(MACD ,3)AND REF(MACD ,3)<REF(MACD ,4);STICKLINE(启动点,8,MACD,2,0),COLORMAGENTA;分界线:0,COLORFF00FF;DRAWICON(启动点,20,11);STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR40FF00; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR40FF00; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR40FF00; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR000055; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR000099; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR0000BB; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR40FF00; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR40FF00; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR40FF00;。
通达信指标公式源码 精确抄底逃顶波段
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);长趋势:3*Q3-2*Q4,colorwhite,LINETHICK3;趋势线:EMA(Q3, 3),colorred,LINETHICK3;DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80,REF(长趋势,3), '*顶'),colorred,LINETHICK5;★逢低买入: DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND 趋势线>1.3*长趋势,长趋势,'★<<-逢低买入'),LINETHICK1;★低买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND 长趋势>1.3*趋势线,趋势线,'★低买'),colorred,LINETHICK1;VAR3:=PEAKBARS(3,15,1)<10;VAR5:=IF(VAR3=1,2,0);顶:= IF(VAR5=2,2,0);顶A:IF(顶>REF(顶,1),50,0),colorgreen;DRAWTEXT(顶A=50,45,'快走'),COLOR00FF00;抄底一趋势:=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);见底:=10;短期底部:CROSS(趋势,见底);抄底二HLM1:=MA(HHV(H,500),13);HLM2:=MA(HHV(H,250),13);HLM3:=MA(HHV(H,89),13);HLM4:=MA(LLV(L,500),13);HLM5:=MA(LLV(L,250),13);HLM6:=MA(LLV(L,89),13);HLM7:=MA((HLM1*0.558+HLM2*0.558+HLM3*0.558+HLM4*0.96+HLM5*0.9 6+HLM6*0.96)/6,17);HLM8:=MA((HLM1*0.55+HLM2*0.55+HLM3*0.65+HLM4*1.25+HLM5*1.23+ HLM6*1.2)/6,17);HLM9:=MA((HLM1*0.68+HLM2*0.68+HLM3*0.68+HLM4*1.3+HLM5*1.3+HL M6*1.3)/6,17);HLM10:=MA((HLM7*3+HLM8*2+HLM9)/6*1.738,17);HLM11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;HLM12:=MA(IF(C*1.35<=HLM10,HLM11*10,HLM11/10),3);HLMH:=HHV(HLM12,30);关注:MA(IF(L<=LLV(L,42),(HLMH+HLM11*2)/3,0),3)/200;DRAWBAND(关注,RGB(255,255,50),0.00001,RGB(0,100,50));STICKLINE(CROSS(3.8,关注) AND 关注<REF(关注,1),0,3.8,1,0),COLORFF00FF;DRAWTEXT(CROSS(3.8,关注) AND 关注<REF(关注,1),3.8,'买底'),COLORFF00FF;STICKLINE(CROSS(10,关注) AND 关注<REF(关注,1),0,10,2,0),COLORyellow; DRAWTEXT(CROSS(10,关注) AND 关注<REF(关注,1),10,'金山'),COLORyellow; STICKLINE(CROSS(62,关注) AND 关注<REF(关注,1),0,18,4,0),COLORred; DRAWTEXT(CROSS(38,关注) AND 关注<REF(关注,1),18,'倾买'),COLORred; JS:=LAST(关注>0.618,3,1) AND (COUNT(CROSS(0.618,关注) OR CROSS(62,关注),21)>=2);stickline(FILTER(JS,13),15,0,4,0),COLORRED;DRAWTEXT(FILTER(JS,13),15,'←★★★牛'),COLORred;。
通达信波段抄底逃顶指标公式
通达信波段抄底逃顶指标公式摘要:1.通达信波段抄底逃顶指标公式概述2.通达信波段抄底逃顶指标公式的组成3.通达信波段抄底逃顶指标公式的应用4.通达信波段抄底逃顶指标公式的优缺点正文:一、通达信波段抄底逃顶指标公式概述通达信波段抄底逃顶指标公式是一种股票技术分析工具,旨在帮助投资者识别股票市场的底部和顶部,从而实现抄底和逃顶的操作。
该指标公式基于历史股价数据,运用一定的计算方法和技术指标,为投资者提供股票买卖的参考依据。
二、通达信波段抄底逃顶指标公式的组成通达信波段抄底逃顶指标公式主要由以下几个部分组成:1.操盘线(ma(close,9)):操盘线是一种趋势线,用于判断股价的运行趋势,其计算方法是收盘价的9 日简单移动平均值。
2.今小昨和今小前:这两个指标用于判断股价是否处于超买或超卖状态,其计算方法分别为:- 今小昨:如果今日收盘价小于昨日收盘价,并且今日涨幅小于昨日涨幅,则认为股价处于超卖状态,标记为1,否则为0。
- 今小前:如果今日收盘价小于前日收盘价,并且今日涨幅小于前日涨幅,则认为股价处于超卖状态,标记为1,否则为0。
3.波段抄底指标(var1):该指标用于判断股价是否处于波段底部,其计算方法为:(close-llv(low,60))/(hhv(high,60)-llv(low,60))*100。
4.波段逃顶指标(b):该指标用于判断股价是否处于波段顶部,其计算方法为:sma(var1,n,1)。
三、通达信波段抄底逃顶指标公式的应用通达信波段抄底逃顶指标公式的应用主要包括以下几个步骤:1.计算操盘线、今小昨、今小前、波段抄底指标和波段逃顶指标。
2.判断股价是否处于超买或超卖状态:如果今小昨和今小前同时为1,则认为股价处于超卖状态;如果今小昨和今小前同时为0,则认为股价处于超买状态。
3.判断股价是否处于波段底部:如果波段抄底指标大于一定值(如80),则认为股价处于波段底部。
4.判断股价是否处于波段顶部:如果波段逃顶指标小于一定值(如20),则认为股价处于波段顶部。
抄底逃顶技术指标源代码(适用通达信)
抄底逃顶技术指标源代码(适用通达信)抄底逃顶技术指标源代码(适用通达信)LC:=REF(CLOSE,1);RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10); HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);PDI:=((DMP * 100) / TR1);MDI:=((DMM * 100) / TR1);ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);AV:=(RSI5 + ADX);DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);底线:=0,COLORFF00FF;WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));NEWVOL:=(RSI5 - WR10);LOWV:=LLV(LOW,9);HIGHV:=HHV(HIGH,9);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);K:EMA(RSV,3);D:MA(K,3);KD:K-D,NODRAW;阶段底部:=(AV + NEWVOL);趋势线:=LLV(阶段底部,1),COLORWHITE,LINETHICK0;STICKLINE(CROSS(阶段底部,0) AND K>REF(K,1) ANDK>D ,10,5,0.8,1),LINETHICK6,COLORRED; STICKLINE((趋势线>230 ),95,90,0.3,1),LINETHICK6,COLORYELLOW;STICKLINE(K>D AND K>REF(K,1), K,D ,2.5,0),COLORRED,LINETHICK2;STICKLINE(D>K OR K<ref(k,1),k,d,2.5,0),colorwhite,linethick2;< bdsfid="88" p=""></ref(k,1),k,d,2.5,0),colorwhite,linethick2;<>STICKLINE((D80 ) ,K,D,2.5,0),COLORFF00FF,LINETHICK2;STICKLINE((K75) ,K,D,2.5,0),COLORYELLOW,LINETHICK2;逃顶线:90,COLORGREEN;中轴线:50,COLORRED;抄底线:10,COLORGREEN;DRAWICON(K>18 AND ((K>D AND K>REF(K,1)) OR (K>REF(K,1) AND D>REF(K,1)) OR (K>REF(D,1) AND D>REF(D,1)) OR ((K75))),12,1),COLORRED;DRAWICON(CROSS(阶段底部,0) AND K>REF(K,1) AND K>D AND (趋势线<230 OR (K75) ),12,1),COLORRED;DRAWICON(CROSS(D,K) AND D>65,88,2),COLORWHITE;DRAWICON(COUNT((K>18 AND ((K>D AND K>REF(K,1)) OR (K>REF(K,1) AND D>REF(K,1)) OR (K>REF(D,1) AND D>REF(D,1)) OR ((K75)))) OR (CROSS(阶段底部,0) AND K>REF(K,1) AND K>D AND (趋势线<230 OR (K75) )),1)=0,88,2),COLORWHITE;STICKLINE((趋势线>230 ) AND CROSS(D,K) AND D>6,100,90,0.3,1),LINETHICK6,COLORWHITE;DRAWTEXT(C=C AND CURRBARSCOUNT=18,30,'白柱体&下箭头,一票否决!'),COLORD8D8BF; DRAWTEXT(C=C AND CURRBARSCOUNT=18,20,'必须红柱体,,同时箭头向上更佳!'),COLORD8D8BF;。
通达信波段抄底逃顶指标公式
通达信波段抄底逃顶指标公式【原创实用版】目录1.通达信波段抄底逃顶指标公式概述2.通达信资金抄底波段指标公式a.公式构成b.应用法则3.通达信超级波段抄底指标公式a.公式构成b.应用法则4.总结正文一、通达信波段抄底逃顶指标公式概述通达信波段抄底逃顶指标公式是一种股票技术分析工具,旨在帮助投资者判断股票价格的底部和顶部,以便做出抄底和逃顶的决策。
该指标公式基于历史股价和成交量数据,运用一定的计算方法和算法,对未来股价走势进行预测。
二、通达信资金抄底波段指标公式1.公式构成通达信资金抄底波段指标公式主要由以下几个部分组成:- 操盘线(ma(close,9)):收盘价的 9 日简单移动平均线,用于判断股价的短期趋势。
- 今小昨(f:100(c-ref(c,1))/ref(c,1)):当日收盘价与前一日收盘价的比值,用于判断股价的当日走势。
- 今小前(if(c<ref(o,1),and,f<0,1,0)):当日收盘价与前一日开盘价的比值,用于判断股价的当日走势。
2.应用法则通达信资金抄底波段指标公式的应用法则如下:- 当操盘线由下向上穿越今小昨和今小前两条线时,说明股价已经触底,可以考虑抄底。
- 当操盘线由上向下穿越今小昨和今小前两条线时,说明股价已经到达顶部,可以考虑逃顶。
三、通达信超级波段抄底指标公式1.公式构成通达信超级波段抄底指标公式主要由以下几个部分组成:- x1:ref(close<ref(close,1),1),and,ref(close,1)<ref(close,2),and,clo se>ref(close,1)- x2:ref(ref(close,1)<ref(close,2),and,close>ref(close,1),1),and,clo se<ref(close,1)- x3: x1,or,x2- x4: ref(close,1)>ref(close,2),and,close<ref(close,1)2.应用法则通达信超级波段抄底指标公式的应用法则如下:- 当 x3 成立时,说明股价已经触底,可以考虑抄底。