您现在的位置: 南方财富网 >> 股票知识 >> 股票公式 >> 正文
南财搜索

波段主升浪指标公式源码

2011-11-3 20:01:44   来源:本站原创   佚名
    

波段主升浪(双跨越、双蹄奋起)-指标公式源码

HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210,COLORYELLOW;
HHJSJDC:MA(HHJSJDB,5),COLORRED;
MA5:=MA(C,7),COLORWHITE;
MA20:=MA(C,20),COLORFF00FF;
MA90:MA(C,90),COLORFFCC66;
Y1:=BARSLAST(CROSS(MA5,MA20)) AND MA5>MA20;
Y2:=Y1 AND BARSLAST(CROSS(MA5,MA90));
Y3:=Y2 AND CROSS(MA20,MA90);
DRAWICON(Y3,L-0.10,1);
DRAWTEXT(Y3,L-0.40,'双跨越'),COLORMAGENTA;
F0:=BARSLAST(CROSS(MA(C,5),MA(C,90)));
F1:=F0 AND BARSLAST(CROSS(MA(C,20),MA(C,90)));
F2:=F1 AND CROSS(MA(C,5),MA(C,20)) AND MA(C,20)>MA(C,90);
DRAWICON(F2,L-0.10,1);
DRAWTEXT(F2,L-0.40,'双蹄奋起');

MA51:=MA(C,5);
MA10:=MA(C,10);
MA201:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=MA(C,120);
FA:=BARSLAST(CROSS(MA10,MA51)) AND CROSS(MA51,MA10);
FB:=FA AND MA51>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);
STICKLINE(FB,L,L-0.09,1,0),COLORYELLOW;

选股看盘用的副图指标,妙极了

{公式名称:VOL}
{VOL(成交量)显示} { 参数名:M1,2,250,5;M2,2,250,10;M3,2,250,30}
VOL,VOLSTICK;
五日均量线:MA(VOL,M1),colorwhite;
十日均量线:MA(VOL,M2),coloryellow;
三十日均量线:MA(VOL,M3),colorff00ff;
drawtext(Cross(五日均量线,十日均量线) AND 十日均量线<50,五日均量线,'金叉'),coloryellow,linethick2;
drawtext(Cross(五日均量线,三十日均量线) AND 三十日均量线<70,五日均量线,'金叉'),coloryellow,linethick2;
drawIcon(Cross(五日均量线,三十日均量线),十日均量线,1);
drawIcon(Cross(五日均量线,十日均量线),五日均量线,1);
c>ma(c,55) and cross(ma(c,5),ma(c,10)) and v>ma(v,5 ) and ma(v,5)>ma(v,10);
成交量连涨3天:COUNT(VOL>REF(VOL,1),3)=3 ,colorred;
日成交量大于5日:BETWEEN(v,ma(v,5)*0.8,ma(v,5)*6),coloryellow;
五上穿十日金叉:0,colorred;

{买入易涨停主图原码}
{参数:N 1 100 5 LC 1 100 30}
MA5:MA(C,5),COLOR00FF00;
MA10:MA(C,10),COLORFFFFFF;
ZX:=(MA5+MA10)/2;
MA30:MA(C,30),COLORYELLOW;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.8,O,C,6,0),COLORRED;
STICKLINE(ZDF<-9.8,O,C,6,0),COLORBLUE;
QSXS:=MA5>=MA30 AND MA30>REF(MA30,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
买:CROSS(C,ZX) AND (GD OR YB) AND QSXS,COLOR00FF00,POINTDOT,LINETHICK0;
买入易涨停:买 AND MA5>REF(MA5,1),COLORYELLOW,POINTDOT,linethick0;
STICKLINE(买,h,l,0,0),COLOR00FF00,linethick2;
STICKLINE(买,o,c,0,0),COLOR00FF00,linethick2;
STICKLINE(买入易涨停,h,l,0,0),COLORYELLOW,linethick2;
STICKLINE(买入易涨停,o,c,4,0),COLORYELLOW,linethick2;
DRAWTEXT(买,L*0.99, '买'),COLOR00FF00;
DRAWICON(买入易涨停,L,1);
上线:=sma(c,6.5,1);
下线:=sma(c,13.5,1);
上线1:=sma(c,3,1);
下线1:=sma(c,8,1);
DRAWTEXT( cross(上线,下线),low *0.98,'全仓▲买哟' ),color00ff00;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(if(CLOSE<D and VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.98,'▲抄底'),coloryellow;

专吃主升波段的指标【抄底王】
【抄底王】能有效地避开盘整、下跌行情,专吃主升波段,提高资金使用回报率,使用直观简单,非常适合波段操作。
使用方法:在0轴以下或附近由绿转红(红色圈位置)介入一路持有到变黄,当专绿时(绿色全位置)马上卖出。
通达信【抄底王】源码
VAR2:=MA(CLOSE, 5);  

VAR3:=MA(CLOSE, 10);  

VAR4:=MA(CLOSE, 20);  

VAR5:=MA(CLOSE, 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(VAR9>1*REF(VAR9, 1), VAR7, 0, 5, 0), COLOREE00EE;  

持股:STICKLINE(VAR7>1*REF(VAR7, 1), VAR7, VAR9, 5, 0), COLORRED;  

持币:STICKLINE(VAR7<1*REF(VAR7, 1), VAR7, VAR9, 5, 1), COLORGREEN;  

洗盘:STICKLINE(VAR7<1*REF(VAR7, 1) AND VAR9>1*REF(VAR9, 1), VAR7, VAR9, 10, 0), COLOR00EEFF;  

VAR10:=(CLOSE-MA(CLOSE, 58))/MA(CLOSE, 58)*100;  

VAR11:=(VAR10>1*REF(VAR10, 1) AND VAR10<-26 AND VAR10>-40)*1.5;  

VAR12:=VOL/CAPITAL*100;  

VAR13:=LLVBARS(LOW, 50);  

VAR14:=SUM(VOL, VAR13);  

VAR15:=HHVBARS(HIGH, 50);  

VAR16:=SUM(VOL, VAR15);  

VAR17:=(CLOSE-REF(OPEN, VAR15))/REF(OPEN, VAR15)*100;  

VAR18:=VAR16/CAPITAL*100;  

VAR19:=(CLOSE-REF(OPEN, VAR13))/REF(OPEN, VAR13)*100;  

VAR20:=VAR14/CAPITAL*100;  

VAR21:=MA(CLOSE, 3);  

VAR22:=REF(CLOSE, 2)*0.865;  

VAR23:=REF(CLOSE, 13)*0.772;  

VAR24:=MIN(VAR22, VAR23);  

VAR25:=MA(CLOSE, 13);  

抄底王:IF((CLOSE-VAR24)/CLOSE<0.030 AND VAR17<(-35) AND SUM(VAR12, 5)/5<1.800, 1, 0)*10, COLORWHITE;  

DRAWTEXT(抄底王, 抄底王, ' 成功率 90.22 %,共发出指示1289 次.底 追 '), COLORFFAA00;  

VAR26:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;  

VAR27:=(EMA(CLOSE, 12)-EMA(CLOSE, 26))*100;  

VAR28:=EMA(VAR27, 9);  

VAR29:=2*(VAR27-VAR28);  

DRAWTEXT(VAR27<(-50) AND VAR26>7 AND VAR27<VAR28, (-10), '底'), COLORWHITE;  

DRAWTEXT(VAR27<(-50) AND VAR26>7 AND VAR27>=VAR28, 5, '追'), COLORWHITE;  

STICKLINE(VAR27<(-50) AND VAR26>7, 0,(-10), 5, 0), COLORFFFF66; 

{短线天使}
涨跌幅度线:SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10,COLORRED,LINETHICK2;
短线天使:CROSS(涨跌幅度线,0)*15;

{使用要领:
1、涨幅过大时红线拐头向下,预示未来调整。
2、虽然连收红K线,但红线却连续向下最好走为上策。
3、特别注意:公式未经过优化,仅能作为实战参考,请慎用!!!}

捕捉底部形态_通达信指标公式2010最新源码

RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,3,1);
趋势J1:3*K-2*D,COLORRED;
趋势J2:EMA(K,3),LINETHICK1;
IF(趋势J1>=REF(趋势J1,1),趋势J1,DRAWNULL),COLORRED,LINETHICK2;
IF(趋势J1< REF(趋势J1,1),趋势J1,DRAWNULL),COLORBLUE,LINETHICK2;
BBIAS := (CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
抢反弹:= IF(CROSS(K,D) AND BBIAS<-6 AND D<16 AND CLOSE>REF(CLOSE,1),80,0),COLOR00FF00;
DRAWICON(抢反弹=80,趋势J2-0.005,1);
底部动态: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,STICK,COLORRED,LINETHICK2;
DRAWLINE(D>=HHV(D,21),D,D<=LLV(D,21),D,1),COLOR00FF00;
V1:=AMOUNT/VOL/100;
V2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
V3:=SUM(AMOUNT,7)/V1/100;
V4:=DMA(V2,VOL/V3);
V5:=(CLOSE-V4)/V4*100;
V6:=MA(V5,20)+STD(V5,20);
BIAS21:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
STICKLINE(REF(BIAS21,1)>=5 AND CROSS(V6,V5) AND REF("KDJ.J"(34,3,3),1)>80 AND REF("KDJ.J"(9,3,3),1)>80,90,85,5,0),COLO

(南方财富网SOUTHMONEY.COM)

(责任编辑:张晓轩)

    南方财富网声明:股市资讯来源于合作媒体及机构,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。
商务进行时
每日必读
学院24小时排行
证券导读
热图推荐

关于南方财富网版权声明诚聘英才广告服务网站地图友情链接
特此声明:广告商的言论与行为均与南方财富网无关
www.southmoney.com
南方财富网 © 版权所有 闽ICP备09035581号