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

通达信股票公式之黄金罗盘

2013/11/19 14:39:51   来源:本站原创   佚名
    

通达信股票公式黄金罗盘

  VAR1:=(C+H+O+L)/4;

  卖出:=XMA(VAR1,N)*(1+P1/1000),COLORFFFFFF,LINETHICK3;

  买入:=XMA(VAR1,M)*(1-P2/1000),COLOR0000FF,LINETHICK3;

  DRAWBAND(卖出,RGB(200,50,55),卖出*1.03,RGB(0,100,50));

  DRAWBAND(买入,RGB(0,55,0),买入*0.97,RGB(55,55,0));

  幅度:100*(卖出-买入)/买入,NODRAW;

  MA1:=MA(VAR1,3);

  STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;

  STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;

  STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;

  STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;

  STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;

  STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;

  STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;

  STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA;

  DRAWTEXT(CROSS(C,卖出),卖出*1.05,'卖出'),COLOR00FFFF;

  机会来临:=REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0,LINETHICK2;

  RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

  K2:=REF(MA(RSV2,3),1)+(RSV2-REF(MA(RSV2,3),1))/3;

  D2:=REF(MA(K2,3),1)+(K2-REF(MA(K2,3),1))/3;

  J2:=3*K2-2*D2;

  BB1:=EMA(J2,5);

  BB2:=REF(BB1,1);

  金叉:=CROSS(BB1,BB2);

  DRAWTEXT(CROSS(C,买入) AND BB1>BB2 AND C>REF(O,2),买入*0.95,'买入'),COLOR0000FF;

  DRAWICON(CROSS(C,买入) AND 金叉 AND 机会来临 ,LOW*0.96,26);

  DRAWTEXT(CROSS(C,买入) AND 金叉 AND 机会来临,LOW*0.92,'【绝杀点--指标超市】'),COLOR00FF00;

  寸土寸金(副图)

  RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

  K2:=REF(MA(RSV2,3),1)+(RSV2-REF(MA(RSV2,3),1))/3;

  D2:=REF(MA(K2,3),1)+(K2-REF(MA(K2,3),1))/3;

  J2:=3*K2-2*D2;

  BB1:=EMA(J2,5);

  BB2:=REF(BB1,1);

  QQ:BB1;

  STICKLINE(K2<D2,100,0,8,0),COLORA8A8A8;

  STICKLINE(K2>=D2,100,0,8,0 ),COLOR38B0DE;

  STICKLINE(BB1>BB2,BB1,BB2,5,0),COLOR000085;

  STICKLINE(BB1>BB2,BB1,BB2,3,0),COLOR0000C5;

  STICKLINE(BB1>BB2,BB1,BB2,1,0),COLOR0000E5;

  STICKLINE(BB1<=BB2,BB1,BB2,5,0),COLOR555500;

  STICKLINE(BB1<=BB2,BB1,BB2,3,0),COLOR757500;

  STICKLINE(BB1<=BB2,BB1,BB2,1,0),COLOR858500;

  大浪淘金(副图)

  VAR6:=(2*CLOSE+HIGH+LOW)/4;

  VAR8:=LLV(LOW,34);

  VARB:=HHV(HIGH,34);

  BB:=EMA((VAR6-VAR8)/(VARB-VAR8)*100,13);

  VARC:=EMA(0.667*REF(BB,1)+0.333*BB,2);

  波:BB,POINTDOT,COLOR0000A8;

  RSV1:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;

  K1:=SMA(RSV1,13,1);

  D1:=SMA(K1,13,1);

  浪:EMA(D1,3),POINTDOT,COLORYELLOW;

  STICKLINE((BB-VARC>0),BB,VARC,5,0),COLOR0000C0;

  STICKLINE((BB-VARC>0),BB,VARC,4,0),COLOR0000E0;

  STICKLINE((BB-VARC>0),BB,VARC,3,0),COLOR0000F0;

  STICKLINE((BB-VARC>0),BB,VARC,2,0),COLOR0000D0;

  STICKLINE((BB-VARC>0),BB,VARC,1,0),COLOR0000FF;

  STICKLINE((BB-VARC<0),BB,VARC,5,0),COLOR00B500;

  STICKLINE((BB-VARC<0),BB,VARC,4,0),COLOR00C600;

  STICKLINE((BB-VARC<0),BB,VARC,3,0),COLOR00D500;

  STICKLINE((BB-VARC<0),BB,VARC,1,0),COLOR00E600;

  STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EMA(D1,3),1),8,0),COLORFF5D00;

  STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EMA(D1,3),1),7,0),COLORFF5D10;

  STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EMA(D1,3),1),6,0),COLORFF7710;

  STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EMA(D1,3),1),5,0),COLORFF8810;

  STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EMA(D1,3),1),4,0),COLORFF9910;天界:80,POINTDOT,COLORF00FF0;

  中界:50,POINTDOT,COLORWHITE;

  地界:20,COLOR00FF00,POINTDOT;

  VAR1:=(HIGH+LOW+CLOSE)/3;

  VAR2:=(VAR1-MA(VAR1,14))/(0.015*AVEDEV(VAR1,14));

  VAR28:=IF(DATE<=1120930,1,0);

  VAR3:=(VAR1-MA(VAR1,70))/(0.015*AVEDEV(VAR1,70));

  VAR4:=IF(VAR2>=150 AND VAR2<200 AND VAR3>=150 AND VAR3<200,10,0);

  VAR5:=IF(VAR2<=-150 AND VAR2>-200 AND VAR3<=-150 AND VAR3>-200,-10,VAR4);

  VAR16:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;

  VAR7:=100-ABS(VAR16);

  VAR18:=IF(VAR7<90,VAR7,100);

  PJX:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;

  短期强弱:=PJX*VAR28,LINETHICK2,COLORFFFFFF;

  机构买卖 (副图)

  A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);

  机构线:EMA(A1,5),LINETHICK2,COLOR6600FF;

  A2:=(机构线-REF(机构线,1))/REF(机构线,1)*100;

  A3:=EMA(C,5);

  A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;

  趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;

  A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;

  DRAWTEXT(FILTER(REF(机构线,1)>90 AND A2<0,7),机构线,'逐步抛'),COLOR00FF00;

  DRAWTEXT(CROSS(A1,机构线)AND 机构线<A5,机构线,'买入');

  DRAWTEXT(CROSS(机构线,A5)AND 趋势线<80,机构线,'追买'),COLOR558899;

  底部:=(A2<-10 AND A2>REF(A2,1))*25,COLORRED,LINETHICK2;

  机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0,LINETHICK2;

  大势已去:IF(CROSS(机构线,A1)AND 机构线>70 AND 趋势线>80,90,100),COLORFF9900,LINETHICK2;

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

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