欢迎您访问投资者加油站-WWW.XG51.CN选股无忧网

尾盘超短线稳步登高 鲛海龙珠火箭加油低估价值难得一见空中加速哪吒闹海一剑封喉猛龙在天底部黄金神龙见首跟庄波段神龙甩尾

鱼跃龙门拔地而起底部起飞筹码突击阶段新高MACD金叉量能巨变深跌回弹小步上扬量价齐飞盘整突破超卖反转超级强势强势洗盘

软件书籍买点指标卖点指标买卖指标底部指标市场热点股票入门指标改编指标技巧通达信公式安装方法大智慧公式安装方法同花顺公式安装方法

量能指标

当前位置: 主页 > 指标专题大全 > 量能指标

通达信量学主图选股指标公式源码

来源:网络|编辑:小编|时间:2021-11-30|栏目:量能指标

通达信量学主图选股指标公式源码(图1)

通达信量学主图选股指标公式源码

源码正文:

周期以内:=100{XG51};
大阴跌幅:=3{XG51};
允许穿越:=0{XG51};
大阴周期:=1{XG51};
虚线宽度:=3{XG51};
N日最高:=60{XG51};
N日最低:=60{XG51};
N:=20{XG51};
M:=32{XG51};
P1:=80{XG51};
P2:=100{XG51};
实体上三分之一:(maX(O,C)-MIN(O,C))*2/3+MIN(O,C),COLORCYAN,NODRAW{XG51};
实体下三分之一:(MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW{XG51};
实体二分之一:(O+C)/2,NODRAW{XG51};
整体上三分之一:(MAX(H,L)-MIN(H,L))*2/3+MIN(H,L),NODRAW{XG51};
整体下三分之一:(MAX(H,L)-MIN(H,L))/3+MIN(H,L),COLORBLUE,NODRAW{XG51};
整体二分之一:(H+L)/2,COLORMAGENTA,NODRAW{XG51};
stICKLINE(O<>C,实体上三分之一,实体下三分之一,2,0),COLOR824173{XG51};
STICKLINE(O<>C,实体二分之一,实体二分之一,2,0),COLORCYAN{XG51};
最高:=HHV(MAX(O,C),N日最高){XG51};
最低:=LLV(MIN(O,C),N日最低){XG51};
上涨:BARSSINCE(BacKSET(ISLASTBAR,BArslAST(L=最低)+1)),COLOR0000FF,NODRAW{XG51};
&uarr;空间%:(C/REF(L,上涨)-1)*100,COLOR00FFFF,NODRAW{XG51};
最高%:(最高/REF(L,上涨)-1)*100,COLORFF00FF,NODRAW{XG51};
下跌:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=最高)+1)),COLOR00FF00,NODRAW{XG51};
&darr;空间%:(C/REF(H,下跌)-1)*100,COLOR888899,NODRAW{XG51};
最低%:(最低/REF(H,下跌)-1)*100,COLORFF0000,NODRAW{XG51};
天线:REFDATE(REF(H,下跌),DATE),POINTDOT,LINETHICK3,COLORBLUE{XG51};
地线:REFDATE(REF(L,上涨),DATE),POINTDOT,LINETHICK3,COLORBLUE{XG51};
中线:REFDATE((天线-地线)*0.5+地线,DATE),POINTDOT,LINETHICK3,COLORBLUE{XG51};
STICKLINE(上涨=0,天线,地线,0,-1),COLORBLUE{XG51};
STICKLINE(下跌=0,天线,地线,0,-1),COLORBLUE{XG51};
DRAWTEXT(ISLASTBAR,天线,VAR2STR(天线,2)),COLORBLUE{XG51};
DRAWTEXT(ISLASTBAR,中线,VAR2STR(中线,2)),COLORBLUE{XG51};
DRAWTEXT(ISLASTBAR,地线,VAR2STR(地线,2)),COLORBLUE{XG51};
高:=天线;
低:=地线{XG51};
H2:=高-(高-低)*0.333{XG51};
H3:=高-(高-低)*0.5{XG51};
H4:=高-(高-低)*0.666{XG51};
DRAWTEXT(上涨=0,天线,'-最高'),COLOR0000FF{XG51};
DRAWTEXT(上涨=0,低,'-最低'),COLORWHITE{XG51};
DRAWTEXT(下跌=0,高,'-高'),COLORCYAN{XG51};
DRAWTEXT(下跌=0,地线,'-低'),COLOR00FF00{XG51};
DRAWTEXT(下跌=0,H2,'-0.666'),COLORBROWN{XG51};
DRAWTEXT(下跌=0,H3,'-中'),COLORBLUE{XG51};
DRAWTEXT(下跌=0,H4,'-0.333'),COLORLICYAN{XG51};
DRAWTEXT(上涨=0,H2,'-上三一位'),COLORBROWN{XG51};
DRAWTEXT(上涨=0,H3,'-中'),COLORBLUE{XG51};
DRAWTEXT(上涨=0,H4,'-下三一位'),COLORLICYAN{XG51};
周期:CURRBARSCOUNT,NODRAW,COLORCYAN{XG51};
X_1:=REFX(HHV(MAX(OPEN,CLOSE),周期以内),周期-1){XG51};
X_2:=REFX(LLV(LOW,周期以内),周期-1){XG51};
X_3:=CLOSE/REF(CLOSE,1)<=1-大阴跌幅/100 AND OPEN>CLOSE AND DATE<=1181101{XG51};
X_4:=IF(周期以内=1,0.5,IF(周期以内=2,1,IF(周期以内=3,(-1),IF(周期以内=4,3,4)))){XG51};
X_5:=0{XG51};
X_6:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1)),周期-1){XG51};
X_7:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_6)),周期-1){XG51};
X_8:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_7)),周期-1){XG51};
X_9:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_8)),周期-1){XG51};
X_10:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_9)),周期-1){XG51};
X_11:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_10)),周期-1){XG51};
X_12:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_11)),周期-1){XG51};
X_13:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_12)),周期-1){XG51};
X_14:=REFX(REF(OPEN,BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_13)),周期-1){XG51};
X_15:=REFX(BARSLAST(X_3 AND OPEN<X_1),周期-1)+1{XG51};
X_16:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_6),周期-1)+1{XG51};
X_17:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_7),周期-1)+1{XG51};
X_18:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_8),周期-1)+1{XG51};
X_19:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_9),周期-1)+1{XG51};
X_20:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_10),周期-1)+1{XG51};
X_21:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_11),周期-1)+1{XG51};
X_22:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_12),周期-1)+1{XG51};
X_23:=REFX(BARSLAST(X_3 AND OPEN<X_1 AND OPEN>X_13),周期-1)+1{XG51};
X_24:=IF(允许穿越=1,1,COUNT(MAX(OPEN,CLOSE)>X_6,X_15-周期)=0){XG51};
X_25:=IF(允许穿越=1,1,COUNT(MAX(OPEN,CLOSE)>X_7,X_16-周期)=0){XG51};
X_26:=IF(允许穿越=1,1,COUNT(MAX(OPEN,CLOSE)>X_8,X_17-周期)=0){XG51};
X_27:=IF(允许穿越=1,1,COUNT(MAX(OPEN,CLOSE)>X_9,X_18-周期)=0){XG51};
X_28:=IF(允许穿越=1,1,COUNT(MAX(OPEN,CLOSE)>X_10,X_19-周期)=0){XG51};
X_29:=IF(允许穿越=1,1,COUNT(MAX(OPEN,CLOSE)>X_11,X_20-周期)=0){XG51};
X_30:=IF(允许穿越=1,1,COUNT(MAX(OPEN,CLOSE)>X_12,X_21-周期)=0){XG51};
X_31:=IF(允许穿越=1,1,COUNT(MAX(OPEN,CLOSE)>X_13,X_22-周期)=0){XG51};
X_32:=IF(允许穿越=1,1,COUNT(MAX(OPEN,CLOSE)>X_14,X_23-周期)=0){XG51};
STICKLINE(周期<X_15 AND X_24,X_6,X_6,1,X_5),COLORLIBLUE{XG51};
STICKLINE(周期<X_16 AND X_25,X_7,X_7,1,X_5),COLORLIGREEN{XG51};
STICKLINE(周期<X_17 AND X_26,X_8,X_8,1,X_5),COLORLIBLUE{XG51};
STICKLINE(周期<X_18 AND X_27,X_9,X_9,1,X_5),COLORLIGREEN{XG51};
STICKLINE(周期<X_19 AND X_28,X_10,X_10,1,X_5),COLORLIBLUE{XG51};
STICKLINE(周期<X_20 AND X_29,X_11,X_11,1,X_5),COLORLIGREEN{XG51};
STICKLINE(周期<X_21 AND X_30,X_12,X_12,1,X_5),COLORLIBLUE{XG51};
STICKLINE(周期<X_22 AND X_31,X_13,X_13,1,X_5),COLORLIGREEN{XG51};
STICKLINE(周期<X_23 AND X_32,X_14,X_14,1,X_5),COLORLIBLUE{XG51};
DRAWTEXT(ISLASTBAR,X_6,VAR2STR(X_6,2)),COLORLICYAN{XG51};
DRAWTEXT(ISLASTBAR,X_7,VAR2STR(X_7,2)),COLORLICYAN{XG51};
DRAWTEXT(ISLASTBAR,X_8,VAR2STR(X_8,2)),COLORLICYAN{XG51};
DRAWTEXT(ISLASTBAR,X_9,VAR2STR(X_9,2)),COLORLICYAN{XG51};
DRAWTEXT(ISLASTBAR,X_10,VAR2STR(X_10,2)),COLORLICYAN{XG51};
DRAWTEXT(ISLASTBAR,X_11,VAR2STR(X_11,2)),COLORLICYAN{XG51};
DRAWTEXT(ISLASTBAR,X_12,VAR2STR(X_12,2)),COLORLICYAN{XG51};
DRAWTEXT(ISLASTBAR,X_13,VAR2STR(X_13,2)),COLORLICYAN{XG51};
DRAWTEXT(ISLASTBAR,X_14,VAR2STR(X_14,2)),COLORLICYAN{XG51};
MA13:MA(CLOSE,13),DOTLINE,COLORRED{XG51};
止损线: ema(COST(81),10) COLORBLUE,DOTLINE{XG51};
当前获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),NODRAW{XG51};
ZT:=C>REF(C,1)*1.090 AND C<REF(C,1)*1.105{XG51};
DT:=C<REF(C,1)*0.901 AND C>REF(C,1)*0.898{XG51};
STICKLINE(ZT,C,O,4,0),COLORBLUE{XG51};
STICKLINE(DT,C,O,2,0),COLORYELLOW{XG51};
dif:=EMA(DCLOSE,12)-EMA(DCLOSE,26){XG51};
DEA:=EMA(DIF,9){XG51};
AAA0:=(DIF-DEA)*2*60{XG51};
起爆:=crOSS(AAA0-REF(AAA0,1),15),COLORWHITE,LINETHICK2{XG51};
DRAWTEXT(起爆,L*0.99,'↖暴张'),COLORBLUE,LINETHICK2{XG51};
STICKLINE(起爆,OPEN,CLOSE,0.5,0),COLORWHITE{XG51};
现价:DRAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3),DOTLINE,COLORBLACK{XG51};
DRAWTEXT_FIX(1,0,0.1,0,'【所属行业】:'),COLORBLUE{XG51};
Z1:=STRCAT(HYBLOCK,' '){XG51};
Z2:=STRCAT(Z1,DYBLOCK){XG51};
Z3:=STRCAT(Z2,' '){XG51};
DRAWTEXT_FIX(1,0.07,0.1,0,STRCAT(Z3,GNBLOCK)),COLORBLUE{XG51};
DIR2:=Abs(CLOSE-REF(CLOSE,30)){XG51};
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),30){XG51};
ER2:=DIR2/VIR2{XG51};
CS2:=ER2*(0.8-2/24)+2/24{XG51};
CQ2:=CS2*CS2{XG51};
M熊:EMA(dma(CLOSE,CQ2),2),COLORCYAN,LINETHICK1{XG51};
牛熊:=M熊{XG51};
M震:IF(M熊/REF(M熊,1)>0.997,M熊,DRAWNULL),COLORGREEN,LINETHICK1{XG51};
M牛:IF(M熊/REF(M熊,1)>1.001,M熊,DRAWNULL),COLORLICYAN,LINETHICK1{XG51};
HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,COLORYELLOW,LINETHICK1{XG51};
LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,COLORYELLOW,LINETHICK1{XG51};
D90H:=EMA(HH,90),COLORWHITE,LINETHICK1{XG51};
D90L:=EMA(LL,90),COLORWHITE,LINETHICK1{XG51};
G0:=(xma(XMA(H,25),25)-XMA(XMA(L,25),25))+XMA(XMA(H,25),25){XG51};
D0:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25)){XG51};

DTD:=(D0+G0)/2>=(D90H+D90L)/2{XG51};
YM:=EMA(SLOPE((CLOSE+HIGH+LOW)/3,24)*20+(CLOSE+HIGH+LOW)/3,48),COLORWHITE,LINETHICK1{XG51};
YM1:=EMA(YM,5),COLORCYAN,LINETHICK1{XG51};
STICKLINE(L<D0 AND DTD=1 AND YM>YM1,L,D0,1.5,0),COLORRED{XG51};
VAR01:=(C+H+O+L)/4{XG51};
卖出:=XMA(VAR01,N)*(1+P1/1000),COLORCYAN,POINTDOT,LINETHICK3{XG51};
买入:=XMA(VAR01,M)*(1-P2/1000),COLORLIMAGENTA,POINTDOT,LINETHICK3{XG51};
DRAWKLINE(HIGH,OPEN,LOW,CLOSE){XG51};
幅度:100*(卖出-买入)/买入,NODRAW,COLORFF00FF{XG51};
MA1:=MA(VAR01,3){XG51};
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),2,0),COLORCYAN{XG51};
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),2,0),COLORCYAN{XG51};
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORCYAN{XG51};
STICKLINE(卖出<LOW,OPEN,CLOSE,2,0),COLORCYAN{XG51};
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORCYAN{XG51};
STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),2,0),COLORLIMAGENTA{XG51};
STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),2,0),COLORLIMAGENTA{XG51};
STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORLIMAGENTA{XG51};
STICKLINE(买入>HIGH,OPEN,CLOSE,2,0),COLORLIMAGENTA{XG51};
STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORLIMAGENTA{XG51};
{X+G~5+1+C+N+{};

免责声明 | 联系我们 | 服务协议

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

选股无忧网是股票软件指标公式分享平台,不开展相关证券业务,平台展示的所有股票资料由网络收集,不保障实时性和真实性,请勿以此为依据进行股票交易。

联系QQ:875328188 | 邮箱:875328188@qq.com

Copyright © 2002-2021 选股无忧网桂ICP备18001383号-7