【股票指标公式下载】-【通达信】稳健波段(极低、较低、稍低)
【股票指标公式下载】-【通达信】波段指标(风险系数、波浪系数、升跌)
CC:=EMA(AA,2);
DD:=EMA(BB,5);
VAR14:=MAX(EMA(AA,2)-EMA(BB,5),0)*1.2;
VAR15:=EMA(VAR14,5);
SS:=EMA(VAR15,2);
J:=MA(MACD,3);
J1:=MA(MACD,5);
STICKLINE(CROSS(MA(A,1),G),0.05,0,1,0),COLORWHITE,LINETHICK2;
VAR13:=IF(YEAR>=2018 AND MONTH>=11 AND DAY>=1,0,1);
AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
STICKLINE(VAR15<REF(VAR15,1) AND VAR13,0,VAR15,2,0),COLORGREEN;
STICKLINE(VAR15<REF(VAR15,1) AND VAR13,VAR15,SS,3.5,0),COLORFFCC33;
升跌:=EMA((C/MA((2*C+H+L)/4,8)-1)*100,3);0;
风险系数:=(VAR15-SS)/10*VAR13;
波浪系数:VAR15*VAR13,STICK,COLORFF00FF;
A10:=波浪系数,LINETHICK1 ;
B:MA(A10,3),COLORYELLOW,LINETHICK2;
B2:=MA(B,2)*2-B;
STICKLINE(B>B2,1.5*B,B2,3,0),COLOR0000FF;
通达信波段选股指标公式
通达信波段选股指标公式
通达信波段选股指标可以使用多种技术指标进行筛选。
1. 相对强弱指数(RSI):RSI指标可以度量股票的超买和超
卖情况,通常设置为14天。
选股时,可以筛选出RSI指标处
于较低水平(例如30以下)的股票。
2. 成交量变异率(VPT):VPT指标可以度量股票成交量的变化趋势,选股时可以筛选出VPT指标呈现上涨趋势的股票。
3. 移动平均线(MA):可以使用不同期数的移动平均线进行
筛选,一般选择5日、10日和20日的移动平均线作为参考。
选股时可以筛选出股票价格站上这些移动平均线的股票。
4. 金叉和死叉:金叉是指短期均线上穿长期均线的信号,通常认为是买入时机;死叉是指短期均线下穿长期均线的信号,通常认为是卖出时机。
可以筛选出金叉出现的股票作为买入信号。
5. 均线套牢:均线套牢是指股票价格在短期均线上方出现,从而形成支撑,可以筛选出价格在均线上方的股票。
这里提供的指标仅供参考,具体的选股策略需要根据个人的投资风格和市场状况进行调整和优化。
通达信波段抄底逃顶指标公式
通达信波段抄底逃顶指标公式通达信是一款常用的股票分析软件,波段抄底逃顶是一种常见的股票交易策略。
为了帮助投资者更好地利用通达信软件进行波段抄底逃顶交易,下面介绍一些常用的指标公式。
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线的周期。
以上是通达信波段抄底逃顶指标的一些常用公式。
投资者可以根据自己的交易策略和对市场走势的判断,结合这些指标进行交易决策。
然而,需要注意的是,仅仅凭借指标公式并不能保证获利,还需要结合其他因素进行分析,并制定科学合理的风险控制措施。
在使用通达信软件进行股票交易时,建议投资者注重学习和实践,逐步积累经验,提高自己的交易技巧。
通达信波段指标公式
通达信波段指标公式一、KDJ指标:1.K值=(2*移动平均线(n日内最高价+最低价之和)/3-最低价)/(最高价-最低价)×1002.D值=移动平均线(K值)3.J值=3*K值-2*D值二、MACD指标:1、DIF=短期EMA(12)-长期EMA(26)2、DEA=移动平均线(DIF)3、BAR=(DIF-DEA)*2三、RSI指标:1、RSI=100*(n日内上涨点数的总和/n日内上涨及下跌点数之和)2、RSI=100*(n日内上涨点数的总和/n日内上涨点数的总和+n日内下跌点数的总和)四、CCI指标:1、中心线=(n日内最高价+n日内最低价+收盘价之和)/32、偏差平均值=(n日内(最高价-中心线)+n日内(最低价-中心线)+n日内(收盘价-中心线))/n3、CCI=(收盘价-中心线)/偏差平均值/0.015五、OBV指标:1、OBV=前一日的OBV+(当日的收盘价-前一日的收盘价)*成交量2、OBV=前一日的OBV-(前一日的收盘价-当日的收盘价)*成交量六、多空对比指标:1、多空对比指标=(近n日内多头持仓量/近n日内多头持仓量+空头持仓量)×1002、多空对比指标=(今天多头持仓量/今天多头持仓量+昨天空头持仓量)×100七、能量潮指标:1、能量潮=(今日收盘价-过去20日最低价之差)/(过去20日最高价-过去20日最低价之差)×1002、能量潮=(今日最高价-过去20日最低价之差)/(过去20日最高价-过去20日最低价之差)×100八、随机指标:1、K值=50*(当日最高价-当日开盘价)/(当日最高价-当日最低价)+50*(当日最低价-当日开盘价)/(当日最高价-当日最低价)2、D值=移动平均线(K值)3、J值=3*K值-2*D值。
通达信指标公式源码 波段抄底
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;。
通达信波段抄底逃顶指标公式
通达信波段抄底逃顶指标公式通达信是国内流行的证券交易软件,提供了多种技术指标供投资者参考。
在波段抄底逃顶方面,通达信也提供了相关指标和公式。
一、波段抄底指标波段抄底指标主要用于判断股票的抄底时机,即股价已经跌到低点,有望上涨的时机。
1.KD指标:KD指标通过计算一段时间内的收盘价和最高价最低价之间的关系,判断股票市场的超买超卖情况。
该指标把市场的超买超卖区域设定在80和20两个关键值上。
KD指标的计算公式如下:K值=(当日收盘价-最低价)/(最高价-最低价)×100D值=K值的N日简单移动平均线通常,KD指标中,N值取9,即计算9日的K值和D值。
2.RSI指标:RSI指标是一种相对强弱指标,通过比较一段时间内的平均涨幅和平均跌幅的大小,判断股票的超买超卖情况。
RSI指标的计算公式如下:RSI=100-(100/(1+RS))RS=(n周期内上涨总幅度/n周期内下跌总幅度)通常情况下,RSI指标中n取14二、波段逃顶指标波段逃顶指标主要用于判断股票的高点,即股价已经到达高位,可能开始下跌的时机。
1.MACD指标:MACD指标是一种趋势跟踪指标,通过计算短期和长期移动平均线的差值,判断股票的买卖信号。
MACD指标的计算公式如下:DIF=短期移动平均线-长期移动平均线DEA=DIF的N日简单移动平均线MACD=(DIF-DEA)×2通常,MACD指标中,短期移动平均线取12,长期移动平均线取26,DEA的N值取92.多空指标:多空指标通过计算一个股票市场参与者的多仓和空仓的比例,判断市场的多空情况,从而判断股票的未来走势。
多空指标的计算公式如下:多空比=多仓持仓量/空仓持仓量×100通常情况下,多空指标中多仓持仓量和空仓持仓量取一段时间内的累计值。
总结:通达信提供了多种波段抄底逃顶指标,包括KD指标、RSI指标、MACD指标、多空指标等。
这些指标可以帮助投资者判断股票的买入卖出时机,但仍需结合其他技术分析工具和个股的具体情况来进行判断,不同的指标和参数可能适用于不同的市场和股票,投资者需要根据实际情况来选择合适的指标和参数。
通达信 波段底部组合选股公式(有图有源码无未来)
简单说明:已主图黄色买入为基本股票池,其中发出预警信号后可轻仓介入,待趋势走稳后在加仓。
源码如下:N1:=5;N2:=10;STICKLINE(C>0,0,10,15,0),COLOR781816;LLC:=REF(CLOSE,1);RSI15:SMA(MAX(CLOSE-LLC,0),N1,1)/SMA(ABS(CLOSE-LLC),N1,1)*10,COLORFF00FF,LINETHICK1;RSI10:SMA(MAX(CLOSE-LLC,0),N2,1)/SMA(ABS(CLOSE-LLC),N2,1)*10,COLOR00FFFF;VAR21:=C-REF(C,1);VAR22:=100*EMA(EMA(VAR21,6),6)/EMA(EMA(ABS(VAR21),6),6);MA5:=EMA(C,5);MA13:=EMA(C,13);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(CROSS (MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CRO SS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),0),COLOR00FF00;短牛:(LLV(VAR22,2)=LLV(VAR22,7) AND COUNT(VAR22<0,2)AND CROSS(VAR22,MA(VAR22,2))) ANDREF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);STICKLINE(UP,0,0.2,3,0),COLOR0000FF;STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;STICKLINE(短牛,0,8,2,0),COLOR000088;STICKLINE(短牛,0,8,1,0),COLOR0000CC;STICKLINE(短牛,0,8,0.22,0),COLOR0000FF;DRAWTEXT(短牛,8,'←短牛'),COLOR0000FF;中牛:REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82; STICKLINE(中牛,0,0.2,3,0),COLOR880088;STICKLINE(中牛,0,7,1.5,0),COLORAA00AA;STICKLINE(中牛,0,7,0.8,0),COLORCC00CC;STICKLINE(中牛,0,7,0.2,0),COLORFF00FF;DRAWTEXT(中牛,7,'←中牛'),COLORFF00FF;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);大牛:REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;STICKLINE(大牛,0,0.2,3,0),COLOR008888;STICKLINE(大牛,0,6,2,0),COLOR00AAAA;STICKLINE(大牛,0,6,1,0),COLOR00CCCC;STICKLINE(大牛,0,6,0.2,0),COLOR00FFFF;DRAWTEXT(大牛,6,'←大牛'),COLOR00FFFF;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);WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); NEWVOL:=(RSI5 - WR10);最佳买入:=(AV + NEWVOL);最佳买入选股:=IF(CROSS(最佳买入,0),1,0);VAR1:=SMA(最佳买入选股,3,1);VAR2:=SMA(VAR1,3,1),COLOR0000FF;VAR3:=SMA(VAR2,3,1),COLOR00FFFF;建仓买点:IF(CROSS(VAR2,VAR3) AND (VAR2<40),1,0* 10000),COLORWHITE,NODRAW; STICKLINE(建仓买点,0,2,2,0),COLORLINETHICK0;STICKLINE(建仓买点,0.2,4.0,2,0),COLORLINETHICK0;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 50);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);最佳买入时机: IF(CROSS(J,3),1,0),COLORYELLOW;STICKLINE(最佳买入时机,0,1,3,0),COLOR009999;STICKLINE(最佳买入时机,0,1,2,0),COLOR00DDDD;STICKLINE(最佳买入时机,0,1,1,0),COLOR00FFFF;机构建仓: IF(最佳买入<5,1,0),STICK,COLORFF00FF,LINETHICK1;机构建仓日:STICKLINE(机构建仓,0,-0.3,3,0),COLORFF00FF,LINETHICK6;HIGHN:=5;RSII:=SMA(MAX(C-LC,0),12,1)/SMA(ABS(C-LC),12,1)*10,COLORCYAN,LINETHICK1; LOWN:=HIGHN;AAA:=REF(RSII,HIGHN)=HHV(RSII,2*HIGHN+1);QY:=BACKSET(AAA,HIGHN+1);CCC:=FILTER(QY,HIGHN) AND RSII=HHV(RSII,HIGHN+1);DRAWICON(CCC,RSII*1.02,2);DDD:=BARSLAST(CCC);GDTS:=IF(CCC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(RSII,DDD),RSII);{顶部} 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);AA1:=REF(RSII,LOWN)=LLV(RSII,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND RSII=LLV(RSII,LOWN+1); DRAWICON(CC1,RSI*0.098,1);。
【股票指标公式下载】-【通达信】波波跟庄(BIAS画线、相对能量、低点、高点)
【通达信】波波跟庄(BIAS画线、相对能量、低点、高点)-指标公式源码DIFF := EMA(CLOSE,12) - EMA(CLOSE,26),LINETHICK0;DEA : EMA(DIFF,9);MACD : 2*(DIFF-DEA)*200,LINETHICK0;IF(DIFF>=REF(DIFF,1),DIFF,DRAWNULL),COLORRED;IF(DIFF<REF(DIFF,1),DIFF,DRAWNULL),COLORGREEN;STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,0,5,0),COLOR006EFF; STICKLINE(MACD<REF(MACD,1) AND MACD<0,MACD,0,5,0),COLOR009F00; STICKLINE(MACD>REF(MACD,1) AND MACD>0,MACD,0,2.3,0),COLOR0000DD; STICKLINE(MACD<REF(MACD,1) AND MACD>0,MACD,0,3,0),COLORFF9000; STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,0,1,0),COLOR00C0FF; STICKLINE(MACD<REF(MACD,1) AND MACD<0,MACD,0,1,0),COLOR00E700; {BIAS画线突破压力线买入}RSV:=(CLOSE-LLV(LOW,3))/(HHV(H,3)-LLV(LOW,3))*50-25;J:3*SMA(RSV,3,1)-2*SMA(SMA(RSV,3,1),3,1),COLORFF00FF,LINETHICK2; IF(J<=REF(J,1),J,DRAWNULL),COLORFFFFFF,LINETHICK2;OBV:=J;P:=5;A11:=REF(OBV,P)=HHV(OBV,2*P+1);B11:=FILTER(A11,P);C1:=BACKSET(B11,P+1);D1:=FILTER(C1,P);{高点}A22:=REF(OBV,P)=LLV(OBV,2*P+1);B22:=FILTER(A22,P);C2:=BACKSET(B22,P+1);D2:=FILTER(C2,P);{低点}上:REF(OBV,BARSLAST(D1)),COLORFF00FF,NODRAW;下:REF(OBV,BARSLAST(D2)),COLOR00FF00,NODRAW;向上:CROSS(OBV,上*1.01),NODRAW;相对能量:(OBV-下)/(上-下)*100,COLORYELLOW,NODRAW;R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);S11:=R11>REF(R11,1);DRAWLINE(D1,OBV,S11,OBV,1),COLORYELLOW;T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);U11:=T11>REF(T11,1);DRAWLINE(D2,OBV,U11,OBV,1),COLOR00FF00;STICKLINE(C>0,下,下,1,0),COLOR00FF00;STICKLINE(C>0,上,上,1,0),COLORFF00FF;DRAWTEXT(CROSS(OBV,上*1.01),上,'上'),COLORYELLOW;DRAWTEXT(CROSS(下*0.99,OBV),下,'下'),COLORYELLOW;DRAWICON(D1,OBV,1);DRAWICON(D2,OBV,2);【通达信】波波跟庄(BIAS画线、相对能量、低点、高点)-指标公式效果图(文档来源:若水财经社区)。
通达信波段指标公式
通达信波段指标公式A:通达信波段指标公式是一种用于分析股价的技术分析工具,用来预测市场的行情推测。
波段指标的背后思想是,当股价处在股价的某个特定范围时,它可以给出买卖的暗示或者提示。
这些指标的公式可以分类如下:1、BOLL指标:BOLL指标也称作布林线指标,由三条线组成,分别是中间线,上轨线和下轨线,而这三条线公式分别为:中轨线:MA(CLOSE,N);上轨线:MA(CLOSE,N)+K*STD(CLOSE,N);下轨线:MA(CLOSE,N)-K*STD(CLOSE,N)。
其中MA表示移动平均,CLOSE表示收盘价,N表示统计的周期数,K表示乘数,STD表示标准差。
2、MA指标:MA指标是最常用的技术指标之一,它表示股价走势的趋势,公式为:MA(CLOSE,N),其中N表示周期。
3、RSI指标:RSI指标(Relative Strength Index)是相对强弱指标,公式为:RSI=(CLOSE-LOW)/(HIGH-LOW)*100,其中CLOSE表示收盘价,HIGH表示最高价,LOW表示最低价。
4、MACD指标:MACD指标(Moving AverageConvergence/Divergence)移动平均收敛/发散指标,由DIF、DEA和BAR参数组成,公式分别如下:DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:EMA(DIF,MID);BAR:2*(DIF-DEA)。
其中EMA表示指数移动平均,CLOSE表示收盘价,SHORT、LONG表示短期和长期的周期数,MID表示MAR线的周期数。
5、KDJ指标:KDJ指标(Stochastic Oscillator)是随机指标,由K、D和J三个参数组成,公式如下:K:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;D:MA(K,M1);J:3*K-2*D。
其中CLOSE表示收盘价,HHV和LLV分别表示求高价和低价的N周期内的最高和最低,N表示周期,M1表示D线的周期数。
【股票指标公式下载】-【通达信】波段组合(波峰波谷、拉升力、做空周期、多头)
【通达信】波段组合(波峰波谷、拉升力、做空周期、多头)-指标公式源码拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE; 拉升力A:=SMA(拉升力,6.3,1);波峰波谷:SMA(拉升力A,3,1),COLORFF00FF;拉升力B:=3*拉升力A-2.1*波峰波谷;空方:=3*波峰波谷-1* 拉升力A;做空:IF(空方>拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;做空周期:HHV(做空,21),COLORBLUE,LINETHICK2;多头:IF(做空>=REF(做空,1) ,做空,DRAWNULL),COLORRED,LINETHICK3; DRAWICON(做空>=REF(做空,1) AND REF(做空,1)<REF(做空,2),做空,23);空头:IF(做空<REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3; {DRAWICON(做空<=REF(做空,1) AND REF(做空,1)>REF(做空,2),做空,19);} 短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;{红柱}STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR000088; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLOR0000AA; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLOR0000DD; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLOR0000FF; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,2,0),COLOR008800; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,1,0),COLOR00AA00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.8,0),COLOR00DD00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.3,0),COLOR00FF00; {蓝柱}STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR880088; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAA00AA; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDD00DD;STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFF00FF; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,2,0),COLOR009999; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,1.5,0),COLOR00BBBB; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.8,0),COLOR00DDDD; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.3,0),COLOR00FFFF; VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,5,0,4,0),COLOR770077;STICKLINE(A1,5,0,3,0),COLOR990099;STICKLINE(A1,5,0,2,0),COLORBB00BB;STICKLINE(A1,5,0,1,0),COLORDD00DD;STICKLINE(A1,5,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,5.2,'全仓'),COLORRED;CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);CYS:(CLOSE-CYC13)/CYC13*100;DRAWTEXT("ZXNH.ZXNH"=1 AND CYS<=-2,CYS,'B'),COLORRED;DRAWTEXT("ZXNH.ZXNH"=1 AND CYS>2,CYS,'S'),COLORGREEN;【通达信】波段组合(波峰波谷、拉升力、做空周期、多头)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】简单底部(底部、短期底部、猎鹰出击)
【通达信】简单底部(底部、短期底部、猎鹰出击)-指标公式源码底部:=-10;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); 短期底部:=LLV(OPEN,30);K:SMA(RSV,3,1);D:SMA(K,3,1);J:((3 * K) - (2 * D));DRAWICON(FILTER(CROSS(K,D)AND K<50,5),0.1,5);AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);IF((K > D),K,DRAWNULL),COLORFF00FF;IF((K < D),K,DRAWNULL),COLORFFFF00;IF((J > D),J,DRAWNULL),LINETHICK2,COLORRED;IF((J < D),J,DRAWNULL),LINETHICK2,COLORGREEN;20,POINTDOT,COLORGREEN;80,POINTDOT,COLORGREEN;VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);底部1:IF((VAR6 < 底部),20,0),COLORFFFF00;STICKLINE((CROSS(J,K) AND (底部1 >= 20)),100,0,2,0),COLORFFFFFF; DRAWICON((CROSS(J,K) AND (底部1 >= 20)),100,1);DRAWTEXT((CROSS(J,K) AND (底部1 >= 20)),98,'--全仓'); STICKLINE((VAR6 <= (0 - 15)),80,4.88,2,0);DRAWTEXT((VAR6 <= (0 - 15)),80,'买'),COLORFFFFFF;STICKLINE((VAR6 <= (0 - 15)),80,60,2,0),COLORRED;VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));VAR8:=(((CLOSE - VAR7) / VAR7) * 100);VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) < REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) > 2.5)); VARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),5,1) / SMA(ABS((CLOSE - VARD)),5,1)) * 100);VARF:=(((HIGH + LOW) + CLOSE) / 3);VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) /MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273)); VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR13:=(VAR11 AND VAR12);VAR14:=((((VARA >= (0 - 45)) AND (VARA <= (0 - 10))) AND (VARB <= (0 - 15))) AND (VARC <= (0 - 20)));VAR15:=(COUNT(VAR14,1) >= 1);VAR16:=(VAR13 AND VAR15);VAR17:=1;VAR18:=(CLOSE * VOL);VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1); VAR1A:=(1 * VAR19);VAR1B:=(VAR19 * 0.92);VAR1C:=EMA(CLOSE,34);VAR1D:=MA((VAR1C * 1.12),5);VAR1E:=MA((VAR1C * 0.82),5);VAR1F:=(CLOSE < VAR1E);VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17));VAR21:=HHV(HIGH,500);VAR22:=LLV(LOW,500);VAR23:=HHV(HIGH,250);VAR24:=LLV(LOW,250);VAR25:=HHV(HIGH,125);VAR26:=LLV(LOW,125);VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35);VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18);VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35); VAR2C:=VAR27;VAR2D:=VAR28;VAR2E:=VAR29;VAR2F:=VAR2A;VAR30:=VAR2B;VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));VAR32:=(INDEXA / 100000000);VAR33:=INDEXADV;VAR34:=INDEXDEC;VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);VAR37:=EMA(VAR35,10);VAR38:=EMA(VAR36,10);VAR39:=EMA(VAR37,10);VAR3A:=EMA(VAR38,20);VAR3B:=EMA(VAR37,3);VAR3C:=EMA(VAR39,6);VAR3D:=EMA(VAR3A,2);VAR3E:=(VAR3C - VAR3D);VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0));VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);VAR41:=VAR40;VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);VAR44:=(CLOSE - REF(MA(CLOSE,20),11));VAR45:=(((((((((((((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE < VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20 AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE < VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR1E) AND VAR31));VAR46:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR47:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR48:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR49:=REF(CLOSE,1);VAR4A:=((SMA(MAX((CLOSE - VAR49),0),5,1) / SMA(ABS((CLOSE - VAR49)),5,1)) * 100);VAR4B:=(((HIGH + LOW) + CLOSE) / 3);VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) /MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273)); VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR4F:=(VAR11 AND VAR12);VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));VAR51:=(COUNT(VAR50,1) >= 1);VAR52:=(VAR4F AND VAR51);VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);VAR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR57:=REF(CLOSE,1);VAR58:=((SMA(MAX((CLOSE - VAR57),0),5,1) / SMA(ABS((CLOSE - VAR57)),5,1)) * 100);VAR59:=(((HIGH + LOW) + CLOSE) / 3);VAR5A:=((VAR59 - MA(VAR59,14)) / (0.015 * AVEDEV(VAR59,14)));VAR5B:=((((((VAR54 >= (0 - 15.8)) AND (VAR54 <= (0 - 12.2))) AND (VAR55 <= (0 - 20.8))) AND (VAR56 <= (0 - 27.5))) AND (VAR58 <= 11.7)) AND (VAR5A <= (0 - 145)));VAR5C:=9.999999884842E+0.26;VAR5D:=(COST(10) * 0);VAR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) /MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));VAR61:=MA(CLOSE,3);VAR62:=(REF(CLOSE,2) * 0.865);VAR63:=(REF(CLOSE,13) * 0.772);VAR64:=MIN(VAR62,VAR63);VAR65:=((100 * VOL) / CAPITAL);VAR66:=MA(CLOSE,13);VAR67:=IF(((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8)),1,0);猎鹰出击:IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) <1.8))),120,0),LINETHICK2,COLORRED;VAR68:=0;MACD:(VAR6 * 5),COLORSTICK,LINETHICK2;STICKLINE((CROSS(K,D) AND (BB10 > 1)),70,0,2,0),COLORCC99FF; DRAWTEXT((CROSS(K,D) AND (BB10 > 1)),64,'--短买'),COLORGREEN; DRAWICON((CROSS(K,D) AND (BB10 > 1)),70,0);底部预警:STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),5,0),COLOR88B7EA; VARQ:=MA(CLOSE,152);VARW:=MA(CLOSE,194.16);VAE:=(VARW + (2 * STD(CLOSE,170)));VARR:=(VARQ + (2 * STD(CLOSE,170)));VART:=IF((DATE > 1080822),0,1);VA61:=EMA(HHV(HIGH,500),21);VAR71:=EMA(HHV(HIGH,250),21);VAR81:=EMA(HHV(HIGH,90),21);VAR91:=EMA(LLV(LOW,500),21);VARA1:=EMA(LLV(LOW,250),21);VARB1:=EMA(LLV(LOW,90),21);VARC1:=EMA((((((((VAR91 * 0.96) + (VARA1 * 0.96)) + (VARB1 * 0.96)) + (VA61 * 0.558)) + (VAR71 * 0.558)) + (VAR81 * 0.558)) / 6),21);VARD1:=EMA((((((((VAR91 * 1.25) + (VARA1 * 1.23)) + (VARB1 * 1.2)) + (VA61 * 0.55)) + (VAR71 * 0.55)) + (VAR81 * 0.65)) / 6),21);VARE1:=EMA((((((((VAR91 * 1.3) + (VARA1 * 1.3)) + (VARB1 * 1.3)) + (VA61 * 0.68)) + (VAR71 * 0.68)) + (VAR81 * 0.68)) / 6),21);VARF1:=EMA((((((VARC1 * 3) + (VARD1 * 2)) + VARE1) / 6) * 1.738),21); VAR101:=REF(LOW,1);VAR111:=((SMA(ABS((LOW - VAR101)),3,1) / SMA(MAX((LOW - VAR101),0),3,1)) * 100);VAR121:=EMA(IF(((CLOSE * 1.35) <= VARF1),(VAR111 * 10),(VAR111 / 10)),3); VAR131:=LLV(LOW,30);VAR141:=HHV(VAR121,30);VAR151:=IF(MA(CLOSE,58),1,0);VAR161:=((EMA(IF((LOW <= VAR131),((VAR121 + (VAR141 * 2)) / 2),0),3) / 618) * VAR151);VAR171:=(((IF((VAR161 > 50),50,VAR161) / 20) * 15) * VART);底部吸筹:STICKLINE((VAR171 > 0),0,VAR171,1,1),COLORFF00FF; STICKLINE(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,0,3,0),COLORRED;DRAWTEXT(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,'--抄底'),COLORRED;STICKLINE(CROSS(90,J),88,100,2,0),COLORGREEN;DRAWTEXT(CROSS(90,J),108,'。
【股票指标公式下载】-【通达信】波段K线解盘(中短波、早晨之星、黄昏之星、大阴烛)
【通达信】波段K线解盘(中短波、早晨之星、黄昏之星、大阴烛)-指标公式源码{中短波}短波:EMA(EMA(CLOSE,13),1),COLOR00DD00;中波:EMA(EMA(CLOSE,13),26),COLORRED;HZ2:EMA(EMA(CLOSE,13),8),COLORGREEN,LINETHICK2;HZ4:EMA(EMA(CLOSE,13),39),COLORFF00FF,LINETHICK2;STICKLINE(HZ2<HZ4,短波,HZ4,1,0),COLORBLUE ;STICKLINE(短波>HZ2,短波,HZ2,1,0),COLORGREEN;STICKLINE(中波>HZ4,中波,HZ4,1,0),COLORFF00FF;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);{红}STICKLINE(MACD>0,C,O,2.8,0),COLOR000080;STICKLINE(MACD>0,H,L,0,0),COLOR0000E5;{淡蓝}STICKLINE(MACD<0 AND MACD<REF(MACD,1),C,O,2.8,0),COLORFF9900; STICKLINE(MACD<0 AND MACD<REF(MACD,1),H,L,0,0),COLORFFFF00;{黄}STICKLINE(MACD<0 AND MACD>REF(MACD,1),C,O,2.8,0),COLOR0099FF; STICKLINE(MACD<0 AND MACD>REF(MACD,1),H,L,0,0),COLOR00FFFF;T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1) > REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));T3{长十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW ANDCLOSE!=HIGH),1,0));T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1)< REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 ANDREF(OPEN,1)> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW >3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));T9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));T10{吊颈}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.96AND CLOSE<REF(OPEN,1)AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.04AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 ANDCLOSE/OPEN<0.97AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 ANDCLOSE/OPEN>1.03AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04AND ABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1) -REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));T18{大阳烛}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW <CLOSE/OPEN+0.018),1,0));T19{三个白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1) >REF(OPEN,1) AND CLOSE>OPENAND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPENAND CLOSE/OPEN<0.98),1,0));T21{孕育线}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1)AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPENAND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) ANDOPEN<=REF(CLOSE,1)AND(MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2)) <=1/100),1,0));T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) ANDREF(CLOSE,1)<REF(OPEN,1)AND CLOSE>OPEN),1,0));T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN< EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND(V/MA(V,30)>1.2 AND C/REF(C,1)>1.049)),1,0));T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 ANDREF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 ANDCLOSE>REF(CLOSE,4)),1,0));T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 ANDREF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 ANDCLOSE<REF(CLOSE,4)),1,0));T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2)AND CLOSE<REF(CLOSE,1)),1,0));T28{光脚阴线}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));T29{光头阳线}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));T30{分离}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1) -REF(OPEN,1))<0),1,0));T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0)); T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));T34{大阴烛}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW <OPEN/CLOSE+0.018),1,0));T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)),1,0));T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O >REF(O,1) AND C<REF(O,1)),1,0));N:=0.04;TS1:=IF(T1=1,0+N,0);TS2:=IF(T2=1,TS1+N,TS1);TS3:=IF(T3=1,TS2+N,TS2);TS4:=IF(T4=1,TS3+N,TS3);TS5:=IF(T5=1,TS4+N,TS4);TS6:=IF(T6=1,TS5+N,TS5);TS7:=IF(T7=1,TS6+N,TS6);TS8:=IF(T8=1,TS7+N,TS7);TS9:=IF(T9=1,TS8+N,TS8);TS10:=IF(T10=1,TS9+N,TS9);TS11:=IF(T11=1,TS10+N,TS10);TS12:=IF(T12=1,TS11+N,TS11);TS13:=IF(T13=1,TS12+N,TS12);TS14:=IF(T14=1,TS13+N,TS13);TS15:=IF(T15=1,TS14+N,TS14);TS16:=IF(T16=1,TS15+N,TS15);TS17:=IF(T17=1,TS16+N,TS16);TS18:=IF(T18=1,TS17+N,TS17);TS19:=IF(T19=1,TS18+N,TS18);TS20:=IF(T20=1,TS19+N,TS19);TS21:=IF(T21=1,TS20+N,TS20);TS22:=IF(T22=1,TS21+N,TS21);TS23:=IF(T23=1,TS22+N,TS22);TS24:=IF(T24=1,TS23+N,TS23);TS25:=IF(T25=1,TS24+N,TS24);TS26:=IF(T26=1,TS25+N,TS25);TS27:=IF(T27=1,TS26+N,TS26);TS28:=IF(T28=1,TS27+N,TS27);TS29:=IF(T29=1,TS28+N,TS28);TS30:=IF(T30=1,TS29+N,TS29);TS31:=IF(T31=1,TS30+N,TS30);TS32:=IF(T32=1,TS31+N,TS31);TS33:=IF(T33=1,TS32+N,TS32);TS34:=IF(T34=1,TS33+N,TS33);TS35:=IF(T35=1,TS34+N,TS34);TS36:=IF(T36=1,TS35+N,TS35);AAA:=CONST(HHV(H,90));DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS1),'早晨之星,见底回升'); DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS2),'黄昏之星,见顶回落'); DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS3),'长十字,重要的警告信号,原趋势停顿或反转');DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS4),'垂死十字,下跌信号'); DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS5),'早晨十字星,上涨信号,见底回升');DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS6),'黄昏十字星,趋势停顿或反转,下跌或,见顶回落');DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS7),'射击之星,市场顶部就在眼前,可能见顶回落,可靠性低');DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS8),'倒转锤头构成一个看涨信号,可能见底回升');DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS9),'锤头,可能见底回升,如有量配合,信号强烈');DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS10),'吊颈,上升行情中见顶回落,顶部出现,见顶信号');DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS11),'穿头破脚,顶部出现,见顶回落信号');DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS12),'乌云盖顶,见顶回落信号');DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,AAA-(AAA*TS13),'曙光初现,将演化为V型反转或横盘。
【股票指标公式下载】-【通达信】超强组合(波段线、金手指)
【通达信】超强组合(波段线、金手指)-指标公式源码{波段线}VAR2:=(HIGH+LOW+CLOSE*2)/4;VAR3:=EMA(VAR2,21);VAR4:=STD(VAR2,21);VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;VAR6:=(EMA(VAR5,5)-25)*1.56;{AK: EMA(VAR6,2)*1.22;AD1: EMA(AK,2);AJ: 3*AK-2*AD1;DRAWTEXT(CROSS(AK,AD1),AK,'*'),COLORRED;DRAWTEXT(CROSS(AD1,AK),AK,'*'),COLORWHITE;}{金手指}RA:=LLV(LOW,35);RB:=HHV(HIGH,30);RC:=EMA((CLOSE-RA)/(RB-RA)*4,4)*19;近日均价:=MA(CLOSE,5),COLORYELLOW,LINETHICK2;DRAWICON(RC<6 AND100*(HHV(HIGH,19)-CLOSE)/(HHV(HIGH,19)-LLV(LOW,19))>97,100,11); LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;ZL:=EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5;SH:=EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5;BT1:=CROSS(RSI1,25);BT2:=CROSS(ZL,SH) AND ZL<-10;BT:=FILTER(COUNT(BT1 OR BT2,3)>=2,3);BIAS:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VARC:=LOW;VARD:=REF(LOW,1);VARE:=SMA(ABS(VARC-VARD),3,1)/SMA(MAX(VARC-VARD,0),3,1)*100; VARF:=MA(VARE/10,3);VAR10:=LLV(LOW,30);VAR11:=HHV(VARF,30);MA(IF(LOW<=VAR10,(VARF+VAR11*2)/5,0),3);VAR1B:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2B:=SMA(ABS(LOW-VAR1B),13,1)/SMA(MAX(LOW-VAR1B,0),10,1);VAR3B:=EMA(VAR2B,10);VAR4B:=LLV(LOW,33);VAR5B:=EMA(IF(LOW<=VAR4B,VAR3B,0),3);{主力进场:IF(VAR5B>REF(VAR5B,1),VAR5B,0),COLORRED;}STICKLINE(VAR5B>REF(VAR5B,1),0,VAR5B*2,2,0 ),COLORYELLOW;洗盘:IF(VAR5B<REF(VAR5B,1),VAR5B,0),COLORLIGREEN;VARR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VARR2:=SMA(ABS(LOW-VARR1),13,1)/SMA(MAX(LOW-VARR1,0),10,1); VARR3:=EMA(VARR2,10);VARR4:=LLV(LOW,33);VARR5:=EMA(IF(LOW<=VARR4,VARR3,0),3);STICKLINE(VARR5>REF(VARR5,1),0,VARR5,2,0 ),COLORGREEN; STICKLINE(VARR5<REF(VARR5,1),0,VARR5*2,2,0),COLORRED;找主力吸筹提款:VARR5>REF(VARR5,4) {AND C>REF(C,1)},COLORMAGENTA; VAR2C:=(HIGH+LOW+CLOSE*2)/4;VAR3C:=EMA(VAR2C,7);VAR4C:=STD(VAR2C,7);VAR5C:=(VAR2C-VAR3C)*100/VAR4;VAR6C:=EMA(VAR5C,3);{WW:(EMA(VAR6C,5)+100)/2-3,COLORFF00FF;MM:HHV(WW,3),COLORFF3333;}AAA:=AMOUNT/VOL/100;主力进场:IF(VAR5B>REF(VAR5B,1),VAR5B*1.5,0),COLORRED,LINETHICK2; {吸筹}VAR2Q:=REF(LOW,1);VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100; VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);VAR5Q:=LLV(LOW,30);VAR6Q:=HHV(VAR4Q,30);VAR7Q:=IF(MA(CLOSE,58),1,0);VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;VAR9Q:=IF(VAR8Q>100,100,VAR8Q);吸筹:STICKLINE(VAR9Q>-120,0,VAR9Q,6,1),COLORRED;VARY2:=REF(LOW,1);VARY3:=SMA(ABS(LOW-VARY2),3,1)/SMA(MAX(LOW-VARY2,0),3,1)*100;VARY4:=EMA(IF(CLOSE*1.3,VARY3*10,VARY3/10),3);VARY5:=LLV(LOW,30);VARY6:=HHV(VARY4,30);VARY7:=IF(MA(CLOSE,58),1,0);VARY8:=EMA(IF(LOW<=VARY5,(VARY4+VARY6*2)/2,0),3)/618*VARY7;VARY9:=IF(VARY8>100,100,VARY8);吸筹2:STICKLINE(VARY9>-120,0,VARY9/3,2,1),COLORMAGENTA;LCC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LCC,0),4.1,1)/SMA(ABS(CLOSE-LCC),4.1,1)*100,COLORY ELLOW,LINETHICK1;黄买:FILTER((REF(CLOSE,2)<CLOSE AND RSI<25),7),COLORYELLOW; STICKLINE(黄买,0,-40,10,1),COLORYELLOW;黄卖:=FILTER((REF(CLOSE,2)>CLOSE AND RSI>80),7);STICKLINE(黄卖,100,82,10,0),COLORBLUE;红买:FILTER(CROSS(RSI,11),7),COLORRED;STICKLINE(红买,0,-30,6,0),COLORRED;红卖:=FILTER(CROSS(89,RSI),7);STICKLINE(红卖,100,88,8,0),COLORCYAN;绿买:FILTER(CROSS(RSI,20),7),COLOR00FF00;STICKLINE(绿买,0,-20,6,0),COLORMAGENTA;绿卖:=FILTER(CROSS(80,RSI),7);STICKLINE(绿卖,100,94,6,0),COLOR00FF00;★遵守纪律★:100,COLORRED;★交易之魂★:100,COLORRED;ZLC:= EMA((WINNER(CLOSE) * 70),3);SHC:= EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.9))) * 80),3); 主力控盘: ((ZLC / (ZLC+ SHC)) * 100),COLOR00FFFF,LINETHICK2;上限: HHV(主力控盘,20),COLORGREEN,LINETHICK2;下限: LLV(主力控盘,20),COLORRED,LINETHICK2;中线:(上限 + 下限)/2,COLORYELLOW,POINTDOT,LINETHICK2;{60,LINETHICK4,POINTDOT,COLORYELLOW;}{10,LINETHICK4,POINTDOT,COLORFF00FF;}VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORWHITE;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'满仓'),COLORRED;DRAWTEXT(A1,36,'满仓'),COLORRED;AK: EMA(VAR6,2)*1.22;AD1: EMA(AK,2);AJ: 3*AK-2*AD1;DRAWTEXT(CROSS(AK,AD1),AK,'*'),COLORRED;DRAWTEXT(CROSS(AD1,AK),AK,'*'),COLORWHITE;WW:(EMA(VAR6C,5)+100)/2-3,COLORFF00FF;MM:HHV(WW,3),COLORFF3333;DRAWTEXT(BT1,0,'□'),COLORYELLOW;DRAWTEXT(BT,0,'■'),COLORYELLOW;DRAWICON(CROSS(85,RSI1),102,15);{饭跑跑}DRAWICON(CROSS(RSI1,25),10,26);{金钻}DRAWICON(CROSS(ZL,SH) AND ZL<-10,20,24);{蓝钻}DRAWICON(CROSS(BIAS,-12),-10,13);{BIAS买点};【通达信】超强组合(波段线、金手指)-指标公式效果图(文档来源:若水财经社区)。
通达信准确的波段指标公式
通达信准确的波段指标公式Z:=5;N:=10;HIGH1:=IF(HIGH<REF(H,1),(H+L)*0.5,HIGH);LOW2:=IF(LOW>=(REF(L,1)+REF(L,2))/2,CLOSE,LOW);LOW1:=IF(LOW>=REF(LOW,1),CLOSE,LOW);CLOSE1:=IF(CLOSE>=REF(CLOSE,1),CLOSE,(HIGH1+LOW2)* 0.5);VARA:=IF(CLOSE=CLOSE,(CLOSE+LOW+OPEN+HIGH+HIGH 1+LOW2)/6,AMOUNT/(100*VOL));VARU1:=LLV(LOW1,30);VARA1:=HHV(HIGH1,30);VARU2:=LLV(LOW1,21);VARA2:=HHV(HIGH1,21);CC:=MA((VARA-VARU2)/(VARA2-VARU2)*100,11);CC1:=EMA(CC,7),COLOR336699;B:=EMA((VARA-VARU1)/(VARA1-VARU1)*105,13);B1:=EMA(B,8);移动平均A:STICKLINE(B-B1>0 ,B*1.03,B1,3,1),COLOR3366AA;移动平均B:STICKLINE(B-B1<=0,B*1.03,B1,3,1),COLOR779966;VAR44:=ZIG(3,Z);RSV:=(VAR44-LLV(VAR44,N))/(HHV(VAR44,N)-LLV(VAR44,N))*100;月MD:="KDJ.D#MONTH",COLORFF0000,LINETHICK2;月MK:="KDJ.K#MONTH",COLOREECC00;周CD:="KDJ.D#WEEK",COLOR0000BB,LINETHICK2;周CK:="KDJ.K#WEEK",COLOR0099FF;月死KD:=MA((月MD,月MK),1);周死KD:=MA((周CD,周CK),1);周死RSI:="RSI.RSI2#WEEK"<="RSI.RSI3#WEEK";月金KD:=MA((月MK,月MD),1);周金KD:=MA((周CK,周CD),1);周金RSI:="RSI.RSI2#WEEK">="RSI.RSI3#WEEK"*0.998;周金R:="RSI.RSI1#WEEK">="RSI.RSI2#WEEK";AA:=STICKLINE(月死KD && 周死KD && 周死RSI,100,50,0,1),COLOR998888;BB:=STICKLINE(月金KD && 周金KD && 周金RSI,0,50,0,1),COLOR8800DD;K:SMA(RSV,3,1),COLORAA9999,LINETHICK2;D:SMA(K,3,1),COLOR00AA00,LINETHICK2;J:=3*K-2*D,COLORFFAABB,LINETHICK1;STICKLINE(周CK<周CD,D,K*1.01,4.2,1),COLORFFCC00;STICKLINE(周CK>=周CD,D,K*1.01,4.2,1),COLOR0000FF;RMA2:=MA(MA("RSI.RSI2#MONTH",2),2),COLORGRAY,LINET HICK1;RMA3:=MA(MA("RSI.RSI3#MONTH",2),2),COLOR000099,LIN ETHICK1;STICKLINE(RMA2>=RMA3,D*0.999,K*1.03,0.8,0),COLOR006 8FF;STICKLINE(RMA2<RMA3,D*0.999,K*1.03,0.8,0),COLORFF004 4;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(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*R EF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE F(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);卖转向:STICKLINE(PEAKBARS(3,15,1)=1,101,51,1.6,0),COLOR00FF44,LI NETHICK2;买转向:STICKLINE(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,0,49,1.6,0),COLORAA00FF;死叉RSI:=DRAWICON(CROSS(周CD,周CK) AND 周死RSI,99,2);转向:=DRAWICON((CROSS(周CK,周CD) AND 周金RSI),25,5);月金叉:=月MK>月MD;月周金叉:=IF(CROSS(周CK,周CD) AND 月金叉,31,0),LINETHICK1,COLOR3333FF;周金叉RSI:=STICKLINE(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),0,25, 3,0),COLOR0038FF;金叉RSI:=DRAWICON(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),18, 9);波段升:STICKLINE(CROSS(D1,K1) AND CC>=CC1,1,33,0.1,0),COLOR00FFFF;波段下:STICKLINE(CROSS(K1,D1) AND CC<CC1,98,68,0.1,0),COLORAAAAAA;DIFFR:=EMA(CLOSE,12)-EMA(VARA,26);DEAR:=EMA(DIFFR,9),COLORFFFFFF,LINETHICK1;MACDA:=EMA(CLOSE,12)-EMA(CLOSE,26);MACDD:=EMA(CLOSE,9)-EMA(CLOSE,12);MACDB:=EMA(CLOSE,9)-EMA(CLOSE1,12);MACDH:=EMA(CLOSE,12)-EMA(CLOSE1,26);MACDC:=EMA(CLOSE,8)-EMA(CLOSE1,15);MACDM:=EMA(CLOSE,7)-EMA(CLOSE,11);中线持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL);中线空仓:=IF(CLOSE<SAR(4,2,20),SAR(4,2,20),DRAWNULL);DXB:=COUNT(CROSS(MACDM,0) OR CROSS(MACDD,0) OR CROSS(MACDA,0),15)>=2;DXC:=COUNT(CROSS(MACDM,0) OR CROSS(MACDD,0) OR CROSS(MACDA,0) OR CROSS(MACDH,0),20)>=2;DXD:=COUNT(CROSS(MACDM,0) OR CROSS(MACDC,0) OR CROSS(MACDH,0) OR CROSS(MACDB,0),20)>=2;DXE:=COUNT(CROSS(MACDM,0) OR CROSS(MACDH,0) OR CROSS(MACDB,0) OR CROSS(MACDD,0) ORCROSS(MACDA,0),30)>=4;MD:=BACKSET(DEAR>=REF(DEAR,1),2);STICKLINE((MACDD>0 OR MACDH>0) AND 中线持仓 ,0,7,3,1),COLOR0000FF;STICKLINE((MACDC>=0 OR MACDH>=0) AND 中线持仓AND (DXB OR DXC OR DXD OR DXE) AND MD,1,12,2.2,0),COLORCC88FF;STICKLINE((MACDD<=0 OR MACDC<=0) AND 中线空仓,100,94,3.8,1),COLORAA7777;MCST:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL);DIF:=EMA(EMA(CLOSE,18)-EMA(CLOSE,34),11);MACD:=EMA(EMA(DIF,11),11),COLOR58FF58;DEF:=2*(DIF-MACD),COLORFFFF00,LINETHICK0;STICKLINE(C>=MCST,12,19,1,1),COLOR00EEFF;。
波段底部通达信指标公式源码
指标用法:红色波段做多,上了80代表高位,低于10线属于低位。
对应的兰色做空,当波段逐步高位降低到10线附近收窄变红的时候可以操作。
这个时候相应的底部信号会出现,确认后加大仓位。
通达信波段底部指标源码:VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;VAR4:=EMA(VAR3,5);VAR5:=3*VAR3-2*VAR4;AA:=CROSS(VAR5,VAR3) AND VAR3<2.1 AND C>O;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,POINTDOT;空:EMA(0.382*REF(VAR9,2)+0.618*VAR9,12),COLORGREEN;STICKLINE(VAR9>VARA,VAR9,VARA,6,0),COLORRED;STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLORFFCC66;STICKLINE(AA,0,30,15,1),COLORYELLOW;STICKLINE(AA,16,29,14,0),COLORRED;STICKLINE(AA,1,14,14,0),COLORRED;STICKLINE(AA,15,15,15,1),COLORYELLOW;STICKLINE(AA,30,50,6,0),COLORYELLOW;STICKLINE(AA,53,55,6,1),COLORRED;STICKLINE(AA,57,59,6,1),COLORRED;STICKLINE(AA,61,63,6,1),COLORRED;STICKLINE(AA,65,67,6,1),COLORRED;STICKLINE(AA,69,75,6,0),COLORFFCCCC;DRAWTEXT(AA,85,'底'),COLORYELLOW;波段底部指标选股:VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;VAR4:=EMA(VAR3,5);VAR5:=3*VAR3-2*VAR4;底:CROSS(VAR5,VAR3) AND VAR3<2.1 AND C>O;。
【股票指标公式下载】-【通达信】自动画线(高点压力、低点支撑)
【通达信】自动画线(高点压力、低点支撑)-指标公式源码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;【通达信】自动画线(高点压力、低点支撑)-指标公式效果图(文档来源:若水财经社区)。