设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

大智慧大盘人气指标公式源码是什么?

2016-4-28 13:12:04 股票入门 http://rumen.southmoney.com

 大智慧大盘人气指标公式源码是什么?附:大智慧牛熊KDJ,MACD,RSI 综合背离通用指标源码  南方财富网小编为您提供


【大智慧大盘人气指标公式源码】

({大盘人气注解}
1.红、兰柱表示大盘的人气量。
2.白色空心柱表示20个工作日内最低的人气量。该空心柱出现时,暗隐反弹时机即将到来。
3.一级和二级警戒线用2条白色虚线显示,当红柱或兰柱突破警戒线时,则需要注意大盘可能有回落迹象。
4.大盘上升或盘整过程中,红柱或兰柱突然冲破“二级警戒线”,表明或有回落现象;大盘在急速上升过程中,红柱或兰柱突然冲破“一级警戒线”,表明或有较大的调整幅度。)
{大盘人气源码}
{大盘人气量}
大盘人气量:sum(ADVANCE,5)/SUM(DECLINE,5)*20, VOLSTICK;
{20日最小量}
stickline(大盘人气量=llv(大盘人气量,20),0,大盘人气量,4,0),colorwhite;
{警戒线}
一级警戒线:75,DOTLINE,precis0,colorwhite;
二级警戒线:41,DOTLINE,precis0,colorwhite;

大智慧指标公式

附:【大智慧牛熊KDJ,MACD,RSI 综合背离通用指标源码】

月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(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; 
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;

更多大智慧指标公式相关资讯请关注南方财富网

PS:图片看不清的朋友,可以自行调整噢!

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。