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

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

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

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

通达信公式

当前位置: 主页 > 通达信公式

通达信量化优主图未加密选股指标公式源码

来源:网络|编辑:小编|时间:2021-12-28|栏目:通达信公式

通达信量化优主图未加密选股指标公式源码

通达信量化优主图未加密选股指标公式源码

源码正文:

Oma:MA(C,5),COLORRED,LINETHICK2{XG51};
IF(OMA>REF(OMA,1),OMA,DRAWNULL),COLORWHITE,LINETHICK2{XG51};
IF(OMA<REF(OMA,1),OMA,DRAWNULL),COLORCYAN,LINETHICK2{XG51};
E:=(HIGH+LOW+OPEN+2*CLOSE)/5;明日阻力:=2*E-LOW,NODRAW{XG51};
明日支撑:=2*E-HIGH;明日突破:=E+(HIGH-LOW);明日反转:=E-(HIGH-LOW){XG51};
今日阻力:=REF(明日阻力 , 1);今日支撑:=REF(明日支撑 , 1){XG51};
DRAWTEXT_FIX(ISLAstBAR,0.6,0.05,0, '【动态读盘(元)】'),COLOR767676{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.6,0.1,0,'明日阻力'),COLOR545454{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.7,0.1,0,明日阻力),COLOR545454{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.6,0.15,0,'明日支撑'),COLOR545454{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.7,0.15,0,明日支撑),COLOR545454{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.6,0.2,0,'明日突破'),COLOR545454{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.7,0.2,0,明日突破),COLOR545454{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.6,0.25,0,'明日反转'),COLOR545454{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.7,0.25,0,明日反转),COLOR545454{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.6,0.3,0,'今日阻力'),COLOR545454{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.7,0.3,0,今日阻力),COLOR545454{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.6,0.35,0,'今日支撑'),COLOR545454{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.7,0.35,0,今日支撑),COLOR545454{XG51};
DRAWTEXT_FIX(1,0.04,0.04,0, '【动态读盘(手)】'),COLORFFFF00{XG51};
DRAWTEXT_FIX(1,0.01,0.08,0,'当日买卖量='),COLOR6B8E23{XG51};
DRAWTEXT_FIX(1,0.01,0.15,0,'日主动买量='),COLOR6B8E23{XG51};
DRAWTEXT_FIX(1,0.01,0.22,0,'日主动卖量='),COLOR6B8E23{XG51};
DRAWTEXT_FIX(1,0.01,0.29,0,'当日买卖比='),COLOR6B8E23{XG51};
DRAWTEXT_FIX(1,0.01,0.36,0,'买入累计万元: '),COLOR6B8E23{XG51};
DRAWTEXT_FIX(1,0.01,0.43,0,'卖出累计万元: '),COLOR6B8E23{XG51};
AAAA:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN)){XG51};
主动买盘:=IF(CLOSE>OPEN,AAAA*(HIGH-LOW),IF(CLOSE<OPEN,AAAA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)){XG51};
主动卖盘:=IF(CLOSE>OPEN,AAAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,AAAA*(HIGH-LOW),VOL/2)){XG51};
买卖比:=主动买盘/主动卖盘;WJ:=(HIGH+LOW+CLOSE)/3{XG51};
VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE)){XG51};
VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ){XG51};
VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW){XG51};
VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN)){XG51};
VD5:=VOL/IF(HIGH=LOW,4,HIGH-LOW){XG51};
VD6:=(VD1*VD5);VD7:=(VD2*VD5);VD8:=(VD3*VD5);VD9:=(VD4*VD5){XG51};
买入量:=(VD9+VD8);卖出量:=(VD6+VD7){XG51};
买入资金:=买入量*CLOSE/100;卖出资金:=卖出量*CLOSE/100{XG51};
DRAWNUMBER_FIX(1,0.11,0.08,0,CONST(VOL)),COLOR00FFFF{XG51};
DRAWNUMBER_FIX(1,0.11,0.15,0,CONST(主动买盘)),COLORFF00FF{XG51};
DRAWNUMBER_FIX(1,0.11,0.22,0,CONST(主动卖盘)),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(1,0.11,0.29,0,CONST(买卖比)),COLOR00FF00{XG51};
DRAWNUMBER_FIX(1,0.11,0.36,0,CONST(买入资金)),COLOR00FFFF{XG51};
DRAWNUMBER_FIX(1,0.11,0.43,0,CONST(卖出资金)),COLORWHITE{XG51};
Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,' '){XG51};
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLOR656565;HAN:=DATE<1141230{XG51};
当前获利筹码:=IF(WINNER(CLOSE),WINNER(CLOSE)*100,0);DRAWKLINE(H,O,L,C){XG51};
九十成本集中:=(COST(95)-COST(5))/(COST(95)+COST(5))*100{XG51};
成本价:COST(九十成本集中),LINETHICK2,POINTDOT,COLORFFFFFF{XG51};
入1:IF(成本价>REF(成本价,1),成本价,DRAWNULL),COLORFFFFFF,POINTDOT,LINETHICK2{XG51};
出1:IF(成本价<REF(成本价,1),成本价,DRAWNULL),COLORFFFFFF,POINTDOT,LINETHICK2{XG51};
K9:expma(C,100),COLOR212121,DOTLINE;
K10:EXPMA(C,112),COLOR212121,DOTLINE;
K11:EXPMA(C,124),COLOR111111,DOTLINE;
K12:EXPMA(C,138),COLOR212121,DOTLINE;
底部支撑:HHV(MA(L,11),98),COLOR9F9F5F,DOTLINE;
压力1:MA(底部支撑,12),COLOR656565,DOTLINE{XG51};
压力2:MA(底部支撑,18),COLOR545454,DOTLINE{XG51};
压力3:MA(底部支撑,24),COLOR434343,DOTLINE;
压力4:MA(底部支撑,30),COLOR323232,LINETHICK1,DOTLINE{XG51};
AA:=ema(C,5) > EMA(C,20){XG51};
BB:=EMA(C,5) < EMA(C,20);CC:= EMA(C,5) > EMA(C,10){XG51};
CC1:=EMA(C,5) < EMA(C,10);DD:=CLOSE<OPEN{XG51};
STICKLINE(AA,H,L,0,0),COLOR7F7F5F{XG51};
STICKLINE(AA,O,C,3,1),COLOR7F7F5F{XG51};
STICKLINE(AA AND DD,O,C,3,1),COLOR7F7F5F{XG51};
STICKLINE(AA AND DD,O,C,1,0),COLORFF0400{XG51};
STICKLINE(BB,H,L,0,1),COLORFF0400{XG51};
STICKLINE(BB,O,C,3,1),COLORFF0400{XG51};
STICKLINE(BB,O,C,1,0),COLOR9F9F5F{XG51};
STICKLINE(BB AND DD,O,C,3,1),COLORFF0400{XG51};
STICKLINE(BB AND DD,O,C,1,1),COLOR212121{XG51};
STICKLINE(BB AND DD,O,C,1,0),COLORFF0400{XG51};
STICKLINE(BB AND CC,H,L,0,1),COLORRED{XG51};
STICKLINE(BB AND CC,O,C,3,1),COLORRED{XG51};
STICKLINE(BB AND CC,O,C,1,0),COLOR7F7F5F{XG51};
STICKLINE(BB AND CC AND DD,O,C,3,1),COLORRED{XG51};
STICKLINE(BB AND CC AND DD,O,C,1,0),COLORFF0400{XG51};
STICKLINE(AA AND CC1,H,L,0,0),COLORRED{XG51};
STICKLINE(AA AND CC1,O,C,3,1),COLORRED{XG51};
STICKLINE(AA AND CC1,O,C,1,0),COLOR7F7F5F{XG51};
STICKLINE(AA AND CC1 AND DD,O,C,3,1),COLORRED{XG51};
STICKLINE(AA AND CC1 AND DD,O,C,1,0),COLORFF0400{XG51};
AAA:=CONST(HHV(C,90));X:=(3*C+L+O+H)/6{XG51};
多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210,COLORLIMAGENTA,LINETHICK1,NODRAW{XG51};
PMA:=MA(C,4),COLORRED,LINETHICK2;DDD:=多空线<REF(多空线,1){XG51};
IF(DDD,多空线,DRAWNULL),COLORBLUE,LINETHICK2,NODRAW;A:=(PMA>多空线){XG51};
IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4{XG51};
降:=HHV(EMA(C,3),8),COLORGREEN; 升:=LLV(EMA(C,3),8),COLORWHITE;走势:=EMA(C,3),COLORBLUE{XG51};
线上多:IF(走势<降,降,DRAWNULL),COLOR9F9F5F,LINETHICK2{XG51};
线下空:IF(走势>升,升,DRAWNULL),COLOREEEE00,LINETHICK1{XG51};
T00:=200;AF1:=300;FX:=IF(C>REF(C,1),1,IF(C<REF(C,1),-1,0)){XG51};
TT:=IF(PERIOD=0,BArslAST(HOUR=9 AND MINUTE=31)+1,T00){XG51};
最高价:=CONST(HHV(H,TT));最低价:=CONST(LLV(L,TT)){XG51};
单位:=CONST((最高价-最低价)/40){XG51};
多方:=SUM(IF(FX=1,V,0),TT)/SUM(V,TT)*100{XG51};
空方:=SUM(IF(FX=-1,V,0),TT)/SUM(V,TT)*100{XG51};
平衡:=SUM(IF(FX=0,V,0),TT)/SUM(V,TT)*100{XG51};
DRAWTEXT_FIX(1,0.005,0.9,0,STRCAT(STRCAT(STRCAT('多方:%',CON2STR(多方,1)),
STRCAT('平衡:',CON2STR(平衡,1))),STRCAT('空方:%',CON2STR(空方,1)))),COLORBLUE{XG51};
DRAWTEXT_FIX(1,0.005,0.85,0,STRCAT('最小单位:',CON2STR(单位,3))),COLORBLACK{XG51};
F:=BARSCOUNT(CLOSE);AH:=HHV(HIGH,200);AL:=LLV(LOW,200){XG51};
B0:=(AH-AL)/40;B1:=HIGH+B0;B2:=LOW-B0{XG51};
DRAWTEXT((F+0)/34=FLOOR((F+0)/34),B2-2.2*B0*0.9,'变盘'),COLORFFFFFF{XG51};
ZDF:=(C-REF(C,1))/REF(C,1)*100;VAR2S:=(2*CLOSE+HIGH+LOW)/4;
VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1); VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4);
散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;
庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;
DRAWTEXT(crOSS(散户,庄家) AND 散户<30,L-0.05,'←¥'){XG51};
STICKLINE(CROSS(散户,庄家) AND 散户<30,O,C,3,0),COLORWHITE;
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;VAR3:=MA(CLOSE,13)+2*STD(CLOSE,13){XG51};
DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,'¥');VAR4:=REF(CLOSE,1){XG51};
VAR5:=SMA(MAX(CLOSE-VAR4,0),6,1)/SMA(ABS(CLOSE-VAR4),6,1)*100{XG51};
VAR6:=CROSS(79,VAR5);VAR7:=FILTER(VAR6,4){XG51};
DRAWTEXT(VAR7,HIGH*1.02,'¥');STICKLINE(VAR7,O,C,3,0),COLORFFFFFF{X_G^5.1_C_N_{};

通达信量化优主图未加密选股指标公式源码

通达信看了就懂了未加密选股指标公式源码

源码正文:

RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100{XG51};
K1:=SMA(RSV,10,1){XG51};
D1:=Sma(K1,5,1){XG51};
KK:=INTPART(K1){XG51};
DD:=INTPART(D1){XG51};
TFXXS:=KK+DD{XG51};
TGLD:=MOD(TFXXS,10){XG51};
TGLXS:=(TFXXS-REF(TFXXS,1))*10{XG51};
TYCFX:=TFXXS+TGLXS{XG51};
乖离系数:TGLXS,LINETHICK0,COLORCYAN{XG51};
stICKLINE(TGLXS>0,100,100+TGLXS,3,0),COLOR000088{XG51};
STICKLINE(TGLXS>0,100,100+TGLXS,2.5,0),COLOR000099{XG51};
STICKLINE(TGLXS>0,100,100+TGLXS,2,0),COLOR0000AA{XG51};
STICKLINE(TGLXS>0,100,100+TGLXS,1.5,0),COLOR0000BB{XG51};
STICKLINE(TGLXS>0,100,100+TGLXS,1.0,0),COLOR0000DD{XG51};
STICKLINE(TGLXS>0,100,100+TGLXS,0.5,0),COLOR0000FF{XG51};
STICKLINE(TGLXS<0,100,100+TGLXS,3,0),COLOR008800{XG51};
STICKLINE(TGLXS<0,100,100+TGLXS,2.5,0),COLOR00AA00{XG51};
STICKLINE(TGLXS<0,100,100+TGLXS,2,0),COLOR00BB00{XG51};
STICKLINE(TGLXS<0,100,100+TGLXS,1.5,0),COLOR00DD00{XG51};
STICKLINE(TGLXS<0,100,100+TGLXS,1,0),COLOR00FF00{XG51};
STICKLINE(TGLXS=0 AND REF(TGLXS,1)>=0,100,100+TGLXS,8,0),COLORWHITE{XG51};
STICKLINE(TGLXS=0 AND REF(TGLXS,1)<0,100,100+TGLXS,8,0),COLORCYAN{XG51};
ZLCM:=ema(WINNER(CLOSE)*70,3){XG51};
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3){XG51};
ZSHTL:=SHCM/(ZLCM+SHCM)*100{XG51};
ZCMZL:=MA(ZLCM+SHCM,13){XG51};
ZZLKP:=ZLCM/(ZLCM+SHCM)*100{XG51};
DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0){XG51};
ZZLJJ:=EMA(ZZLKP,89){XG51};
T1:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=1){XG51};
T2:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=0){XG51};
T3:=CONST( ZCMZL=REF(ZCMZL,1)){XG51};
T4:=CONST( ZCMZL<REF(ZCMZL,1) AND DKB=1){XG51};
T5:=CONST( ZCMZL<REF(ZCMZL,1) AND DKB=0){XG51};
T6:=CONST(TFXXS<=50 ){XG51};
T7:=CONST(TFXXS>=160 ){XG51};
T8:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS<=100 ){XG51};
T9:=CONST( TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS>100){XG51};
T10:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS>100 ){XG51};
T11:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS<=100 ){XG51};
T12:=CONST( ZSHTL>90 ){XG51};
T13:=CONST( ZZLKP>75 ){XG51};
T14:=CONST(crOSS(ZCMZL,ZZLJJ) AND ZZLKP>ZZLJJ AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) ){XG51};
T15:=CONST(CROSS(ZCMZL,ZZLKP) AND ZZLKP>ZZLJJ AND ZZLKP<ZSHTL AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) ){XG51};
T16:=CONST( CROSS(ZCMZL,ZSHTL) AND ZSHTL>ZZLKP AND ZCMZL>REF(ZCMZL,1)){XG51};
T17:=CONST( CROSS(ZCMZL,100) AND ZCMZL>REF(ZCMZL,1)){XG51};
T18:=CONST(REF(ZSHTL,1)>90 AND ZSHTL<90 ){XG51};
TS1:=IF(T1=1,0+0.03,0){XG51};
TS2:=IF(T2=1,TS1+0.03,TS1){XG51};
TS3:=IF(T3=1,TS2+0.03,TS2){XG51};
TS4:=IF(T4=1,TS3+0.03,TS3){XG51};
TS5:=IF(T5=1,TS4+0.03,TS4){XG51};
TS6:=IF(T6=1,0+0.73,0){XG51};
TS7:=IF(T7=1,TS6+0.03,TS6){XG51};
TS8:=IF(T8=1,TS7+0.03,TS7){XG51};
TS9:=IF(T9=1,TS8+0.03,TS8){XG51};
TS10:=IF(T10=1,TS9+0.03,TS9){XG51};
TS11:=IF(T11=1,TS10+0.03,TS10){XG51};
TS12:=IF(T12,0+0.03,0){XG51};
TS13:=IF(T13=1,TS12+0.03,TS12){XG51};
TS14:=IF(T14=1,TS13+0.03,TS13){XG51};
TS15:=IF(T15=1,TS14+0.03,TS14){XG51};
TS16:=IF(T16=1,TS15+0.03,TS15){XG51};
TS17:=IF(T17=1,TS16+0.03,TS16){XG51};
TS18:=IF(T8=1,TS17+0.03,TS17){XG51};
DRAWTEXT_FIX(T1,0.66,TS1,0,'★主力动向监控:主力增仓'),COLORWHITE{XG51};
DRAWTEXT_FIX(T2,0.66,TS2,0,'★主力动向监控:主力减仓'),COLORLIMAGENTA{XG51};
DRAWTEXT_FIX(T3,0.66,TS3,0,'★主力动向监控:多空平衡'),COLORBROWN{XG51};
DRAWTEXT_FIX(T4,0.66,TS4,0,'★主力动向监控:主力回补'),COLORFF9933{XG51};
DRAWTEXT_FIX(T5,0.66,TS5,0,'★主力动向监控:主力出逃'),COLORCYAN{XG51};
DRAWTEXT_FIX(T6,0.86,TS6,0,'★操作风险提示:买入风险'),COLORBLUE{XG51};
DRAWTEXT_FIX(T7,0.86,TS7,0,'★操作风险提示:卖出风险'),COLORGREEN{XG51};
DRAWTEXT_FIX(T8,0.86,TS8,0,'★操作风险提示:追涨博弈'),COLORWHITE{XG51};
DRAWTEXT_FIX(T9,0.86,TS9,0,'★操作风险提示:稳健持股'),COLORLIMAGENTA{XG51};
DRAWTEXT_FIX(T10,0.86,TS10,0,'★操作风险提示:盘跌减仓'),COLORRED{XG51};
DRAWTEXT_FIX(T11,0.86,TS11,0,'★操作风险提示:杀跌空仓'),COLORCYAN{XG51};
DRAWTEXT_FIX(T12,0.36,TS12,0,'☆特别信号提示:筑底散兵坑 '),COLOR66FFCC{XG51};
DRAWTEXT_FIX(T13,0.36,TS13,0,'☆特别信号提示:铸顶风险区'),COLORGREEN{XG51};
DRAWTEXT_FIX(T14,0.36,TS14,0,'☆特别信号提示:穿越主力 '),COLORWHITE{XG51};
DRAWTEXT_FIX(T15,0.36,TS15,0,'☆特别信号提示:穿越主力 '),COLORBLUE{XG51};
DRAWTEXT_FIX(T16,0.36,TS16,0,'☆特别信号提示:穿越散户 '),COLORCYAN{XG51};
DRAWTEXT_FIX(T17,0.36,TS17,0,'☆特别信号提示:全盘穿越 '),COLOR3399FF{XG51};
DRAWTEXT_FIX(T18,0.36,TS18,0,'☆特别信号提示:神秘黑洞 '),COLOR9966FF{X~G.5?1~C~N~{};

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

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

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

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

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

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