最强选股战法推荐:
通达信MACD+KDJ金叉共振未加密选股指标公式源码
源码正文:
DRAWGBK(C>0, RGB(1,1,1),RGB(1,1,1),0,'0',0){XG51};
dif:ema(CLOSE,12) - Ema(CLOSE,26),LINETHICK0{XG51};
DEA:EMA(DIF,9),LINETHICK0{XG51};
A1:=BArslAst(REF(crOSS(DIF,DEA),1)){XG51};
B1:=REF(C,A1+1)>C AND REF(DIF,A1+1)<DIF AND CROSS(DIF,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,DIF),1)){XG51};
D1:=REF(C,C1+1)<C AND REF(DIF,C1+1)>DIF AND CROSS(DEA,DIF){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)){XG51};
STICKLINE(B1>0,110,100,3,0),COLORWHITE{XG51};
DRAWTEXT((B1>0),104.5,' macd底背离'),COLORWHITE{XG51};
STICKLINE(D1>0,110,100,3,0),COLORFF8000{XG51};
DRAWTEXT((D1>0),104.5,' MacD顶背离'),COLORFF8000{XG51};
STICKLINE(B2>0,0,-10,3,0),COLORFA00FA{XG51};
DRAWTEXT((B2>0),-6,' KDJ底背离'),COLORFA00FA{XG51};
STICKLINE(D2>0,0,-10,3,0),COLORCYAN{XG51};
DRAWTEXT((D2>0),-6,' KDJ顶背离'),COLORCYAN{XG51};
STICKLINE(B3>0,-20,-10,3,0),COLORBLUE{XG51};
DRAWTEXT((B3>0),-15,' RSI底背离'),COLORBLUE{XG51};
STICKLINE(D3>0,-20,-10,3,0),COLORGREEN{XG51};
DRAWTEXT((D3>0),-15,' RSI顶背离'),COLORGREEN{XG51};
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100{XG51};
K:SMA(RSV,9,3),LINETHICK0{XG51};
D:SMA(K,9,3),LINETHICK0{XG51};
J:3*K-2*D,LINETHICK0{XG51};
A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D){XG51};
STICKLINE(A,0,100,3,0),COLORBLUE{XG51};
DRAWICON(A,92,25);DRAWICON(A,42,25){XG51};
DRAWTEXT(A,93,' ★MACD_KDJ金叉共振'),COLORBLUE{XG51};
DRAWTEXT(A,43,' ★KDJ_MACD金叉共振'),COLORBLUE{XG51};
日DIF:="MACD.DIF#DAY"{XG51};
日DEA:="MACD.DEA#DAY"{XG51};
日死叉:STICKLINE(日DIF<日DEA,80,85,3,0),COLORFF8000{XG51};
日金叉:STICKLINE(日DIF>日DEA,80,85,3,0),COLORWHITE{XG51};
DRAWTEXT(ISLASTBAR,82,'__日MACD'),COLORBLUE{XG51};
周DIF:="MACD.DIF#WEEK"(12,26,9){XG51};
周DEA:="MACD.DEA#WEEK"(12,26,9){XG51};
周死叉:STICKLINE(周DIF<周DEA,70,75,3,0),COLORFF8064{XG51};
周金叉:STICKLINE(周DIF>周DEA,70,75,3,0),COLOR3232FF{XG51};
DRAWTEXT(ISLASTBAR,72,'__周MACD'),COLORBLUE{XG51};
月DIF:="MACD.DIF#MONTH"(12,26,9){XG51};
月DEA:="MACD.DEA#MONTH"(12,26,9){XG51};
月死叉:STICKLINE(月DIF<月DEA,60,65,3,0),COLORFF808C;
月金叉:STICKLINE(月DIF>月DEA,60,65,3,0),COLOR5032FF;
DRAWTEXT(ISLASTBAR,62,'__月MACD'),COLORBLUE{XG51};
N:=1{XG51};
月K:KDJ.K#MONTH,NODRAW,COLORRED,LINETHICK0{XG51};
月D:KDJ.D#MONTH,NODRAW,COLORBLUE,LINETHICK0{XG51};
月J:KDJ.J#MONTH,NODRAW,COLORLIMAGENTA,LINETHICK0{XG51};
周K:KDJ.K#WEEK,NODRAW,COLORRED,LINETHICK0{XG51};
周D:KDJ.D#WEEK,NODRAW,COLORBLUE,LINETHICK0{XG51};
周J:KDJ.J#WEEK,NODRAW,COLORLIMAGENTA,LINETHICK0{XG51};
日K:KDJ.K,NODRAW,COLORRED,LINETHICK0{XG51};
日D:KDJ.D,NODRAW,COLORBLUE,LINETHICK0{XG51};
日J:KDJ.J,NODRAW,COLORLIMAGENTA,LINETHICK0{XG51};
K日金叉:=CROSS(日K,日D) AND (日D<40 OR 日D>60){XG51};
K周金叉:=CROSS(周K,周D) AND (周D<40 OR 周D>60){XG51};
K月金叉:=CROSS(月K,月D) AND (月D<40 OR 月D>60){XG51};
共振KDJ:=(K周金叉 AND K日金叉) OR (K周金叉 AND K月金叉) OR (K日金叉 AND K月金叉)OR (K日金叉 AND
K周金叉 AND K月金叉){XG51};
STICKLINE(共振KDJ,0,50,3,0),COLORBLUE{XG51};
DRAWICON(共振KDJ,42,25){XG51};
DRAWTEXT((K周金叉 AND K日金叉) OR (K周金叉 AND K月金叉) OR (K日金叉 AND K月金叉)OR (K日金叉 AND
K周金叉 AND K月金叉),42,' ★KDJ(日/周/月)共振'),COLORBLUE{XG51};
NOTEXT月K:IF(N=3,月K,DRAWNULL),COLORRED,LINETHICK0{XG51};
NOTEXT月D:IF(N=3,月D,DRAWNULL),COLORBLUE,LINETHICK0{XG51};
NOTEXT月J:IF(N=3,月J,DRAWNULL),COLORLIMAGENTA,LINETHICK0{XG51};
NOTEXT周K:IF(N=2,周K,DRAWNULL),COLORRED,LINETHICK0{XG51};
NOTEXT周D:IF(N=2,周D,DRAWNULL),COLORBLUE,LINETHICK0{XG51};
NOTEXT周J:IF(N=2,周J,DRAWNULL),COLORLIMAGENTA,LINETHICK0{XG51};
NOTEXT日K:IF(N=1,日K,DRAWNULL),COLORRED,LINETHICK0{XG51};
NOTEXT日D:IF(N=1,日D,DRAWNULL),COLORBLUE,LINETHICK0{XG51};
NOTEXT日J:IF(N=1,日J,DRAWNULL),COLORLIMAGENTA,LINETHICK0{XG51};
STICKLINE(日K>=日D,30,35,3,0),COLOR8000FF{XG51};
STICKLINE(日K< 日D,30,35,3,0),COLOR009600{XG51};
DRAWTEXT(ISLASTBAR,27,'__日KDJ'),COLORRED{XG51};
STICKLINE(周K>=周D,20,25,3,0),COLOR803CFF{XG51};
STICKLINE(周K< 周D,20,25,3,0),COLOR3C9600{XG51};
DRAWTEXT(ISLASTBAR,17,'__周KDJ'),COLORRED{XG51};
STICKLINE(月K>=月D,10,15,3,0),COLOR8050FF{XG51};
STICKLINE(月K< 月D,10,15,3,0),COLOR649600{XG51};
DRAWTEXT(ISLASTBAR,7,'__月KDJ'),COLORRED{XG51};
0,LINETHICK1,DOTLINE,COLORRED{XG51};
50,LINETHICK1,COLORRED{XG51};
100,LINETHICK1,DOTLINE,COLORRED{XG51};
DRAwrECTREL(0,0,180,990,RGB(250,0,250)){XG51};
DRAWTEXT_FIX(ISLASTBAR,0.111,0.03,0,'KDJ(日/周/月)'),COLOR00FFFF{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.101,0.18,0,'日K='),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.18,0,日K),COLORFFFFFF{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.101,0.31,0,'日D='),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.31,0,日D),COLORFFFFFF{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.101,0.44,0,'周K='),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.44,0,周K),COLORFFFFFF{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.101,0.57,0,'周D='),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.57,0,周D),COLORFFFFFF{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.101,0.70,0,'月K= '),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.70,0, 月K),COLORFFFFFF{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.101,0.83,0,'月D='),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.140,0.83,0,月D),COLORFFFFFF{XG51};
DRAWRECTREL(0,0,90,990,RGB(220,0,0)){XG51};
DRAWTEXT_FIX(ISLASTBAR,0.023,0.03,0,'MACD(日/周/月)'),COLOR00FFFF{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.01,0.18,0,'日DIF='),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.18,0,日DIF),COLORFFFFFF{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.01,0.31,0,'日DEA='),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.31,0,日DEA),COLORFFFFFF{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.01,0.44,0,'周DIF='),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.44,0,周DIF),COLORFFFFFF{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.01,0.57,0,'周DEA='),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.57,0,周DEA),COLORFFFFFF{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.01,0.70,0,'月DIF= '),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.70,0, 月DIF),COLORFFFFFF{XG51};
DRAWTEXT_FIX(ISLASTBAR,0.01,0.83,0,'月DEA='),COLORFFFFFF{XG51};
DRAWNUMBER_FIX(ISLASTBAR,0.05,0.83,0,月DEA),COLORFFFFFF{X^G~5_1^C^N^{};
通达信底部狂牛未加密选股指标公式源码
源码正文:
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100{XG51};
VAR2:=(CLOSE-ma(CLOSE,6))/MA(CLOSE,6)*100{XG51};
VAR3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100{XG51};
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100{XG51};
VAR5:=(VAR2+2*VAR3+3*VAR4)/6{XG51};
VAR6:=MA(VAR5,3){XG51};
狂牛:VAR6<=-10;
重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。
如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。
选股无忧网是股票软件指标公式分享平台,不开展相关证券业务,平台展示的所有股票资料由网络收集,不保障实时性和真实性,请勿以此为依据进行股票交易。
联系QQ:875328188 | 邮箱:875328188@qq.com
Copyright © 2002-2021 选股无忧网桂ICP备18001383号-7