首頁 > 股票投資 > 股票技術(shù)指標(biāo)公式 > 正文

UZ百分比線股票公式源碼分享

來源:【贏家江恩】責(zé)任編輯:zhangxueli添加時(shí)間:2017-11-23 09:42:44
  股票指標(biāo)公式有很多,其中有一種UZ百分比線指標(biāo),是飛狐軟件中的指標(biāo),也深受很多朋友的喜歡,那究竟UZ百分比線股票公式源碼是怎么樣的?如果想要得到這個(gè)源碼的話,那今天贏家財(cái)富網(wǎng)的主編人員就來為大家分享下。

  UZ百分比線是怎么樣的?如下圖所示,通過股票的上漲幅度,畫出顯影的角度線,這樣我們就可以看清股票走勢(shì)的壓力與支撐,它與我們贏家江恩的軟件江恩角度線是相似的。但是又是不同的。如下圖所示。

UZ百分比線.jpg

  【UZ百分比線公式源碼】

  M:=(SYSPARAM(4)-SYSPARAM(5))/(SYSPARAM(3)-SYSPARAM(2));

  QD:=SYSPARAM(2);

  CCC:=IF(BARPOS=SYSPARAM(1),CLOSE,0);

  KXS:=QD+2=BARSCOUNT(CLOSE);

  DDD:=SYSPARAM(5);

  HD:=SYSPARAM(4);

  VAR1:=HD-DDD;

  HH:HD,LINETHICK2,colorFF;

  B2:HH-VAR1*0.25,POINTDOT,LINETHICK2,color8000;

  B4:HH-VAR1*0.375,POINTDOT,LINETHICK2,color8000;

  B5:HH-VAR1*0.5,POINTDOT,LINETHICK2,colorFF;

  B6:HH-VAR1*0.625,POINTDOT,LINETHICK2,color8000;

  B8:HH-VAR1*0.75,POINTDOT,LINETHICK2,color8000;

  LL:DDD,LINETHICK2,colorFF;

  DRAWNUMBER(ISLASTBAR,B2,B2,2),SHIFT1,color8000;

  DRAWNUMBER(ISLASTBAR,B4,B4,2),SHIFT1,color8000;

  DRAWNUMBER(ISLASTBAR,B5,B5,2),SHIFT1,colorFF;

  DRAWNUMBER(ISLASTBAR,B6,B6,2),SHIFT1,color8000;

  DRAWNUMBER(ISLASTBAR,B8,B8,2),SHIFT1,color8000;

  DRAWTEXT(KXS,B2,'+75.0 -25.0'),color8000;

  DRAWTEXT(KXS,B4,'+62.5 -37.5'),color8000;

  DRAWTEXT(KXS,B5,'+ -50.0 %'),colorFF;

  DRAWTEXT(KXS,B6,'+37.5 -62.5'),color8000;

  DRAWTEXT(KXS,B8,'+25.0 -75.0'),color8000;

  DRAWSL(DD=1 AND BARPOS=SYSPARAM(1),HD,-80*M/50,0,0),LINETHICK1,colorFFFF;

  DRAWSL(DD=1 AND BARPOS=SYSPARAM(1),LOW,26*M/50,0,0),POINTDOT,colorFFFFFF;

  DRAWSL(DD=1 AND BARPOS=SYSPARAM(1),LOW,47*M/50,0,0),POINTDOT,colorFFFFFF;

  DRAWSL(DD=1 AND BARPOS=SYSPARAM(1),LOW,80*M/50,0,0),LINETHICK1,colorFFFF;

  DRAWSL(DD=1 AND BARPOS=SYSPARAM(1),LOW,135*M/50,0,0),LINETHICK1,colorFFFF;

  DRAWSL(DD=1 AND BARPOS=SYSPARAM(1),LOW,240*M/50,0,0),POINTDOT,colorFFFFFF;

  DRAWSL(DD=2 AND BARPOS=SYSPARAM(1),HIGH,-240*M/50,0,0),POINTDOT,colorFFFFFF;

  DRAWSL(DD=2 AND BARPOS=SYSPARAM(1),HIGH,-135*M/50,0,0),LINETHICK1,colorFF0000;

  DRAWSL(DD=2 AND BARPOS=SYSPARAM(1),HIGH,-80*M/50,0,0),LINETHICK1,colorFF0000;

  DRAWSL(DD=2 AND BARPOS=SYSPARAM(1),HIGH,-47*M/50,0,0),POINTDOT,colorFFFFFF;

  DRAWSL(DD=2 AND BARPOS=SYSPARAM(1),HIGH,-26*M/50,0,0),POINTDOT,colorFFFFFF;

  DRAWSL(DD=2 AND BARPOS=SYSPARAM(1),DDD,80*M/50,0,0),LINETHICK1,colorFF0000;

  A:=SYSPARAM(1);

  VERTLINE(BARPOS=A),POINTDOT,SHIFT13,color8000;

  VERTLINE(BARPOS=A),POINTDOT,SHIFT21,color8000;

  VERTLINE(BARPOS=A),POINTDOT,SHIFT34,color8000;

  VERTLINE(BARPOS=A),POINTDOT,SHIFT55,color8000;

  VERTLINE(BARPOS=A),POINTDOT,SHIFT89,color8000;

  VERTLINE(BARPOS=A),POINTDOT,SHIFT144,color8000;

  DRAWTEXT(BARPOS=A,SYSPARAM(5),'天數(shù)'),ALIGN2,color8000;

  DRAWTEXT(BARPOS=A,SYSPARAM(5),'13'),SHIFT13,color8000;

  DRAWTEXT(BARPOS=A,SYSPARAM(5),'21'),SHIFT21,color8000;

  DRAWTEXT(BARPOS=A,SYSPARAM(5),'34'),SHIFT34,color8000;

  DRAWTEXT(BARPOS=A,SYSPARAM(5),'55'),SHIFT55,color8000;

  DRAWTEXT(BARPOS=A,SYSPARAM(5),'89'),SHIFT89,color8000;

  DRAWTEXT(BARPOS=A,SYSPARAM(5),'144'),SHIFT144,color8000;

  以上就是UZ百分比線股票公式源碼,相信大家通過一些軟件的編輯,能夠很好的運(yùn)用軟件,如若您想要了解股票開盤時(shí)間可點(diǎn)擊進(jìn)入,最后預(yù)祝大家投資愉快。

鄭州亨瑞軟件開發(fā)有限公司
版權(quán)所有

服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:s5l8a2.cn

銷售熱線:0371-65350319
技術(shù)支持:13333833889

注冊(cè)下載;