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

大智慧股票公式之无敌均线

2013/6/18 16:44:46   来源:本站原创   佚名
    

大智慧股票公式之无敌均线

  无敌均线

  INPUT:N1(5,0,999),N2(10,0,999),N3(20,0,999),N4(30,0,999),N5(60,0,999),N6(120,0,999),N日(8,1,20),K线(2,1,9);

  MA1:MA(CLOSE,N1);

  MA2:MA(CLOSE,N2);

  MA3:MA(CLOSE,N3);

  MA4:MA(CLOSE,N4);

  MA5:MA(CLOSE,N5);

  MA6:MA(CLOSE,N6);

  连红:LAST(CLOSE>OPEN),PRECIS0,color0000FF,linethick0;

  连绿:LAST(CLOSE<OPEN),PRECIS0,color00FF00,linethick0;

  x9:FORCAST(c,9),Colorwhite,LINETHICK2;

  llx:=llv(FORCAST(c,9),2);

  PARTLINE(x9,x9=llx,rgb(255,205,0),x9<>llx,rgb(255,0,0)),linethick2;

  {13}

  STICKLINE(CLOSE>OPEN,OPEN,LOW,1,0 ),COLOR0022FF; {收盘价>开盘价,从开盘价到最低价用红色}

  STICKLINE(CLOSE>OPEN,CLOSE,HIGH,1 ,0 ),COLOR0022FF;{收盘价>开盘价,从收盘价到最高价用红色}

  {16}

  STICKLINE(CLOSE<=OPEN,CLOSE,LOW,1 ,0 ),Color00E100;{收盘价<=开盘价,从收盘价到最低价用绿色}

  STICKLINE(CLOSE<=OPEN,OPEN,HIGH,1 ,0 ),Color00E100;{收盘价<=开盘价,从开盘价到最高价用绿色}

  {19}

  STICKLINE(CLOSE<=OPEN ,CLOSE ,OPEN,7.5,0 ),color003300;{收盘价<=开盘价,从收盘价到开盘价用绿色}

  STICKLINE(CLOSE<=OPEN ,CLOSE ,OPEN,6,0 ),color005500;

  STICKLINE(CLOSE<=OPEN ,CLOSE ,OPEN,5,0 ),color007700;

  STICKLINE(CLOSE<=OPEN ,CLOSE ,OPEN,4,0 ),color009900;

  STICKLINE(CLOSE<=OPEN ,CLOSE ,OPEN,2.5,0 ),color00bb00;

  STICKLINE(CLOSE<=OPEN ,CLOSE ,OPEN,1,0 ),Color00E100;

  {26}

  STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7.5,0) ,COLOR000033;{收盘价>开盘价,从开盘价到收盘价用红色}

  STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;

  STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000088;

  STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR0000BB;

  STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.5,0) ,COLOR0000EE;

  STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff;

  {33}

  var9Q:=c= hhv(c,4)and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3)) or ref(c,1)=hhv(c,4) and close>=ref(c,2) or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c>=ref(c,1) or ref(c,3)=hhv(c,4) and c>=ref(c,1) and c>=ref(c,2);

  STICKLINE(var9Q,c,(o+c)/2,7.5,0),color000033;{符合上述条件,从收盘价到中间用红色}

  STICKLINE(var9Q,c,(o+c)/2,6,0),color000066;

  STICKLINE(var9Q,c,(o+c)/2,5,0),color000088;

  STICKLINE(var9Q,c,(o+c)/2,4,0),color0000BB;

  STICKLINE(var9Q,c,(o+c)/2,2.5,0),color0000EE;

  STICKLINE(var9Q,c,(o+c)/2,1,0),color0000FF;

  {41}

  varaQ:=c=hhv(c,4) and ref(c,1)=llv(c,4);

  STICKLINE(varaQ,c,(o+c)/2,7.5,0),Color4D0099;{符合上述条件,从收盘价到中间用玫红色}

  STICKLINE(varaQ,c,(o+c)/2,6,0),Color5F00BD;

  STICKLINE(varaQ,c,(o+c)/2,5,0),Color6500CA;

  STICKLINE(varaQ,c,(o+c)/2,4,0),Color7600EC;

  STICKLINE(varaQ,c,(o+c)/2,2.5,0),Color9933FF;

  STICKLINE(varaQ,c,(o+c)/2,1,0),ColorAD5BFF;

  {49}

  varbQ:=c=llv(c,4) and (ref(c,1)<ref(c,2) or ref(c,1)<ref(c,3)) or ref(c,1)=llv(c,4) and c<ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<>hhv(c,4) and c<ref(c,1) or ref(c,3)=llv(c,4) and c<ref(c,1) and c<ref(c,2);

  STICKLINE(varbQ,c,(o+c)/2,7.5,0),color333333;{符合上述条件,从收盘价到中间用银色}

  STICKLINE(varbQ,c,(o+c)/2,6,0),color666666;

  STICKLINE(varbQ,c,(o+c)/2,5,0),color888888;

  STICKLINE(varbQ,c,(o+c)/2,4,0),colorBBBBBB;

  STICKLINE(varbQ,c,(o+c)/2,2.5,0),colorEEEEEE;

  STICKLINE(varbQ,c,(o+c)/2,1,0),colorffffff;

[1] [2] 下一页

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

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