设为首页加入收藏

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

股票的公式有哪些?大智慧彩虹量价副图公式源码

2016-6-7 10:09:50 股票入门 http://rumen.southmoney.com

股票的公式有哪些大智慧彩虹量价副图公式源码 附:大智慧波浪在线主图公式源码 南方财富网小编为您提供


【大智慧彩虹量价副图公式源码】

WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">{彩虹动向}
DRAWGBK((C> 0),STRIP(RGB(10,10,30),RGB(10,10,10),0));
 DRAWTEXTABS(5,3,STKLABEL+' '+STKNAME+''),Color00DDFF;
 V1:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*300;
黄柱主力量能:stickline(V1>0,V1,0,4,0),color00CCFF;
 {STICKLINE(V1>0,0,V1,8,0),COLOR00AAFF;
 STICKLINE(V1>0,0,V1,6,0),color00BBFF;}
 STICKLINE(V1>0,0,V1,4.4,0),COLOR00CCFF;
 STICKLINE(V1>0,0,V1,3.3,0),COLOR00DDFF;
 STICKLINE(V1>0,0,V1,2,0),COLOR00EEFF;
 STICKLINE(V1>0,0,V1,1,0),COLOR00FFFF;

{筹码定义和显示}
A33:=EMA(IF(L<= LLV(L,40),SMA(ABS(L-REF(L,1)),40,1)/SMA(MAX(L-REF(L,1),0),40,1),0),3)*10;
庄家吸筹留踪影:STICKLINE(A33,0,A33,6,0),ColorEF7B12,LAYER1;
 STICKLINE(A33,0,A33,4,0),ColorF08728,LAYER1;
 STICKLINE(A33,0,A33,2,0),ColorF29540,LAYER1;
 STICKLINE(A33,0,A33,1,0),ColorF5A963,LAYER1;

红包:= IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,10,-5);
 PP:= 红包=10 AND A33>10;
价格线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*300,linethick2,colorred,LAYER0;
 STICKLINE(PP,价格线,A33,3,0),Color00CCFF,LAYER0;
 STICKLINE(PP,价格线,价格线+10,3,0),Color485AFB,LAYER0;
 STICKLINE(PP,A33-10,A33,3,0),Color485AFB,LAYER0;
参考线:EMA(价格线,6),COLORFFFF00,DOTLINE,LAYER1;
 DRAWTEXT(PP,-10,'底部起飞'),COLORWHITE,ALIGN1,VALIGN1,LINETHICK1;
 DRAWICON(PP,价格线-5,1),layer0,ALIGN1,VALIGN1;


 lna:=SMA(vol,5,1);
 wr1:=100-200*(HHV(Hhv(lna,1),14)-lna)/(HHV(Hhv(lna,1),14)-LLV(Llv(lna,1),14));
 wr2:=100-200*(HHV(Hhv(lna,1),34)-lna)/(HHV(Hhv(lna,1),34)-LLV(Llv(lna,1),34));
 wr3:=100-200*(HHV(Hhv(lna,1),55)-lna)/(HHV(Hhv(lna,1),55)-LLV(Llv(lna,1),55));
量能趋势:(wr1+wr2+wr3)/3,COLORF08728,linethick2,LAYER0;

RSI5:=(SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1))/(SMA(ABS(CLOSE-REF(CLOSE,1)),3,1))*100;
 WR10:=100*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
活跃度:(RSI5-WR10)/5,LINETHICK0,ColorWHITE;

STICKLINE(活跃度>0,-30,-30+活跃度,2,1),COLORFF00FF;
 STICKLINE(活跃度<0,-30,-30+活跃度,2,0),COLOR808080;
 STICKLINE(活跃度>13 AND 活跃度<16,-30,-30+活跃度,2,0),COLORFFFF00;
 STICKLINE(活跃度>16,-30,-30+活跃度,2,0),COLORGREEN;{危险}

{以下设置强弱区域提示}
M3:=MA(C,3);
 M5:=MA(C,5);
 N1:=BARSLAST(CROSS(M3,M5));
 N2:=BARSLAST(CROSS(M5,M3));
 N:=IF(N1<N2,N1+1,0-N2-1);
强势区:STICKLINE(N>0,0-100,0-90,10,0),COLOR0000FF;
弱势区:STICKLINE(N<0,0-100,0-110,10,0),Color808080;
 DRAWTEXTABS(100,3,'【量增价平=看多信号 量增价升=买入信号 量平价升=持续买入 量减价升=继续持有 量减价平=警戒信号 '),LINETHICK1,colorwhite;
 DRAWTEXTABS(700,3,'量减价跌=卖出信号 量平价跌=继续卖出 量增价跌=高位空仓,低位弃卖观望】'),COLORYELLOW;

附:【大智慧波浪在线主图公式源码】

Var1:=EMA(C,3);
Var2:=EMA(C,5);
Var3:=EMA(C,10);
Var4:=EMA(C,20);
Var5:=EMA(C,30);
Var6:=(Var2+Var3+Var4+Var5)/4;
Var7:=(Var6-REF(Var6,15))/REF(Var6,15)*100;
Var8:=(Var6-REF(Var6,15))/REF(Var6, 15)*100;
Var9:=EMA(Var7,8);
STICKLINE(Var7<1*REF(Var7,1),h,l,0.5,0),COLORBLUE;{蓝-持币}
STICKLINE(Var7<1*REF(Var7,1),o,c,5, 1),COLORBLUE;
STICKLINE(Var7>1*REF(Var7,1),h,l,0.5,0),COLORRED;{红-持股}
STICKLINE(Var7>1*REF(Var7,1),o,c,5, 1),COLORRED;
STICKLINE(Var7<1*REF(Var7,1) AND Var9>1*REF(Var9,1),h,l,0.5,0),COLORGREEN;{绿-洗盘}
STICKLINE(Var7<1*REF(Var7,1) AND Var9>1*REF(Var9,1),o,c,5, 1),COLORGREEN;
买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;
买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);
STICKLINE(买进条件,h,l,0.5,1),colorwhite,linethick2;{白-买进}
STICKLINE(买进条件,o,c,6,0),colorwhite,linethick2;
加码价:=((c-ref(ma(c,18),1))/18+ma(c,18))*1.004;
加码条件:=cross(c,加码价) and 加码价>ref(加码价,1);
STICKLINE(加码条件,h,l,0.5,1),coloryellow,linethick2;{黄-加码}
STICKLINE(加码条件,o,c,6,0),coloryellow,linethick2;
X1:EMA(C,7),color0088ff;
X2:EMA(c,21),coloree00ee;
X3:EMA(X2,21),colorwhite;
x4:ema(x3,27),color009900;
x5:ema(x2,100),colorFFAA00;
x6:ema(x5,100),color009999;
v1:ema(close,5);
v2:ema(ema(close,29)*1.01,10);
DRAWICON(cross(v1,v2),v2,1);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
逃 :if(CROSS(84,RSI) , HIGH,high+1),pointdot,linethick7,COLORYELLOW ;high+1,pointdot,linethick7,COLOR000000;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
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);
DRAWICON(FILTER(B1>0,5),L*0.94,10);
DRAWTEXT(FILTER(B1>0,5),L*0.94,'M底'),COLORGREEN;{MACD背离}
A2:=BARSLAST(REF(CROSS(".K"(9,3,3),".D"(9,3,3)),1));
B2:=REF(C,A2+1)>C AND REF(".K"(9,3,3),A2+1)<".K"(9,3,3) AND CROSS(".K"(9,3,3),".D"(9,3,3));
DRAWICON(FILTER(B2>0,5),L*0.96,10);
DRAWTEXT(FILTER(B2>0,5),L*0.96,'K底'),COLORYELLOW;{底背离}
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
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));
DRAWICON(FILTER(B3>0,5),L*0.98,10);
DRAWTEXT(FILTER(B3>0,5),L*0.98,'R底'),COLORFFFF00;{RSI底背离}

C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
DRAWICON(FILTER(D1>0,5),H*1.07,12);
DRAWTEXT(FILTER(D1>0,5),H*1.07,'M顶'),COLOR0066FF;{MACD顶背离}
C2:=BARSLAST(REF(CROSS(".D"(9,3,3),".K"(9,3,3)),1));
D2:=REF(C,C2+1)<C AND REF(".K"(9,3,3),C2+1)>".K"(9,3,3) AND CROSS(".D"(9,3,3),".K"(9,3,3));
DRAWICON(FILTER(D2>0,5),H*1.05,12);
DRAWTEXT(FILTER(D2>0,5),H*1.05,'K顶'),COLORRED;{顶背离}
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
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));
DRAWICON(FILTER(D3>0,5),H*1.03,12);
DRAWTEXT(FILTER(D3>0,5),H*1.03,'R顶'),COLORFF00FF;{RSI顶背离}

更多股票公式相关资讯请关注南方财富网

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