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

飛狐主圖指標(biāo)--"唯我獨(dú)尊"

2013/9/13 16:15:11   來(lái)源:本站原創(chuàng)   佚名
    

  飛狐主圖指標(biāo)--"唯我獨(dú)尊",轉(zhuǎn)給大家參考(有未來(lái)函數(shù),慎用)!

  源碼:

  {n1=30 n2=17 n3=5}

  {震倉(cāng)}

  Var1:=EMA(CLOSE,N1)-EMA(CLOSE,N2);

  Var2:=EMA(Var1,N3);

  zc:=CROSS(Var1,Var2) AND TROUGHBARS(3,7,1)<1;

  DRAWTEXT(zc,h+0.2,'㊣'),coloryellow,align0;

  DRAWTEXT(zc,l,'震倉(cāng)*'),coloryellow,align0;

  空:=eMA(C,1);

  多:=emA(C,5);

  x:if(空>=多,多,空);

  partline(空>多,x),colorred,linethick2;

  partline(空<多,x),colorgreen,linethick2;

  partline(空<多,多),LINETHICK2,colorgreen;

  {轉(zhuǎn)向}

  中:=ema(c,21);

  轉(zhuǎn)向:=REF(中,1);

  x1:=(3*C+H+L+O)/6;

  x2:=EMA(x1,10);

  x3:=REF(x2,1);

  partline(x2>x3,轉(zhuǎn)向),circledot,LINETHICK5,colorred;

  partline(x2<x3,轉(zhuǎn)向),circledot,LINETHICK5,colorgray;

  {趨勢(shì)線}

  Var1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);

  Var2:=CROSS(Var1,0.9);

  Var3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);

  Var4:=CROSS(Var3,0.9);

  Var5:=IF(Var2,HIGH,IF(Var4,LOW,0));

  趨勢(shì)線:=zig(3,6),COLORAAAAAA;

  DRAWTEXT(CROSS(REF(ZIG(3,6),1),ZIG(3,6)),HIGH*1.008,'跑*') ,align0, COLORgray,linethick1;

  DRAWTEXT(CROSS(ZIG(3,6),TROUGHBARS(3,6,1)),HIGH*1.008,'加倉(cāng)*') ,align0, COLOryellow,linethick1;

  Var6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),3);

  Var7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);

  Var8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)

  AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3);

  Var9:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);

  VarA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),3);

  VarB:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)

  AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3);

  壓力: REF(HIGH,BARSLAST(Var2)), POINTDOT,ColorEA91B5;

  STICKLINE(CLOSE,REF(HIGH,BARSLAST(Var2)),REF(HIGH,BARSLAST(Var2)),5,0),ColorEA91B5;

  支撐: REF(LOW,BARSLAST(Var4)), POINTDOT,Color00b4ff;

  sTICKLINE(CLOSE,REF(LOW,BARSLAST(Var4)),REF(LOW,BARSLAST(Var4)),5,0),Color00b4ff;

  現(xiàn)價(jià):CLOSE,POINTDOT,Color000F89;

  drawtext(barpos=sysparam(2),h,'\n所屬塊:'+BLKNAME),ALIGN4,COLORYELLOW;

  drawtext((TROUGHBARS(3,15,1)=0) AND (HIGH>LOW+0.01),l-0.2,'買(mǎi)'),align0,colorred;;

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

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