您現(xiàn)在的位置: 南方財富網(wǎng) >> 股票知識 >> 股票公式 >> 正文
南財搜索

大智慧股票公式之無敵均線

2013/6/18 16:44:46   來源:本站原創(chuàng)   佚名
    

大智慧股票公式之無敵均線

  無敵均線

  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] 下一頁

(南方財富網(wǎng)SOUTHMONEY.COM)
    南方財富網(wǎng)聲明:股市資訊來源于合作媒體及機構(gòu),屬作者個人觀點,僅供投資者參考,并不構(gòu)成投資建議。投資者據(jù)此操作,風險自擔。
延伸閱讀
商務進行時
每日必讀
學院24小時排行
證券導讀
熱圖推薦

關(guān)于南方財富網(wǎng) -版權(quán)聲明誠聘英才廣告服務網(wǎng)站地圖友情鏈接
特此聲明:廣告商的言論與行為均與南方財富網(wǎng)無關(guān)
rmkc.cn
南方財富網(wǎng) © 版權(quán)所有 閩ICP備09035581號