通达信指标公式源码 趋势指标+多空对比

合集下载

通达信指标公式源码 多空PK 主图源码

通达信指标公式源码 多空PK 主图源码

指标源码;今日保护价:(REF(C,1)+REF(C,2)+O)/3,NODRAW;多:(SUM(((2*CLOSE+OPEN+HIGH+LOW)/5)*(VOL),8))/(SUM(VOL,8)),COLOR00FFFF,LIN ETHICK0;空:LLV(多,8),LINETHICK0,COLORFFFF00;DRAWBAND(多,RGB(140,0,140),空,RGB(0,0,0));DRAWKLINE(H,O,L,C);DRAWICON(REF(多,1)=REF(空,1) AND 多>空,LOW*0.98,13);DRAWTEXT(REF(多,1)=REF(空,1) AND 多>空,LOW*0.97,'*关注'),COLOR00FFFF;C1:=C>=多;C2:=C<多;AA:=C1>=C2 ;BB:=C2>C1 ;STICKLINE(AA,C,O,3.2,0),COLORRED;STICKLINE(AA,H,L,0,0),COLORRED;STICKLINE(BB,C,O,3.2,0),COLORFFFF00;STICKLINE(BB,H,L,0,0),COLORFFFF00;STICKLINE(AA,CLOSE,OPEN,3.2,0),COLOR000099;STICKLINE(AA,CLOSE,OPEN,2.6,0),COLOR0000AA;STICKLINE(AA,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(AA,CLOSE,OPEN,1.8,0),COLOR0000DD;STICKLINE(AA,CLOSE,OPEN,1.3,0),COLOR0000FF;STICKLINE(AA,CLOSE,OPEN,0.5,0),COLORCC66FF;STICKLINE(BB,CLOSE,OPEN,3.2,0),COLOR777700;STICKLINE(BB,CLOSE,OPEN,2.6,0),COLORAAAA00;STICKLINE(BB,CLOSE,OPEN,2.2,0),COLORBBBB00;STICKLINE(BB,CLOSE,OPEN,1.8,0),COLORDDDD00;STICKLINE(BB,CLOSE,OPEN,1.3,0),COLOREEFF00;STICKLINE(BB,CLOSE,OPEN,0.5,0),COLORCYAN;SJ:=WMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);ZJ:=WMA(0.667*REF(SJ,1)+0.333*SJ,2);DRAWTEXT(CROSS(SJ,ZJ) AND SJ<30,L-0.05,'←买入'),COLOR00FF00; DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70,H+0.05,'←卖出'),COLORFFFF00; RC:=DYNAINFO(3);SA:=SMA(C,3,1);SB:=SMA(C,5,1);DK:=2*(SA-SB);STICKLINE(DK>0 AND DK>=REF(DK,1),RC,RC+DK,0.1,0),COLOR0000BB; STICKLINE(DK>0 AND DK<REF(DK,1),RC,RC+DK,0.1,0),COLOR00BBBB; STICKLINE(DK<0 AND DK>=REF(DK,1),RC,RC+DK,0.1,0),COLORBB00BB; STICKLINE(DK<0 AND DK<REF(DK,1),RC,RC+DK,0.1,0),COLORBBBB00;。

短线多空 MACD指标 趋势一目了然通达信指标公式源码

短线多空 MACD指标 趋势一目了然通达信指标公式源码

多空线:0,COLORYELLOW,LINETHICK9;A1:=EMA(EMA(CLOSE,7),2)-EMA(EMA(CLOSE,21),2);B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);短多:IF(A1>=B1,A1,B1),LINETHICK3,COLORLIMAGENTA;短空:B1,LINETHICK3,COLORGREEN;STICKLINE(B1<0 AND B1<REF(B1,1),B1*0.7,0,0.05,0),COLORLIBLUE; STICKLINE(B1<0 AND B1>REF(B1,1),B1*0.7,0,0.05,0),COLORYELLOW; STICKLINE(B1>REF(B1,1) AND B1>0,B1*0.7,0,0.05,0),COLORRED; STICKLINE(B1<REF(B1,1) AND B1>0,B1*0.7,0,0.05,0),COLORGREEN; LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100; RSI3:=SMA(MAX(CLOSE-LC,0),4,1)/SMA(ABS(CLOSE-LC),4,1)*100; RSI4:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100; RSI5:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; RSI6:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100; RSI7:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100; RSI8:=SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*100; RSI9:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100; RSI10:=SMA(MAX(CLOSE-LC,0),11,1)/SMA(ABS(CLOSE-LC),11,1)*100; RSI11:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100; RSI12:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100; RSI13:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; RSI14:=SMA(MAX(CLOSE-LC,0),15,1)/SMA(ABS(CLOSE-LC),15,1)*100;RSI15:=SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100;RSI16:=SMA(MAX(CLOSE-LC,0),17,1)/SMA(ABS(CLOSE-LC),17,1)*100;RSI17:=SMA(MAX(CLOSE-LC,0),18,1)/SMA(ABS(CLOSE-LC),18,1)*100;RSI18:=SMA(MAX(CLOSE-LC,0),19,1)/SMA(ABS(CLOSE-LC),19,1)*100;RSI19:=SMA(MAX(CLOSE-LC,0),20,1)/SMA(ABS(CLOSE-LC),20,1)*100;RSI21:=SMA(MAX(CLOSE-LC,0),21,1)/SMA(ABS(CLOSE-LC),21,1)*100;短线RSI:=(RSI1+RSI2+RSI3+RSI4+RSI5)/5,COLORWHITE;中线RSI:=(RSI6+ RSI7+ RSI8+ RSI9+ RSI10+ RSI11+ RSI12+ RSI13+ RSI14+ RSI15+ RSI16+ RSI17+ RSI18+ RSI19+ RSI21)/15,COLORYELLOW;A:=CROSS(短线RSI,中线RSI);B:=CROSS(中线RSI,短线RSI);。

通达信多空主图指标公式

通达信多空主图指标公式

通达信多空主图指标公式
通达信多空主图指标公式
通达信多空主图指标是一种常用的技术指标,它可以帮助投资者判断股票市场的走势,以及未来的变化情况。

多空主图指标主要由收盘价和均线组成,它可以用来判断股票走势的短期内的走势趋势,以及未来可能出现的变化。

通达信多空主图指标的公式主要由收盘价和均线组成,其具体公式如下:
1、多头动能指标:DIFF=EMA(CLOSE,N1)-EMA(CLOSE,N2)
2、空头动能指标:DEA=EMA(DIFF,M1)
3、多空指标:MACD=(DIFF-DEA)*2
其中,N1、N2、M1分别表示收盘价的N1和N2日指数移动平均线,以及DIFF的M1日指数移动平均线。

通达信多空主图指标可以帮助投资者更好的判断股票市场的走势,及时调整投资组合,从而获得更多的投资收益。

通达信波段指标公式

通达信波段指标公式

通达信波段指标公式一、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值。

【股票指标公式下载】-【通达信】动能指标 (多空趋势、减仓、反弹)

【股票指标公式下载】-【通达信】动能指标 (多空趋势、减仓、反弹)

【通达信】动能指标(多空趋势、减仓、反弹)-指标公式源码V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);多空趋势:=(MA((CLOSE - HY1) * 28,2))*0.1;操盘4:STICKLINE(多空趋势>=0 AND 多空趋势>=REF(多空趋势,1),24,24+多空趋势,1.5,0),COLORRED;减仓4:STICKLINE(多空趋势>=0 AND 多空趋势< REF(多空趋势,1),24,24+多空趋势,1.5,0), COLORRED;反弹4:STICKLINE(多空趋势<0 AND 多空趋势>=REF(多空趋势,1),24,22+多空趋势,1.5,0),COLORGREEN;寻底4:STICKLINE(多空趋势<0 AND 多空趋势< REF(多空趋势,1),24,24+多空趋势,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(多空趋势>=0,22,22.3),' 多空'),COLORWHITE; 换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;成交量:V,COLORWHITE,NODRAW;主力能量:(主力-均量)COLORMAGENTA,NODRAW;大户能量:(大户-均量)COLORYELLOW,NODRAW;中户能量:(中户-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORRED;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORYELLOW;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),14.4,14.4+主力能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,14.4,14.6),' 机构'),COLORMAGENTA;操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORRED;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORYELLOW;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORGREEN;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),9.6,9.6+大户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,9.6,9.8),' 大户'),COLORYELLOW; 操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORRED;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORGREEN;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),4.8,4.8+中户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,4.8,5),' 中户'),COLORLIBLUE;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE; JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量));{4,9,17,34日换手偏离值均分成交量}ZLCJ:=JZ*ABS(主力能量);{4日换手偏离均量值换算当日成交量}DHCJ:=JZ*ABS(大户能量);{9日换手偏离均量值换算当日成交量}ZHCJ:=JZ*ABS(中户能量);{17日换手偏离均量值换算当日成交量}SHCJ:=JZ*ABS(散户能量);{34日换手偏离均量值换算当日成交量};换手率:VOL/CAPITAL*100,LINETHICK0;机构量:=ZLCJ,COLORMAGENTA,NODRAW;大户量:=DHCJ,COLORYELLOW,NODRAW;中户量:=ZHCJ,COLORLIBLUE,NODRAW;散户量:=SHCJ,COLORBLUE,NODRAW;【通达信】动能指标(多空趋势、减仓、反弹)-指标公式效果图(文档来源:若水财经社区)。

通达信多空博弈副图源码指标公式.docx

通达信多空博弈副图源码指标公式.docx

图中洋红色曲线持股,绿色持币。

其他口己也能看懂。

买线:=EMA(C Z2);卖线:=EMA(SLOPE(C Z21)*20+C,42);STICKLINE(买线 >=卖线z-50+REFDATE(HHV(H,0)z DATE)/5,-50+REFDATE(LLV(L,0),DATE)/5z6,0)z COLORLIMAGENTA;STICKLINE(买线 v 卖线z-50+REFDATE(HHV(H,0)z DATE)/5,-50+REFDATE(LLV(L,0),DATE)/5z6,0)z COLORLIBLU E;RSV:=((((HHV(HIGH Z1O)・ CLOSE) / (HHV(HIGH,10)・ LLV(LOW,10))) * 200)・ 125); 散户:=SMA(RSV,5,1)+15{,COLORGREEN 丄INETHICK1};RSV1:=((((CLOSE ・ LLV(LOW,10)) / (HHV(HIGH,10) - LLV(LOW,10))) * 200)・ 105); 主力:SMA(RSV1,5,1)+15Z COLORLIRED<LINETHICK1;买进:IF(主力>REF(主力,1),主力,DRAWNULL),COLORMAGENTA Z LINETHICK3;{持币:IF(散户>REF(散户散户,DRAWNULL),COLORGREEN 丄INETHICK3;}持币:IF(主力vREF(主力,1),主力,DRAWNULL),COLORGREEN,LINETHICK3;{P(10z l,100),A(5,1,100);}SVOL:=INTPART(SUM(V,0)/CAPITAL);TJO:=SVOL>REF(SVOL,1) OR BARSSINCE(CLOSE)=0;Sl:=BARSLAST(TJ0)+l;TJ2:=S1<REF(S1,1);S2:=IF(TJ2,REF(S1Z1)+1,S1);S3:=SUM(TJ2,0);ZKl:=n KD.K#WEEK n(9,3,3);ZD2:=n KD.D#WEEK"(9,3z3);Z, 1:="MACD.DIF#WEEK,,(12Z26,9);ZA2:=n MACD.DEA#WEEK n(12z26,9);换手:=V/CAPITAL* 100, LIN ETHICK0;JCD: = FILTER(CROSS(ZKl z ZD2) AND REF(ZD2,l)v30,13),NODRAW;取点:=BARSLAST(JCD);吸筹区:=IF(取点>0 AND取点<61,取点,0);ZS1:二吸筹区;ZS2:=吸筹区+ 1;ZS3:=换手/5;ZSA:=IF(ZS1>O,SUM((ZS3),吸筹区 + 1),0),NODRAW;主力筹码%:ZSA,NODRAW;建仓天数:ZS1,NODRAW;阶段总额(万):=SUM(AMOUNT/10000,S2)*100,NODRAW;阶段总量(手):=SUM(V,S2)*100,NODRAW;阶段成本(元):(阶段总额(万)/(阶段总量(手)/100)),NODRAW;换手冷清:STICKLINE(换手<3,-80,(换手+5・40)*2,0.0,0),COLORCYAN;青换手冷清:(换手<3,-80,(换手・6)*4,0.0,0),COLORCYAN;换手活跃:STICKLINE(换手>=3 AND 换手<7,・80,(换手+5・40)*2,0.0,0),COLORYELLOW;黄换手活跃:(换手>=3 AND 换手<7,-80,(换手・6)*4,0.0,0),COLORYELLOW;换手热烈:STICKLINE(换手>=7,・80,(换手+5-40)*2,05,0),COLORRED;红换手热烈:(换手 >=7,-80/换手・6)*4,0.5,0),COLORRED;STICKLINE(JCD z(0-6)*4z6*6,0.5,0),COLORGREEN;DRAWTEXT(建仓天数,40/建仓COLORGREEN;LL:=REF(CLOSE,1);MM:=SMA(MAX(CLOSE-LL z O),6,l)/SMA(ABS(CLOSE-LL),6,1)*100;出:IF(CROSS(80Z MM),90,100),COLORCYAN;DRAWTEXT(CROSS(80,MM),MMJ卖')Z COLORWHITE;DRAWTEXT(CROSS(主力,散户),0/买'),COLORRED;AA:=(WINNER((CLOSE + ((CLOSE * 15) / 100))) * 100);BB:=(WINNER((CLOSE + ((CLOSE * 0) / 100))) * 100);CC:=(AA ・ BB);DD:=((WINNER((CLOSE ・((CLOSE * 0.1)/ 100)))・ WINNER((CLOSE ・((CLOSE * 15)/ 100)))) * 100);EE:=(((CC < 3) AND (DD < 0.5)) AND (OPEN > LOW));A1:=DYNAINFO(6);A22:=IF((LOW > Al),0,IF((HIGH < A1),1,(((A1 ・ LOW) + 0.01) / ((HIGH ・ LOW) + 0.01))));A3:=(VOL / WINNER(LOW));A4:=REF(HHV(CLOSE,120),1);A5:=REF(LLV(CLOSE,120),1);A6:=((100 * (CLOSE ・ A5))/ (A4 ・ A5));A7:=((A22 > 0) OR (A22 = 1));A&=((A7 AND ((A3 / REF(A3,3)) >= 3)) AND (A6 < 80));A9:=(((REF(A8f l) OR REF(A8,2)) OR REF(A8,3)) OR REF(A8,4));A10:=(A8 AND A9);All:=IF(FILTER(A8,3),5,0);A12:=IF((FILTER(A10,3) OR EE),10,0);进场:STICKLINE(All z-48,-33z2.5,0)z COLORFF7700;加仓:STICKLINE(A12,-48z-20,2.5,0)z COLORFF00FF;STICKLINE(A11,-48Z-33Z2.2Z0),COLORFF7700;STICKLINE(A11Z-48Z-33Z1.7,0),COLORFFDDOO;STICKLINE(All,-48,-33,0.7,0),COLORFFEEOO;STICKLINE(A12,-48,-20,2.2,0),COLOR102066;STICKLINE(A12,-48,-20,1.7,0),COLOR1020AA;STICKLINE(A12,-48,-20,0.7,0),COLOR1020FF;DRAWTEXT(进场=5,-33;进场'),COLORFFFFOO;DRAWTEXT(加仓=10,・20,加仓jCOLORFFFFFF;VAR2L:=REF(LOW,1);VAR3L:=SMA(ABS(LOW-VAR2L),3,l)/SMA(MAX(LOW-VAR2L z O),3,1)*110; VAR4L:=EMA(IF(CLOSE*1.3,VAR3L*10,VAR3L/10),3);VAR5L:=LLV(LOW Z13);VAR6L:=HHV(VAR4L,13);VAR7L:=IF(M A(CLOSE Z34), 1,0);VAR8L:=EMA(IF(LOW<=VAR5L Z(VAR4L+VAR6L*2)/2,0)Z3)/618*VAR7L; VAR9LL:=IF(VAR8L> 110,110,VAR8L);STICKLINE(VAR9LL<REF(VAR9LL,1),48,48+VAR9LL,0・5,0),COLORYELLOW; RSV2:=(CLOSE-LLV(LOW Z9))/(HHV(HIGH Z9)-LLV(LOW,9))*100;K:=SMA(RSV2,2,1);D:=SMA(K Z2,1);J:=3*K-2*D;J1:=REVERSE(J);AAl: = REF(MA(C z l),10)>REF(MA(C,60),10);买点:CROSS(JJl) AND AA1,NODRAW;STICKLINE(买点,0,30,5,0),COLOROOOOFF;STICKLINE(买点,30,55,3,0),COLORWHITE;STICKLINE(买点,55,80乙0),COLORYELLOW;DRAWTEXT(买点,40,庄现!jCOLORFFOOFF;买:IF(CROSS(K,D)AND AA1,10Z0),COLORLIMAGENTA;。

赢在龙头 多空对比、资金指数炒股公式原版带选股,通达信软件可以直接用

赢在龙头 多空对比、资金指数炒股公式原版带选股,通达信软件可以直接用

赢在龙头多空对比、资金指数炒股公式原版带选股,通达信软件可以直接用赢在龙头多空对比、资金指数炒股公式原版带选股,通达信软件可以直接用1、多空对比短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;中期:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;中长期:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETH ICK2;强市线:80,POINTDOT;弱市线:20,POINTDOT;分水岭:50,POINTDOT;2、资金指数主流资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),CO LORMAGENTA,LINETHICK2;非主流资金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV( INDEXL,34)),3),COLORGREEN,LINETHICK2;弱势区:20,POINTDOT,COLORGREEN;强弱分水岭:50,POINTDOT,COLORWHITE;强势区:80,POINTDOT,COLORF00FF0;3、多空对比选股公式(四线合一)短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)); 中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)); 长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)); xg1:短期6and中期6and中长期6and长期4、多空对比单针下20选股公式短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)); 中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)); 长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)); xg1:短期20AND长期。

通达信指标公式源码 多空潜伏精品副图+选股指标

通达信指标公式源码 多空潜伏精品副图+选股指标

{趋向指标}{N 2 90 14 M 2 60 6}MTR:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE ,1)-LOW)),N);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=SUM(IF(HD>0&&HD>LD,HD,0),N);DMM:=SUM(IF(LD>0&&LD>HD,LD,0),N);PDI: DMP*100/MTR;MDI: DMM*100/MTR;ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);ADXR:(ADX+REF(ADX,M))/2;看多线:20,DOTLINE,COLORRED;MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);MA60:= MA(C,60);MAX1:=MAX(MA5,MA10);MAX2:=MAX(MAX1,MA20);MAX3:=MAX(MAX2,MA30);MAXH:=MAX(MAX3,MA60);MIN1B:=MIN(MA5,MA10);MIN2:=MIN(MIN1B,MA20);MIN3:=MIN(MIN2,MA30);MINL:=MIN(MIN3,MA60);粘合度:=(MAXH-MINL)/MINL*100;多头发散:=MA5>REF(MA5,1) AND MA5>MA10 AND MA10>=REF(MA10,1) AND MA10>MA20 AND MA20>=REF(MA20,1) AND MA20>MA30 ANDMA30>=REF(MA30,1) AND MA30>MA60 AND MA60>=REF(MA60,1);选股:BARSLASTCOUNT(粘合度<=5)=2 AND 多头发散;DRAWTEXT(CROSS(PDI,MDI) AND EXIST(粘合度<=8,5) ANDMA(C,20)-REF(MA(C,20),1)>REF(MA(C,20),1)-REF(MA(C,20),2)AND MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1),38,'多'),COLORRED;DRAWTEXT(CROSS(PDI,MDI) AND EXIST(粘合度<=8,5) ANDMA(C,20)-REF(MA(C,20),1)>REF(MA(C,20),1)-REF(MA(C,20),2)AND MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1),48,'看'),COLORRED;DRAWTEXT(CROSS(MDI,PDI),38,'看'),COLORGREEN;DRAWTEXT(CROSS(MDI,PDI),26,'空'),COLORGREEN;DRAWTEXT(CROSS(PDI,MDI) AND ADX>20 AND ADXR>20 ANDMA(C,10)>REF(MA(C,10),1),28,'主'),COLORRED;DRAWTEXT(CROSS(PDI,MDI) AND ADX>20 AND ADXR>20 ANDMA(C,10)>REF(MA(C,10),1),18,'升'),COLORRED;DRAWTEXT(CROSS(PDI,ADX) AND CROSS(PDI,ADXR) AND MDI<REF(MDI,1) AND ADX>REF(ADX,1) AND ADXR>REF(ADXR,1)AND ATAN((PDI/REF(PDI,1)-1)*100)*180/3.1416>60 ANDATAN(((2*REF(MDI,1)-MDI)/REF(MDI,1)-1)*100)*180/3.1416>45,58,'走'),COLORRED;DRAWTEXT(CROSS(PDI,ADX) AND CROSS(PDI,ADXR) AND MDI<REF(MDI,1) AND ADX>REF(ADX,1) AND ADXR>REF(ADXR,1)AND ATAN((PDI/REF(PDI,1)-1)*100)*180/3.1416>60 ANDATAN(((2*REF(MDI,1)-MDI)/REF(MDI,1)-1)*100)*180/3.1416>45,48,'牛'),COLORRED;升1:=CROSS(ADXR,20) ANDATAN((ADXR/REF(ADXR,1)-1)*100)*180/3.1416>60;升2:=CROSS(ADX,20) AND ATAN((ADX/REF(ADX,1)-1)*100)*180/3.1416>60; 升3:=CROSS(PDI,20) AND ATAN((PDI/REF(PDI,1)-1)*100)*180/3.1416>60; 升4:=CROSS(20,MDI) ANDATAN(((2*REF(MDI,1)-MDI)/REF(MDI,1)-1)*100)*180/3.1416>45;反降:=MDI<REF(MDI,1) ANDATAN(((2*REF(MDI,1)-MDI)/REF(MDI,1)-1)*100)*180/3.1416>45;升:=升1 OR 升2 OR 升3 OR 升4;{好}DRAWTEXT(升AND 反降AND ADX>20 AND ADXR>20 AND PDI>20 ANDADX>REF(ADX,1) AND PDI>=REF(PDI,1) AND MA(C,5)>REF(MA(C,5),1),46,'升'),COLORRED;DRAWTEXT(升AND 反降AND ADX>20 AND ADXR>20 AND PDI>20 AND ADX>REF(ADX,1) AND PDI>=REF(PDI,1) AND MA(C,5)>REF(MA(C,5),1),36,'势'),COLORRED;DRAWTEXT(ADX<REF(ADX,1) AND ADXR<REF(ADXR,1) AND PDI<REF(PDI,1) AND MDI>REF(MDI,1)AND MA(C,5)<REF(MA(C,5),1),44,'降'),COLORGREEN;DRAWICON(CROSS(PDI,MDI),PDI,1);DRAWICON(CROSS(MDI,PDI),MDI,2);DRAWTEXT(CROSS(PDI,ADXR) ANDATAN((PDI/REF(PDI,1)-1)*100)*180/3.1416>60 AND MDI<=REF(MDI,1) AND MA(C,5)>REF(MA(C,5),1) AND PDI>MDI,22,'短'),COLORRED; DRAWTEXT(CROSS(PDI,ADXR) ANDATAN((PDI/REF(PDI,1)-1)*100)*180/3.1416>60 AND MDI<=REF(MDI,1) AND MA(C,5)>REF(MA(C,5),1) AND PDI>MDI,18,'升'),COLORRED;{黄金坑}RR1:=MA(CLOSE,27);RR2:=(CLOSE-RR1)/RR1*100;RRA:=MA(RR2,2);RRB:=BARSLAST(CROSS(-10,RRA)=1);RRD:=RRA<-10 AND RRB>3;黄金坑:=IF(RRD,-120,0);{CCI}TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,NC))/(0.015*AVEDEV(TYP,NC));DRAWTEXT(CROSS(CCI,0),66,'上'),COLORRED;DRAWTEXT(CROSS(0,CCI),66,'下'),COLORGREEN;DRAWTEXT(CROSS(CCI,100),56,'突'),COLORRED;DRAWTEXT(CROSS(100,CCI),56,'落'),COLORGREEN;DRAWTEXT(CROSS(100,CCI) AND MA(C,20)>REF(MA(C,20),1),60,'暂'),COLORGREEN;叉1:=CROSS(ADX,0) AND ATAN((ADX/REF(ADX,1)-1)*100)*180/3.1416>60; 叉2:=CROSS(ADXR,0) ANDATAN((ADXR/REF(ADXR,1)-1)*100)*180/3.1416>60;叉3:=CROSS(20,PDI) ANDATAN(((2*REF(PDI,1)-PDI)/REF(PDI,1)-1)*100)*180/3.1416>45;叉4:=CROSS(MDI,20) AND ATAN((MDI/REF(MDI,1)-1)*100)*180/3.1416>45; 叉:=叉1 OR 叉2 OR 叉3 OR 叉4;逆势:=MDI>REF(MDI,1) ANDATAN((MDI/REF(MDI,1)-1)*100)*180/3.1416>45 AND MDI>20; DRAWTEXT(叉AND 逆势AND PDI<20 AND MDI>20 AND ADX>20 AND ADXR>20,54,'跌'),COLORGREEN;DRAWTEXT(叉AND 逆势AND PDI<20 AND MDI>20 AND ADX>20 ANDADXR>20,50,'势'),COLORGREEN;跌角1:=ATAN((ADXR/REF(ADXR,1)-1)*100)*180/3.1416>60 ANDATAN((ADXR/REF(ADXR,1)-1)*100)*180/3.1416>60AND ATAN((MDI/REF(MDI,1)-1)*100)*180/3.1416>60 AND ADXR>20 AND ADX>20 AND MDI>20 AND MDI>REF(MDI,1);DRAWTEXT(跌角1 ANDATAN(((2*REF(PDI,1)-PDI)/REF(PDI,1)-1)*100)*180/3.1416>45 ANDMA(C,10)<REF(MA(C,10),1),34,'大'),COLORGREEN;DRAWTEXT(跌角1 ANDATAN(((2*REF(PDI,1)-PDI)/REF(PDI,1)-1)*100)*180/3.1416>45 ANDMA(C,10)<REF(MA(C,10),1),30,'跌'),COLORGREEN;潜伏:=CROSS(PDI,MDI) AND MA(C,5)>REF(MA(C,5),1) ANDMA(C,10)>REF(MA(C,10),1) ANDMA(C,20)-REF(MA(C,20),1)>REF(MA(C,20),1)-REF(MA(C,20),2) AND EXIST(粘合度<=8,5);潜伏2:=CROSS(PDI,MDI) AND MA(C,5)>REF(MA(C,5),1) ANDMA(C,10)>REF(MA(C,10),1) ANDMA(C,20)-REF(MA(C,20),1)>REF(MA(C,20),1)-REF(MA(C,20),2) AND EXIST(粘合度<=8,5) AND EXIST(黄金坑,10);DRAWTEXT(潜伏,14,'潜'),COLORYELLOW;DRAWTEXT(潜伏,10,'伏'),COLORYELLOW;DRAWTEXT(潜伏2,6,'潜'),COLORRED;DRAWTEXT(潜伏2,2,'伏'),COLORRED;。

通达信短线多空MACD指标趋势一目了然

通达信短线多空MACD指标趋势一目了然

通达信短线多空MACD指标趋势一目了然多空线:0,COLORYELLOW,LINETHICK9;A1:=EMA(EMA(CLOSE,7),2)-EMA(EMA(CLOSE,21),2);B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);短多:IF(A1>=B1,A1,B1),LINETHICK3,COLORLIMAGENTA;短空:B1,LINETHICK3,COLORGREEN;STICKLINE(B1<0 AND B1<REF(B1,1),B1*0.7,0,0.05,0),COLORLIBLUE;STICKLINE(B1<0 AND B1>REF(B1,1),B1*0.7,0,0.05,0),COLORYELLOW;STICKLINE(B1>REF(B1,1) AND B1>0,B1*0.7,0,0.05,0),COLORRED;STICKLINE(B1<REF(B1,1) AND B1>0,B1*0.7,0,0.05,0),COLORGREEN;LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;RSI3:=SMA(MAX(CLOSE-LC,0),4,1)/SMA(ABS(CLOSE-LC),4,1)*100;RSI4:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;RSI5:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;RSI6:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;RSI7:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100;RSI8:=SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*100;RSI9:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100;RSI10:=SMA(MAX(CLOSE-LC,0),11,1)/SMA(ABS(CLOSE-LC),11,1)*100;RSI11:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;RSI12:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;RSI13:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;RSI14:=SMA(MAX(CLOSE-LC,0),15,1)/SMA(ABS(CLOSE-LC),15,1)*100;RSI15:=SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100;RSI16:=SMA(MAX(CLOSE-LC,0),17,1)/SMA(ABS(CLOSE-LC),17,1)*100;RSI17:=SMA(MAX(CLOSE-LC,0),18,1)/SMA(ABS(CLOSE-LC),18,1)*100;RSI18:=SMA(MAX(CLOSE-LC,0),19,1)/SMA(ABS(CLOSE-LC),19,1)*100;RSI19:=SMA(MAX(CLOSE-LC,0),20,1)/SMA(ABS(CLOSE-LC),20,1)*100;RSI21:=SMA(MAX(CLOSE-LC,0),21,1)/SMA(ABS(CLOSE-LC),21,1)*100;短线RSI:=(RSI1+RSI2+RSI3+RSI4+RSI5)/5,COLORWHITE;中线RSI:=(RSI6+ RSI7+ RSI8+ RSI9+ RSI10+ RSI11+ RSI12+ RSI13+ RSI14+ RSI15+ RSI16+ RSI17+ RSI18+ RSI19+ RSI21)/15,COLORYELLOW;A:=CROSS(短线RSI,中线RSI); B:=CROSS(中线RSI,短线RSI);。

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

RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短多:SMA(RSV,3,1),COLORRED,LINETHICK1;
短空:SMA(短多,3,1),COLORYELLOW,LINETHICK1;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
中多:SMA(RSV1,5,1),COLORFF00FF,LINETHICK1;
中空:SMA(中多,10,1),COLORGREEN,LINETHICK1;
DRAWBAND(中多,RGB(055,50,34),中空,RGB(100,100,50)); DRAWBAND(短多,RGB(255,50,34),短空,RGB(0,91,0));
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2; 长强势区:=IF((EVERY(短多>=REF(短多,1),1)AND 短多<短
空),5,0)COLOR0000FF,LINETHICK3;
低买:IF((CROSS(长强势区,0.1)),10,0),COLORWHITE,LINETHICK3;
长强势区1:=IF((EVERY(中多>=REF(中多,1),1)AND 中多
<18),5,0)COLOR0000FF,LINETHICK3;
低买1:IF((CROSS(长强势区1,0.1)),5,0),COLORGREEN,LINETHICK3;
长强势区11:=IF((EVERY(中多<=REF(中多,1),1)AND 中
多>85),5,0)COLOR0000FF,LINETHICK3;
高卖11:IF((CROSS(长强势区11,0.1)),105,110),COLORGREEN,LINETHICK3; 长强势区2:=IF((EVERY(短多<=REF(短多,1),1)AND 短多>短
空),5,0)COLOR0000FF,LINETHICK3;
低买2:IF((CROSS(长强势区2,0.1)),100,110),COLOR00FFFF,LINETHICK3;
短期2:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;
中期2:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),DOTLINE,COLORGRAY; 中长期2:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),DOTLINE,COLORGRAY;
长期2:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;。

相关文档
最新文档