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

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

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

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

通达信公式

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

通达信MACD优化自编未加密选股指标公式源码

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

通达信MACD优化自编未加密选股指标公式源码

通达信MACD优化自编未加密选股指标公式源码

源码正文:

difF:ma(CLOSE,12)-MA(CLOSE,26),COLORFFFFFF,LINETHICK2,COLORFF7F00{XG51};
DEA:MA(DIFF,9),COLOR00FFFF,LINETHICK2,COLORFF7F00{XG51};
DRAWBAND(DIFF,RGB(155,50,50),DEA,RGB(0,100,50)){XG51};
macd:2*(DIFF-DEA), COLORstICK,LINETHICK1{XG51};
抄底:IF((TROUGHBARS(3,15,1)=0) AND (HIGH>LOW+0.01),0.15,(-0)),COLOR00FF00,LINETHICK1{XG51};
中区:0,COLORBLUE,LINETHICK1{XG51};
动力:MA(MacD,5),COLORBLUE,LINETHICK2{XG51};
主动:IF(MACD>=动力 AND 动力<=中区,动力,DRAWNULL),COLORBLUE,LINETHICK2{XG51};
主拉:IF(动力>=中区,动力,DRAWNULL),COLORWHITE,LINETHICK2{XG51};
翻空:IF(动力<中区 AND 动力>MACD,动力,DRAWNULL),COLORCYAN,LINETHICK2{XG51};
中区10:0,COLORFFFF00,LINETHICK1{XG51};
动力10:MA(MACD,10),COLORFFFF00,LINETHICK2{XG51};
主动10:IF(MACD>=动力10 AND 动力10<=中区10,动力10,DRAWNULL),COLORFFFF00,LINETHICK2{XG51};
主拉10:IF(动力10>=中区10,动力10,DRAWNULL),COLORFF43B9,LINETHICK2{XG51};
翻空10:IF(动力10<中区10 AND 动力10>MACD,动力10,
DRAWNULL),COLOR00FF00,LINETHICK2{XG51};
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1,0),COLORWHITE{XG51};
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1,0),COLORWHITE{XG51};
STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,1,0),COLORCYAN{XG51};
STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,1,0),COLORCYAN{XG51};
沉:IF(DIFF>=DEA,DIFF,DRAWNULL),COLORWHITE{XG51};
着:IF(DEA>=DIFF,DEA,DRAWNULL),COLORFF9900{XG51};
冷:IF(DIFF>=DEA,DEA,DRAWNULL),COLOR00FFFF{XG51};
静:IF(DEA>=DIFF,DIFF,DRAWNULL),COLOR00FF00{XG51};
AA:=BArslAST(REF(crOSS(DIFF,DEA),1)){XG51};
BB:=REF(CLOSE,AA+1)>CLOSE AND DIFF>REF(DIFF,AA+1) AND CROSS(DIFF,DEA){XG51};
乐:DRAWLINE(AA=0,DEA,BB,DEA,0),COLOR0000FF{XG51};
STICKLINE(BB,-0.2,0.2,0,1),COLORFFFFFF{XG51};
主升: DIFF>0 AND DIFF>DEA,COLOR0000FF,POINTDOT,NODRAW{XG51};
STICKLINE(主升,DIFF,DEA,5,0),COLORFF00FF{XG51};
DRAWICON(CROSS(DIFF,DEA),DIFF,1){XG51};
DRAWICON(CROSS(DEA,DIFF),DEA,2){X_G^5+1_C_N_{};

通达信MACD优化自编未加密选股指标公式源码

通达信来吧波段主图未加密选股指标公式源码

源码正文:

【箱顶】:PEAK(CLOSE,10,1)*0.98,LINETHICK5{XG51};
【箱底】:TROUGH(CLOSE,10,1)*1.02,LINETHICK5{XG51};
【箱高】:100*(【箱顶】-【箱底】)/【箱底】,NODRAW{XG51};
VAR1:=ema(C,3){XG51};
VAR2:=Ema(C,5){XG51};
VAR3:=EMA(C,10){XG51};
VAR4:=EMA(C,20){XG51};
VAR5:=EMA(C,30){XG51};
VAR6:=(VAR2+VAR3+VAR4+VAR5)/4{XG51};
VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100{XG51};
VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100{XG51};
VAR9:=EMA(VAR7,8){XG51};
stICKLINE(VAR7<1*REF(VAR7,1),H,L,0.5,0),COLORYELLOW{XG51};
STICKLINE(VAR7<1*REF(VAR7,1),O,C,5, 1),COLORYELLOW{XG51};
STICKLINE(VAR7>1*REF(VAR7,1),H,L,0.5,0),COLORWHITE{XG51};
STICKLINE(VAR7>1*REF(VAR7,1),O,C,5, 1),COLORWHITE{XG51};
STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),H,L,0.5,0),COLORCYAN{XG51};
STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),O,C,5, 1),COLORCYAN{XG51};
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004{XG51};
买进条件:=crOSS(C,买进价) AND 买进价>REF(买进价,1){XG51};
STICKLINE(买进条件,H,L,0.5,1),COLORRED,LINETHICK2{XG51};
STICKLINE(买进条件,O,C,6,0),COLORRED,LINETHICK2{XG51};
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004{XG51};
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1){XG51};
STICKLINE(加码条件,H,L,0.5,1),COLORBLUE,LINETHICK2{XG51};
STICKLINE(加码条件,O,C,6,0),COLORBLUE,LINETHICK2{XG51};
V1:EMA(CLOSE,5){XG51};
V2:EMA(EMA(CLOSE,29)*1.01,10){XG51};
LC:=REF(CLOSE,1){XG51};
rsi:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100{XG51};
逃 :IF(CROSS(84,RSI) , HIGH,HIGH+1),POINTDOT,LINETHICK7,COLORBLUE ;HIGH+1,POINTDOT,LINETHICK7,COLOR000000{XG51};
difF:=EMA(CLOSE,12) - EMA(CLOSE,26){XG51};
DEA:=EMA(DIFF,9){XG51};
macd:=2*(DIFF-DEA){XG51};
A1:=BArslAST(REF(CROSS(DIFF,DEA),1)){XG51};
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA){XG51};
A2:=BARSLAST(REF(CROSS("kdj.K"(9,3,3),"kdJ.D"(9,3,3)),1)){XG51};
B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)){XG51};
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1)){XG51};
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)){XG51};
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1)){XG51};
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF){XG51};
C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1)){XG51};
D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)){XG51};
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1)){XG51};
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)){X.G_5_1.C.N.{};

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

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

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

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

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

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