您现在的位置:程序化交易>> 股票公式>> 大智慧>> 大智慧公式>>正文内容

大智慧牛熊KDJ,MACD,RSI 综合背离通用指标源码[大智慧公式]

相关标签: 阻击牛熊 、 快播熊牛影视 、 牛熊线指标公式源码 、 狙击牛熊万能主图指标 、 熊牛影视8 、 牛熊万能主图指标 、 牛熊分界线 、 牛熊分界线 生命线 、 煮酒论牛熊 、

 

 

月K:"KDJ.K"(89,3,3),Color0080FF;
月D:"KDJ.D"(89,3,3),Color0080FF;
FILLRGN(月K>月D,月K,月D),Color0080FF;
FILLRGN(月K<月D,月K,月D),Color808040;
周K:"KDJ.K"(27,3,3),ColorAA00AA;
周D:"KDJ.D"(27,3,3),ColorAA00AA;
FILLRGN(周K>周D,周K,周D),ColorAA00AA;
FILLRGN(周K<周D,周K,周D),ColorFF8000;
日K:"kd.k"(5,3,3),Color0000FF;
日D:"kd.d"(5,3,3),Color0000FF;
FILLRGN(日K>日D,日K,日D),Color0000FF;
FILLRGN(日K<日D,日K,日D),Color008000;
日金叉:IF(CROSS(日K,日D),50,0),Color0000FF;
DRAWTEXT(日金叉,45,'日叉'),Color0000FF;
周金叉:IF(CROSS(周K,周D),30,0),ColorAA00AA;
DRAWTEXT(周金叉,30,'周叉'),ColorAA00AA;
月金叉:IF(CROSS(月K,月D),20,0),Color0080FF;
DRAWTEXT(月金叉,20,'月叉'),Color0080FF;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('http://www.cxh99.com',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
A1:=BARSLAST(ref(cross(diff,dea),1));
B1:=ref(c,A1+1)>c and ref(diff,A1+1)<diff and cross(diff,dea);
MACD底背:STICKLINE(FILTER(B1>0,5),0,5,3,0),Color00FF00;
DRAWTEXT(FILTER(B1>0,5),10,'MACD\n底背'),Color00FF00;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
A2:=BARSLAST(ref(cross(k,d),1));
B2:=ref(c,A2+1)>c and ref(k,A2+1)<k and cross(k,d);
KDJ底背:STICKLINE(FILTER(B2>0,5),0,8,3,0),COLORYELLOW;
DRAWTEXT(FILTER(B2>0,5),12,'KDJ\n底背'),COLORYELLOW;
LC :=ref(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(ref(cross(RSI1,RSI2),1));
B3:=ref(c,A3+1)>c and ref(RSI1,A3+1)<RSI1 and cross(RSI1,RSI2);
RSI底背:STICKLINE(FILTER(B3>0,5),0,10,3,0),ColorFFFF00;
DRAWTEXT(FILTER(B3>0,5),5,'RSI\n底背'),ColorFFFF00;
C1:=BARSLAST(ref(cross(dea,diff),1));
D1:=ref(c,C1+1)<c and ref(diff,C1+1)>diff and cross(dea,diff);
MACD顶背:STICKLINE(FILTER(D1>0,5),100,85,3,0),ColorFF8000; {本文来至CXH99.COM}
DRAWTEXT(FILTER(D1>0,5),87,'MACD\n顶背'),ColorFF8000;
C2:=BARSLAST(ref(cross(d,k),1));
D2:=ref(c,C2+1)<c and ref(k,C2+1)>k and cross(d,k);
KDJ顶背:STICKLINE(FILTER(D2>0,5),100,80,3,0),ColorC0C0C0;
DRAWTEXT(FILTER(D2>0,5),72,'KDJ\n顶背'),ColorC0C0C0;
C3:=BARSLAST(ref(cross(RSI2,RSI1),1));
D3:=ref(c,C3+1)<c and ref(RSI1,C3+1)>RSI1 and cross(RSI2,RSI1);
RSI顶背:STICKLINE(FILTER(D3>0,5),100,75,3,0),ColorFFFF80;
DRAWTEXT(FILTER(D3>0,5),78,'RSI\n顶背'),ColorFFFF80;
0,colorffa2af;
20,colorffa2af,pointdot;
50,colorffa2af;
80,colorffa2af,pointdot;
100,colorffa2af;
xg:(日金叉 and 周金叉 and 月金叉)*80;

 

 

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流进行 有偿 编写!不贵!点击查看价格!

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容