【股票指标公式下载】-【通达信】顶底波段(攻击线、操盘线、生命线、决策线、短底)
通达信机构付费操盘-绝地反击主图指标通达信指标源码
通达信机构付费操盘-绝地反击主图指标通达信指标源码A等于交易金额除以成交量再除以100.VARA等于指数平滑移动平均线(EMA)计算得出的(((A减去A的13日指数平滑移动平均线)除以A的13日指数平滑移动平均线乘以0减100)乘以5日EMA)。
QQ等于VARA除以10再加上A的13日EMA的EMA。
行情线等于A的1日简单移动平均线。
重心等于(收盘价加上收盘价的1日位移乘以0.618再加上收盘价的1日位移乘以0.382再加上收盘价的3日位移乘以0.236再加上收盘价的4日位移乘以0.146)除以2.382.操盘线等于(斜率为22的收盘价乘以20再加上收盘价的55日EMA),颜色为黄色,线宽为4.黄金线等于如果重心大于等于操盘线,则为操盘线,否则为无效值,颜色为红色,线宽为2.空仓线等于如果重心小于操盘线,则为操盘线,否则为无效值,颜色为青色,线宽为2.在最后一个K线上画出文本“操盘线”,颜色为红色。
引线为收盘价的2日EMA,颜色为洋红色,线宽为1.探线为收盘价的5日简单移动平均线,线宽为1.变线为收盘价的5日EMA,颜色为黄色,线宽为2.金线为如果变线大于其1日前的值,则为变线,否则为无效值,颜色为红色,线宽为2.空线为如果变线小于其1日前的值,则为变线,否则为无效值,颜色为绿色,线宽为2.在最后一个K线上画出文本“钻石”,颜色为红色。
辅助线为收盘价的8日简单移动平均线,颜色为洋红色,线宽为1.上升线为如果辅助线大于其1日前的值,则为辅助线,否则为无效值,颜色为洋红色,线宽为2.下降线为如果辅助线小于其1日前的值,则为辅助线,否则为无效值,颜色为灰色,线宽为1.DA等于最高价的1日EMA加上最低价的1日EMA加上收盘价的1日EMA加上开盘价的1日EMA再除以4,线宽为2.DB等于最高价的25日最高值的1日位移的2日EMA,颜色为绿色,线宽为1.在交叉点处画出文本“险”,颜色为绿色,线宽为1.2>0.1.0);S:IF(卖1>0.-1.0);VAR14表示ZIG(3,22)向下穿越其一日前的值,且前一日的值大于等于再前一日的值,再且再前一日的值大于等于再再前一日的值。
通达信波段指标公式
通达信波段指标公式一、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指标、多空指标等。
这些指标可以帮助投资者判断股票的买入卖出时机,但仍需结合其他技术分析工具和个股的具体情况来进行判断,不同的指标和参数可能适用于不同的市场和股票,投资者需要根据实际情况来选择合适的指标和参数。
【股票指标公式下载】-【通达信】兄弟操盘(五日乖离率、动力线、牛熊线、生命线)
【通达信】兄弟操盘(五日乖离率、动力线、牛熊线、生命线)-指标公式源码动力线:MA(C,5),LINETHICK3,COLOR00CCFF;牛熊线:MA(C,13),CIRCLEDOT,COLORYELLOW;生命线:MA(C,34),CIRCLEDOT,COLORMAGENTA;MA05:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA05)/MA05*100;BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB05>30 AND MA05>REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORRED; BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB05<0 AND MA05<REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORGREEN; 三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) ANDMA30>REF(MA30,1);VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) ANDMA30<REF(MA30,1);BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05<REF(MA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10<REF(MA10,1),10);DRAWTEXT(加仓 ,LOW*0.98,'◆加二'),COLORYELLOW;JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) ANDMA10>REF(MA10,1) ;减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30; 买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.02,'◆风险'),COLORCYAN;DRAWTEXT(买入,LOW*0.96,'◆买二'),COLORYELLOW;DRAWTEXT(清仓 ,HIGH*1.00,'◆清仓'),COLORGREEN;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;{彩色K线}TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);TYX4:=MA((C+L+O+H)/4,13);TYX5:=EMA((C+L+O+H)/4,21);{空心红}STICKLINE(C<TYX5 AND C>O,H,L,0,0),COLORRED;STICKLINE(C<TYX5 AND C>O,C,O,3,1),COLORRED;{深绿}STICKLINE(C<TYX5 AND C<O,H,L,0,0),COLOR007700;STICKLINE(C<TYX5 AND C<O,C,O,3,0),COLOR005500;STICKLINE(C<TYX5 AND C<O,C,O,2,0),COLOR006600;STICKLINE(C<TYX5 AND C<O,C,O,1,0),COLOR007700;{蓝}STICKLINE(C>TYX5 AND C<O,H,L,0,0),COLORFFDD44;STICKLINE(C>TYX5 AND C<O,C,O,3,0 ),COLORFF7700;STICKLINE(C>TYX5 AND C<O,C,O,2,0 ),COLORFFAA22;STICKLINE(C>TYX5 AND C<O,C,O,1 ,0 ),COLORFFDD44;{黄}STICKLINE(C>TYX5 AND C>O,H,L,0,0 ),COLOR00EEFF;STICKLINE(C>TYX5 AND C>O,C,O,3,0 ),COLOR00AAFF;STICKLINE(C>TYX5 AND C>O,C,O,2,0 ),COLOR00CCFF;STICKLINE(C>TYX5 AND C>O,C,O,1,0 ),COLOR00EEFF;{粉红}STICKLINE(C>TYX4 AND C>O,H,L,0,0),COLORFF66AA;STICKLINE(C>TYX4 AND C>O,C,O,3,0 ),COLORFF11FF;STICKLINE(C>TYX4 AND C>O,C,O,2,0 ),COLORFF44FF;STICKLINE(C>TYX4 AND C>O,C,O,1,0 ),COLORFF66FF;{亮灰}STICKLINE(C>TYX4 AND C<O,H,L,0,0),COLOR999999;STICKLINE(C>TYX4 AND C<O,C,O,3,0),COLOR555555;STICKLINE(C>TYX4 AND C<O,C,O,2,0),COLOR777777;STICKLINE(C>TYX4 AND C<O,C,O,1,0),COLOR999999;{深红}STICKLINE(C>TYX3 AND C>O,H,L,0,0),COLOR0000DD;STICKLINE(C>TYX3 AND C>O,C,O,3,0),COLOR000099;STICKLINE(C>TYX3 AND C>O,C,O,2,0),COLOR0000BB;STICKLINE(C>TYX3 AND C>O,C,O,1,0),COLOR0000DD;{涨跌停K线}STICKLINE(HIGH=LOW AND CLOSE=OPEN AND(CLOSE/REF(CLOSE,1))>1.048,HIGH,LOW,3,0) ,COLORRED;STICKLINE(HIGH=LOW AND CLOSE=OPEN AND(REF(CLOSE,1)/CLOSE)>1.048,HIGH,LOW,3,0) ,COLOR00FF00;{突破}STICKLINE(REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 ANDC>O,C,O,1,0),COLOR00CCFF;{买卖主图}MA18:=MA(CLOSE,18);MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)); DRAWTEXT(FILTER(买=1,5),LOW,'★买一'),COLORRED;加1:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);DRAWTEXT(加1,LOW*0.99,'★加一'),COLORCC66FF;卖一:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX); DRAWTEXT(FILTER(卖一=1,1),HIGH*1.01,'★卖一'),COLORGREEN;{牛熊通吃}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;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,LOW*0.99,'老鼠仓'),COLOR4080FF;{预测明天}XXS:=MA(LOW,5)*(1-5/100);XXS1:=MA(HIGH,5)*(1+5/100);均线:=C,COLORGREEN;AAAA:=CLOSE/REF(CLOSE,3)<=0.85 AND CROSS(C,XXS) ANDC>REF(C,1),LINETHICK0 ;DRAWTEXT(AAAA,L*0.95,'下影买'),COLORRED;BBAA:=CROSS(XXS1,C);DRAWTEXT(CROSS(XXS1,C),H,'开盘逃'),COLORWHITE;DDDD:=CROSS(C,XXS1);DRAWTEXT(DDDD,H,'明日走'),COLORYELLOW;{兄弟指标}AAA:=MA(LOW,5)*(1-5/100);BBB:=(HHV(AAA,5)+LLV(AAA,5))/2;DRAWTEXT(CROSS(BBB,L) AND BBB>REF(BBB,1),L*0.98,'←兄弟回马枪'),COLORWHITE;{天河指标}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);DRAWTEXT(REF(CROSS(DEA,DIF),1) AND CROSS(DIF,DEA),L*0.97,'←天河回马抢'),COLORMAGENTA;{见好就收}VSR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VSR3:=SMA(VSR2,4,1);VSR4:=SMA(VSR3,2,1);DRAWTEXT(VSR4>82 AND VSR3>89,HHV(C,30)*1.02,'收'),COLORGREEN;【通达信】兄弟操盘(五日乖离率、动力线、牛熊线、生命线)-指标公式效果图(文档来源:若水财经社区)。
通达信技术指标公式
通达信技术指标公式通达信是国内知名的股票分析软件,其所提供的技术指标具有一定的实用价值。
以下是通达信常用的技术指标公式,包括趋势指标、震荡指标和成交量指标:一、趋势指标1、移动平均线(MA)MA=N日收盘价的总和/N2、指数平滑移动平均线(EMA)EMA(C,N)=2/(N+1)×[C-昨日EMA]+昨日EMA3、相对强弱指标(RSI)RSI=N日内上涨总幅度÷(N日内上涨总幅度+ N日内下跌总幅度)×100%4、平均趋向指标(ADX)DM=当日高价-昨日高价、昨日低价-当日低价真实波幅(TR)=当日最高价-当日最低价、当日最高价-昨日收盘价、昨日收盘价-当日最低价上升动向变动值(+DI)=14日上升动向值(+DM)÷14日真实波幅×100%下降动向变动值(-DI)=14日下降动向值(-DM)÷14日真实波幅×100%DX=(+DI- -DI)÷(+DI+ -DI)×100%ADX=DX的平均数二、震荡指标1、随机指标(KDJ)RSV=(收盘价-N日内最低价)÷(N日内最高价- N日内最低价)×100% K=2/3×昨日K值+1/3×当日RSVD=2/3×昨日D值+1/3×当日KJ=3×当日K-2×当日D2、布林带指标(BOLL)中轨线=MA(N)上轨线=中轨线+k×样本标准差下轨线=中轨线-k×样本标准差3、相对强弱指标(CCI)TP=(最高价+最低价+收盘价÷3)MA= N日内TP的平均值MD=绝对值(TP-MA)的N日简单移动平均CCI=(TP-MA)÷0.015×MD三、成交量指标1、成交量指标(VOL)MA= N日内成交量的总和÷N2、能量潮指标(OBV)当日OBV=前一日OBV+当日交易日的股票数×当日股票价格3、广义移动平均线(GMMA)短期移动平均线:N日移动平均线长期移动平均线:N+k)日移动平均线四、总结以上介绍的通达信技术指标公式并非全部,但这些是最常用的指标之一。
通达信精选指标精准的顶底波段抄底逃顶指标(源码分享)
通达信精选指标精准的顶底波段抄底逃顶指标(源码分享)通达信是一款国内常用的股票行情分析软件,提供了多种技术指标供股民使用。
在这其中,有一些指标被广大股民称为“精选指标”,因为它们可以帮助投资者准确判断股票的顶底、波段、抄底和逃顶时机。
下面我将介绍一些通达信的精选指标,并分享其源码。
```LC:=REF(CLOSE,1);//前一天的收盘价RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;//计算未成熟随机值K:=SMA(RSV,M1,1);//计算K值D:=SMA(K,M2,1);//计算D值J:=3*K-2*D;//计算J值//画线Plot(K, "K", colorBlue, styleLine);Plot(D, "D", colorRed, styleLine);Plot(J, "J", colorGreen, styleLine);``````MB:=MA(CLOSE,BOLL);//计算中轨UP:=MB+STD(CLOSE,BOLL);//计算上轨DN:=MB-STD(CLOSE,BOLL);//计算下轨Plot(MB, "BOLL", colorBlue, styleLine);Plot(UP, "UP", colorRed, styleLine);Plot(DN, "DN", colorGreen, styleLine);``````RSI1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),ROC);RSI2:=SMA(ABS(CLOSE-REF(CLOSE,1)),ROC);RSI:=RSI1/(RSI1+RSI2)*100;Plot(RSI, "RSI", colorRed, styleLine);``````CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));Plot(CCI, "CCI", colorRed, styleLine);```以上是通达信精选指标的源码分享。
通达信指标公式源码一个超准的顶底指标公式{高抛低吸}
一个超准的顶底指标公式{高抛低吸},绝对好用(副图、说明、有未来)对选股没影响。
说明:1看图出信时,按提示买卖。
非常简单。
{高抛低吸}强弱分界: 50, POINTDOT;VAR2:=IF(MONTH<12,1,1);VAR3:=(2*CLOSE+HIGH+LOW)/4;VAR4:=LLV(LOW,34);VAR5:=HHV(HIGH,34);主力:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2,LINETHICK2,COLORRED; 散户:EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK1,COLORFF9933; DRAWTEXT(CROSS(主力,散户) AND 主力<20,20,'低点'),LINETHICK2,COLORWHITE;DRAWICON(CROSS(主力,散户) AND 主力<20,21,1);DRAWTEXT(CROSS(主力,67) AND 散户<主力,58,'冲高'),LINETHICK2,COLOR9966FF;DRAWICON(CROSS(主力,67) AND 散户<主力,70,2);DRAWTEXT(CROSS(主力,76) AND 散户<主力,68,'小心被套'),LINETHICK2,COLOR669900;DRAWICON(CROSS(主力,76) AND 散户<主力,80,2);DRAWTEXT(CROSS(散户,主力) AND 散户>78,80,'卖出'),COLORWHITE; DRAWTEXT(CROSS(主力,散户) AND 主力<16,45,'买入'),COLORFFFF00;买入脉冲:IF(CROSS(主力,散户) AND 主力<16,40,5),LINETHICK2,COLORYELLOW;卖出脉冲:IF(CROSS(散户,主力) AND 散户>78,75,90),LINETHICK2,COLORGREEN;BB1:=WINNER(CLOSE)*100;BB2:=100-BB1;BB3:=ABS(BB1-BB2);。
不惧洗盘的波段指标三浪必吃通达信指标公式源码
不惧洗盘的波段指标三浪必吃通达信指标公式源码洗盘是指股票市场中大量股票价格急剧下跌或飙升,导致投资者心态恐慌或亢奋,从而产生集中性的价格波动。
针对这种情况,波段指标可以帮助投资者判断价格震荡的趋势和力度,从而把握住投资机会。
波段指标中的经典指标三浪必吃,它采用通达信编程语言进行计算。
以下是该指标的公式源码:【变量定义】变量: RSIClose(0); //存储RSI均线值变量: flag(0); //标志位,0标识无三浪必吃,1标识有三浪必吃【计算过程】if BarsSince(barssuracy < 0) < 4 then begin //判断是否满足连续三根下跌K线RSIClose = Average(Close, 10); //计算10日收盘价的均线if Close < RSIClose then //判断收盘价是否小于均线flag = 1; //满足下跌条件,设置标志位为1end;if flag = 1 then begin //存在三浪必吃情况下进行判断if Close > RSIClose then //当收盘价大于均线时flag = 0; //取消三浪必吃标志位end;【画图显示】Plot1(flag, "三浪必吃"); //以0和1的形式显示三浪必吃的状态以上是三浪必吃通达信指标的公式源码。
该指标的计算逻辑是通过判断连续三根下跌K线后,观察下跌趋势是否有回转迹象,即收盘价是否大于其10日均线值。
如果连续三根下跌K线后回转至收盘价大于均线,则认为存在三浪必吃的情况。
标志位flag用于标识三浪必吃的状态,当flag为1时表示存在三浪必吃,当flag为0时表示没有三浪必吃。
通过画图函数Plot1可以实现在图表上显示三浪必吃指标的状态。
投资者可以通过观察三浪必吃指标的状态来判断市场洗盘的趋势。
当三浪必吃标志出现时,可以作为参考信号,辅助投资者进行买入或卖出的决策。
【炒股必下载的公式】通达信顶底分型线段缠论主图指标公式
通达信顶底分型线段缠论主图指标公式局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0);距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0); 高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0); AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW;DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORBLUE;DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORBLUE;DRAWICON(极点保留=-1,L-0.03,1);DRAWICON(极点保留=1,H+0.03,2);。
通达信准确的波段指标公式
通达信准确的波段指标公式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;。
【股票指标公式下载】-【通达信】顶底主图(攻击线、操盘线、生命线)
【通达信】顶底主图(攻击线、操盘线、生命线)-指标公式源码攻击线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);X7:=CROSS(79,X6);X8:=FILTER(X7,4);X9:=MA(CLOSE,115);VAR001:=EMA(CLOSE,8);飞龙顶底线:=EMA(VAR001,20);VAR002:=CROSS(VAR001,飞龙顶底线);VAR003:=(VAR001 < MA(CLOSE,20));VAR004:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100); VAR005:=SMA(VAR004,5,1);VAR006:=SMA(VAR005,8,1);VAR007:=(CROSS(VAR005,VAR006) AND (VAR006 < 5));VAR008:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR007); VAR009:=IF((CLOSE > 1000),VAR007,VAR008);VAR00F:=CROSS(X1,X2);MA115:=VAR00F;低买:=(VAR002 AND VAR003);黑马起步:=VAR009;DRAWTEXT(X8,(HIGH * 1.03),'出货'),COLOR9000F5;DRAWTEXT((黑马起步 > 0),(HIGH * 1.04),'逃命'),COLORFF0000;逃遁:=(SMA(HIGH,21,2) * 1.05);阻挡:=(SMA(LOW,21,2) * 0.94);DRAWTEXT(FILTER(((((((((CLOSE / OPEN) > 1.03) AND ((超跌位2 - REF(超跌位2,1)) > 0)) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (HIGH < 压力1)) AND (CLOSE < 压力1)) AND ((压力2 - REF(压力2,1)) > 0)) AND (CLOSE < MAN)),3),LOW,'出击'),COLOR646E69;DRAWTEXT((((((低买 > 0) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 压力位)) AND (HIGH < X9)) AND ((X2 - REF(X2,1)) > 0)),LOW,'黑马'),COLOR00FF00; DRAWTEXT((((CROSS(VAR2C,UPPER) AND (HIGH < 压力1)) AND ((XY -REF(XY,1)) > 0)) AND (HIGH < 支撑)),LOW,'买'),COLORFFFFFF; DRAWTEXT(FILTER((((((MA115 AND (CLOSE < 压力位)) AND ((人 - REF(人,1)) >0)) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 上1)) AND ((CLOSE / OPEN) >1.03)),5),LOW,'●买'),COLOR93EE7D;DRAWTEXT(((((LOW <= 上) AND (HIGH >= 短期底部)) AND (CLOSE >= 长期底部)) AND ((CLOSE / OPEN) > 1.03)),(LOW - 0.08),'★抄底'),COLOR0000FF;DRAWTEXT(FILTER((((((LOW <= 阻挡线) AND ((MA20 - REF(MA20,1)) > 0)) AND (OPEN <= 上1)) AND (HIGH > 上1)) AND (CLOSE > 阻挡线)),5),LOW,'涨10%'),COLORFFFFFF;DRAWTEXT(FILTER((((((B8 <= 1) AND (LOW <= 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= 中期大底)) AND (CLOSE >= 长期底部)),3),(LOW - 0.08),'短抄E'),COLORA100FF;DRAWTEXT(FILTER((((CROSS(趋势,趋) AND (HIGH < M80)) AND (HIGH < 压力1)) AND LLV(LOW,0)),10),LOW,'果断买'),COLOR668800;DRAWTEXT(FILTER(((CROSS(中线,人) AND (LOW <= 人)) AND (CLOSE >= 人)),4),(LOW - 0.06),'买'),COLOR00FF00;DRAWTEXT(FILTER((((((((MA20 - REF(MA20,1)) > 0) AND (HIGH < 支撑)) AND ((AA10 - REF(AA10,1)) > 0)) AND (HIGH < 压力1)) AND (VOL >= REF(VOL,1))) AND CROSS(CLOSE,MA20)),57),LOW,'突破生命线'),COLOR0000FF;DRAWTEXT(FILTER(((((LOW <= MA80) AND (CLOSE > MA80)) AND (CLOSE > OPEN)) AND (短期底部2 <= MA80)),8),LOW,'底'),COLORFFFF00;DRAWTEXT(((CROSS(MA20,压力位) AND (LOW <= MA20)) AND ((MA20 -REF(MA20,1)) > 0.02)),(LOW - 0.03),'●绝佳买点'),COLORAFA0AF; DRAWTEXT((((((((CROSS(CLOSE,MA20) AND (HIGH < 压力位)) AND (OPEN < MA20)) AND (HIGH < 支撑)) AND ((MAN - REF(MAN,1)) > 0)) AND ((X1 - REF(X1,1)) > 0)) AND (D < 63)) AND ((MA20 - REF(MA20,1)) > 0)),(LOW - 0.05),'●大牛浮水'),COLOR73777F;DRAWTEXT(CROSS(中期大底,短期底部),(LOW - 0.02),'短线买');短趋势线:=MA(CLOSE,13);中趋势线1:=MA(CLOSE,33),LINETHICK1;中趋势线:=MA(CLOSE,55);涨:=IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),COLORRED,LINETHICK3;平:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL),COLOR00FFFF,LINETHICK3;跌:=IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLORGREEN,LINETHICK3;STICKLINE(CROSS(MA(CLOSE,13),C) AND MA(CLOSE,13)>REF(MA(CLOSE,13) ,1) AND V<REF(V,1) ANDMA(CLOSE,13)>MA(CLOSE,55) ,L,L*0.98,3,0),COLORYELLOW;DRAWTEXT(CROSS(MA(CLOSE,13),C) AND INDEXC>MA(INDEXC,13) ANDMA(CLOSE,13)>REF(MA(CLOSE,13) ,1) AND V<REF(V,1) ANDMA(CLOSE,13)>MA(CLOSE,55) ,L*0.95,'买'),COLORRED,LINETHICK2;VAR011:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA( CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;VAR012:=HHV(VAR011>20,10);DRAWTEXT(VAR011<-20 AND INDEXC<MA(INDEXC,13) AND FILTER(VAR011>REF(VAR011,1),5),L*0.93,'抄底'),COLORYELLOW,LINETHICK2;VAR013:=IF(MA(CLOSE,13)>REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL); DRAWTEXT((IF(CLOSE>MA(CLOSE,13) ANDOPEN<CLOSE,-0.1,0))AND((C-REF(C,1))/(REF(C,1))>0.061)AND(MA(CLOSE,13)=VAR013) AND (MA(CLOSE,1),MA(CLOSE,13)) AND(VOL>REF(HHV(VOL,3),1)*2),L*0.98,'主力介入'),COLORMAGENTA;X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);【通达信】顶底主图(攻击线、操盘线、生命线)-指标公式效果图(文档来源:若水财经社区)。
股票指标公式——波段高点
通达信股票指标公式——◆波段高点◆
俗话说:“会卖的是师傅”,本指标能够在日线、周线、月线及各分钟周期上准确提示股票波段高点,规避风险,落袋为安。
指标公式及参数设置见下页,复制粘贴即可。
◆波段高点◆指标公式如下:
VOLUME:=MA(VOL,14)/VOL;
MID:=100*(HIGH+LOW-REF(HIGH+LOW,1))/(HIGH+LOW);
EMV:=MA(MID*VOLUME*(HIGH-LOW)/MA(HIGH-LOW,14),14);
MAEMV:=MA(EMV,9);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
J:="KDJ.J"(9,3,3);
WR1:="WR.WR1"(10,6);
WR2:="WR.WR2"(10,6);
BIAS3:="BIAS. BIAS3"(6,12,24) ;
CYR:="CYR.CYR"(13,5);
TYP:=(HIGH+LOW+CLOSE)/3;
AS:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))>CCIN AND WR1<WR2 AND HIGH>=HHV(HIGH,N) AND BIAS3>BIASN AND CYR>CYRN;
STICKLINE(AS,0,0.5,2,0),COLORGREEN;
波段高点:AS,COLORBLUE,LINETHICK3;
日线参数设置建议如下:(其余周期可参照调整设置)。
波段指标——做波段的利器通达信指标公式源码
波段指标——做波段的利器通达信指标公式源码波段指标是一种用于短期交易的技术指标,它可以帮助投资者找到股票的买入和卖出时机。
通达信是一个广泛使用的股票分析软件,它提供了丰富的指标计算工具。
下面是波段指标通达信源码的详细说明,共计超过1200字。
以下是通达信中波段指标的计算公式源码的一个示例:```c//定义波段指标的公式参数input n1 = 20;input n2 = 10;input n3 = 6;//计算波段指标的公式var f1 = CLOSE > REF(HHV(HIGH, n1), 1);var f2 = CLOSE < REF(LLV(LOW, n1), 1);var f3 = COUNT(f1, n2) > 0 AND COUNT(f2, n2) > 0;var f4 = SUM(f3, n3) == n3;//输出波段指标的结果PlotWaveBand = f4;```在这个示例中,n1、n2和n3是用户可以自定义的参数,它们分别表示波段指标中的周期长度。
用户可以根据自己的需求设置这些参数的数值。
该公式计算了一个布尔变量f1,它表示当前价格是否大于前n1个周期内的最高价;同时计算了一个布尔变量f2,它表示当前价格是否小于前n1个周期内的最低价。
然后,它根据f1和f2计算了f3,表示在前n2个周期内,有至少一个周期的最高价高于前n1个周期内的最高价,同时有至少一个周期的最低价低于前n1个周期内的最低价。
最后,它计算了一个布尔变量f4,它表示在前n3个周期中,f3为真的周期的数量是否等于n3、如果f4为真,则将PlotWaveBand设置为1;否则将PlotWaveBand设置为0。
通过以上的源码,用户可以自定义波段指标的计算公式,并将其添加到通达信的分析工具中进行使用。
使用波段指标可以帮助投资者快速找到股票的买入和卖出时机,从而提高交易的效果。
通达信机构操盘买卖提示指标公式
通达信机构操盘买卖提示指标公式JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB ORVARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:REF(离场,1)COLOR0000FF,NODRAW;青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORFF0000,NODRAW;短买:VAR19,COLOR33AACC,NODRAW;品红离场:VAR1A,COLORFF99FF,NODRAW;急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW;辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+1 6*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7) +12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL, 11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YT SL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YT SL,20))/211,COLOR0000FF;牵牛线:MA(CLOSE,26),COLORFF00FF;等待:=IF(MA3>辰星线,辰星线,MA3);上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF;IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00;IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF;IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933;STICKLINE(ISLASTBAR AND (红色持股 OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望 OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;STICKLINE(C>=O,L,H,0,0),COLOR0000CC;STICKLINE(C<O,L,H,0,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;CO:=(C-O);STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888;STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(短买,O,O+CO/3,2.8,0),COLOR335555; STICKLINE(短买,O,O+CO/3,2,0),COLOR338888; STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA; STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC; STICKLINE(短买,O,O+CO/3,0,0),COLOR33EEEE; DRAWTEXT(短买,REF(CLOSE,1),'←买'),COLOR33FFCC; STICKLINE(VAR1A>0,O,O+CO/3,2.8,0),COLOR550055; STICKLINE(VAR1A>0,O,O+CO/3,2,0),COLOR880088; STICKLINE(VAR1A>0,O,O+CO/3,1.5,0),COLORAA00AA; STICKLINE(VAR1A>0,O,O+CO/3,1,0),COLORCC00CC; STICKLINE(VAR1A>0,O,O+CO/3,0.5,0),COLOREE00EE; DRAWTEXT(VAR1A>0,REF(C,1)+0.1,'←走'),COLORFF99FF;。
【通达信】趋势顶底(短期线、中期线、长期线、底部区域)
【通达信】趋势顶底(短期线、中期线、长期线、底部区域)【通达信】趋势顶底(短期线、中期线、长期线、底部区域)-指标公式源码A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;短期线:B+100,COLORBB8800,LINETHICK2;中期线:D+100,COLORYELLOW,LINETHICK2;长期线:A+100,COLOR9900FF,LINETHICK2;见底:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线);顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5AND 短期线<中期线 AND 短期线<长期线+4;顶部:=FILTER(顶部区域,4);底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ;STICKLINE( {见顶OR} 顶部区域,99,103,20,1 ),COLORRED,LINETHICK2;STICKLINE( 底部区域,-4,0,22,0 ),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线 OR REF( 短期线,1)<1 );STICKLINE( 低位金叉,0,5,11,0 ),COLORRED;80,COLOR996699,POINTDOT;20,COLORGREEN,POINTDOT;10,COLORCC6633,POINTDOT,LINETHICK4;90,COLOR9966FF,POINTDOT,LINETHICK4;50,COLORRED,CIRCLEDOT;。
通达信波段抄底逃顶指标公式
通达信波段抄底逃顶指标公式摘要: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),则认为股价处于波段顶部。
通达信波段顶底区域指标公式
通达信波段顶底区域指标公式HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);DRAWBAND(HDY,RGB(255,000,139),10,RGB(255,255,71));STICKLINE(C>0,90,10,10,0),COLOR000000;RSV1:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;K1:=SMA(RSV1,13,1);D1:=SMA(K1,13,1);STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EM A(D1,3),1),8,0),COLORFF5D00;STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EM A(D1,3),1),7,0),COLORFF5D10;STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EM A(D1,3),1),6,0),COLORFF7710;STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EM A(D1,3),1),5,0),COLORFF8810;STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EM A(D1,3),1),4,0),COLORFF9910;VA1:=HHV(HIGH,9)-LLV(LOW,9);VA2:=HHV(HIGH,9)-CLOSE;VA3:=CLOSE-LLV(LOW,9);VA4:=VA2/VA1*100-70;VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VA6:=(CLOSE+HIGH+LOW)/3;VA7:=SMA(VA3/VA1*100,3,1);VA8:=LLV(LOW,34);VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);VARA:=IF(VA9>100,VA9-100,0);VARB:=HHV(HIGH,34);VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;VARF:=MA(VARE,3);VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=((VAR2)/(VAR1))*(100)-70;VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF((VAR9>100),VAR9-100,0);VAR11:=HHV(HIGH,34);B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);DRAWKLINE(EMA(B1,5),EMA(B1,5),B1+1,B1);V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5)>MA(V,40)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;VV:=V1 AND V2 AND V3 AND V4;A1:=EMA(CLOSE,8);A2:=EMA(A1,20);A3:=CROSS(A1,A2);A4:=A1<EMA(CLOSE,120);A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1),CIRCLEDOT ,COLORFF9900 ;安全:=20;VAR18:=HHV(HIGH,30);VAR19:=LLV(LOW,30);VAR44:=REF(CLOSE,1);VAR45:=SMA(MAX(CLOSE-VAR44,0),6,1)/SMA(ABS(CLOSE-VAR44),6,1)*100;。
通达信分时顶底之王指标公式
通达信分时顶底之王指标公式
该指标的计算公式如下:
顶点概率=(向上运行最大长度/总长度)*100%
底点概率=(向下运行最大长度/总长度)*100%
其中,向上运行最大长度是指自前一个顶点到当前顶点的最大上涨幅度,向下运行最大长度是指自前一个底点到当前底点的最大下跌幅度。
总长度是指自前一个顶点到当前底点的总距离。
该指标的计算步骤如下:
1.首先,确定一个统计周期,例如10个交易日。
2.统计周期内,记录每个交易日的最高价和最低价。
3.根据最高价和最低价的走势,确定每个交易日的顶点和底点。
4.计算每个顶点和底点的向上运行最大长度和向下运行最大长度。
5.计算顶点概率和底点概率。
该指标的应用方法如下:
1.当顶点概率大于底点概率时,说明市场处于上升趋势,可以考虑买入或持有股票。
2.当底点概率大于顶点概率时,说明市场处于下降趋势,可以考虑卖出或持币观望。
3.当顶点概率和底点概率接近时,说明市场处于震荡状态,可以考虑观望或进行短线交易。
4.注意,该指标只是一种辅助工具,不能单独作为买卖决策的依据,需要结合其他技术指标和基本面分析进行综合判断。
通达信分时顶底之王指标公式(一)是一种简单而有效的短线交易指标,可以帮助投资者把握市场的走势和反转点。
但是,需要注意的是,市场是随时变化的,指标只能提供一种参考和辅助工具,具体操作还需要根据个人的投资经验和风险承受能力做出判断。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】顶底波段(攻击线、操盘线、生命线、决策线、短底)-指标公式源码攻击线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);X7:=CROSS(79,X6);X8:=FILTER(X7,4);X9:=MA(CLOSE,115);VAR001:=EMA(CLOSE,8);飞龙顶底线:=EMA(VAR001,20);VAR002:=CROSS(VAR001,飞龙顶底线);VAR003:=(VAR001 < MA(CLOSE,20));VAR004:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100); VAR005:=SMA(VAR004,5,1);VAR006:=SMA(VAR005,8,1);VAR007:=(CROSS(VAR005,VAR006) AND (VAR006 < 5));VAR008:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR007); VAR009:=IF((CLOSE > 1000),VAR007,VAR008);VAR00F:=CROSS(X1,X2);MA115:=VAR00F;低买:=(VAR002 AND VAR003);黑马起步:=VAR009;DRAWTEXT(X8,(HIGH * 1.03),'出货'),COLOR9000F5;DRAWTEXT((黑马起步 > 0),(HIGH * 1.04),'逃命'),COLORFF0000;逃遁:=(SMA(HIGH,21,2) * 1.05);阻挡:=(SMA(LOW,21,2) * 0.94);DRAWTEXT(FILTER(((((((((CLOSE / OPEN) > 1.03) AND ((超跌位2 - REF(超跌位2,1)) > 0)) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (HIGH < 压力1)) AND (CLOSE < 压力1)) AND ((压力2 - REF(压力2,1)) > 0)) AND (CLOSE < MAN)),3),LOW,'出击'),COLOR646E69;DRAWTEXT((((((低买 > 0) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 压力位)) AND (HIGH < X9)) AND ((X2 - REF(X2,1)) > 0)),LOW,'黑马'),COLOR00FF00; DRAWTEXT((((CROSS(VAR2C,UPPER) AND (HIGH < 压力1)) AND ((XY -REF(XY,1)) > 0)) AND (HIGH < 支撑)),LOW,'买'),COLORFFFFFF; DRAWTEXT(FILTER((((((MA115 AND (CLOSE < 压力位)) AND ((人 - REF(人,1)) >0)) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 上1)) AND ((CLOSE / OPEN) >1.03)),5),LOW,'●买'),COLOR93EE7D;DRAWTEXT(((((LOW <= 上) AND (HIGH >= 短期底部)) AND (CLOSE >= 长期底部)) AND ((CLOSE / OPEN) > 1.03)),(LOW - 0.08),'★抄底'),COLOR0000FF;DRAWTEXT(FILTER((((((LOW <= 阻挡线) AND ((MA20 - REF(MA20,1)) > 0)) AND (OPEN <= 上1)) AND (HIGH > 上1)) AND (CLOSE > 阻挡线)),5),LOW,'涨10%'),COLORFFFFFF;DRAWTEXT(FILTER((((((B8 <= 1) AND (LOW <= 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= 中期大底)) AND (CLOSE >= 长期底部)),3),(LOW - 0.08),'短抄E'),COLORA100FF;DRAWTEXT(FILTER((((CROSS(趋势,趋) AND (HIGH < M80)) AND (HIGH < 压力1)) AND LLV(LOW,0)),10),LOW,'果断买'),COLOR668800;DRAWTEXT(FILTER(((CROSS(中线,人) AND (LOW <= 人)) AND (CLOSE >= 人)),4),(LOW - 0.06),'买'),COLOR00FF00;DRAWTEXT(FILTER((((((((MA20 - REF(MA20,1)) > 0) AND (HIGH < 支撑)) AND ((AA10 - REF(AA10,1)) > 0)) AND (HIGH < 压力1)) AND (VOL >= REF(VOL,1))) AND CROSS(CLOSE,MA20)),57),LOW,'突破生命线'),COLOR0000FF;DRAWTEXT(FILTER(((((LOW <= MA80) AND (CLOSE > MA80)) AND (CLOSE > OPEN)) AND (短期底部2 <= MA80)),8),LOW,'底'),COLORFFFF00;DRAWTEXT(((CROSS(MA20,压力位) AND (LOW <= MA20)) AND ((MA20 -REF(MA20,1)) > 0.02)),(LOW - 0.03),'●绝佳买点'),COLORAFA0AF; DRAWTEXT((((((((CROSS(CLOSE,MA20) AND (HIGH < 压力位)) AND (OPEN < MA20)) AND (HIGH < 支撑)) AND ((MAN - REF(MAN,1)) > 0)) AND ((X1 - REF(X1,1)) > 0)) AND (D < 63)) AND ((MA20 - REF(MA20,1)) > 0)),(LOW - 0.05),'●大牛浮水'),COLOR73777F;DRAWTEXT(CROSS(中期大底,短期底部),(LOW - 0.02),'短线买');短趋势线:=MA(CLOSE,13);中趋势线1:=MA(CLOSE,33),LINETHICK1;中趋势线:=MA(CLOSE,55);涨:=IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),COLORRED,LINETHICK3;平:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL),COLOR00FFFF,LINETHICK3;跌:=IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLORGREEN,LINETHICK3;STICKLINE(CROSS(MA(CLOSE,13),C) AND MA(CLOSE,13)>REF(MA(CLOSE,13) ,1) AND V<REF(V,1) ANDMA(CLOSE,13)>MA(CLOSE,55) ,L,L*0.98,3,0),COLORYELLOW;DRAWTEXT(CROSS(MA(CLOSE,13),C) AND INDEXC>MA(INDEXC,13) ANDMA(CLOSE,13)>REF(MA(CLOSE,13) ,1) AND V<REF(V,1) ANDMA(CLOSE,13)>MA(CLOSE,55) ,L*0.95,'买'),COLORRED,LINETHICK2;VAR011:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA( CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;VAR012:=HHV(VAR011>20,10);DRAWTEXT(VAR011<-20 AND INDEXC<MA(INDEXC,13) AND FILTER(VAR011>REF(VAR011,1),5),L*0.93,'抄底'),COLORYELLOW,LINETHICK2;VAR013:=IF(MA(CLOSE,13)>REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL); DRAWTEXT((IF(CLOSE>MA(CLOSE,13) ANDOPEN<CLOSE,-0.1,0))AND((C-REF(C,1))/(REF(C,1))>0.061)AND(MA(CLOSE,13)=VAR013) AND (MA(CLOSE,1),MA(CLOSE,13)) AND(VOL>REF(HHV(VOL,3),1)*2),L*0.98,'主力介入'),COLORMAGENTA;X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);【通达信】顶底波段(攻击线、操盘线、生命线、决策线、短底)-指标公式效果图(文档来源:若水财经社区)。