飞狐波段主图公式源码 飞狐指标公式大全(2)
2015-10-12 17:06:46 股票入门 http://rumen.southmoney.com
{融胜轨道}
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通1:=AA*102/100;
通2:=AA*(200-102)/100;
ZZ:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,ZZ);
上:=(1+7/100)*DD;
下:=(1-7/100)*DD;
中:=(上+下)/2;
顶:=(1+14/100)*DD;
底:=(1-14/100)*DD;
轨道角度1:=(ATAN((MA(底,5)/REF(MA(底,5),1)-1)*100)*180/3.14115926),LINETHICK0;
五日角度1:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926),LINETHICK0;
DRAWTEXT(SYSPARAM(1)=BARPOS and C>顶,L,'顶 '+NUMTOSTR(顶[SYSPARAM(1)],2)),pxdn27,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOS and C<顶,L,'顶 '+NUMTOSTR(顶[SYSPARAM(1)],2)),pxdn27,COLOR666600;
DRAWTEXT(SYSPARAM(1)=BARPOS and C>上,L,'上 '+NUMTOSTR(上[SYSPARAM(1)],2)),pxdn52,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOS and C<上,L,'上 '+NUMTOSTR(上[SYSPARAM(1)],2)),pxdn52,COLOR666600;
DRAWTEXT(SYSPARAM(1)=BARPOS and C>中,L,'中 '+NUMTOSTR(中[SYSPARAM(1)],2)),pxdn77,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOS and C<中,L,'中 '+NUMTOSTR(中[SYSPARAM(1)],2)),pxdn77,COLOR666600;
DRAWTEXT(SYSPARAM(1)=BARPOS and C>下,L,'下 '+NUMTOSTR(下[SYSPARAM(1)],2)),pxdn102,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOS and C<下,L,'下 '+NUMTOSTR(下[SYSPARAM(1)],2)),pxdn102,COLOR666600;
DRAWTEXT(SYSPARAM(1)=BARPOS and C>底,L,'底 '+NUMTOSTR(底[SYSPARAM(1)],2)),pxdn127,Color0088FF;
DRAWTEXT(SYSPARAM(1)=BARPOS and C<底,L,'底 '+NUMTOSTR(底[SYSPARAM(1)],2)),pxdn127,COLOR666600;
{DRAWTEXT(SYSPARAM(1)=BARPOS and 上,上,'上'+NUMTOSTR(上[SYSPARAM(1)],2)),pxup8,colorwhite;
DRAWTEXT(SYSPARAM(1)=BARPOS and 中,中,'中'+NUMTOSTR(中[SYSPARAM(1)],2)),pxup8,colorYellow;
DRAWTEXT(SYSPARAM(1)=BARPOS and 下,下,'下'+NUMTOSTR(下[SYSPARAM(1)],2)),pxup8,colorwhite;
DRAWTEXT(SYSPARAM(1)=BARPOS and 底,底,'底'+NUMTOSTR(底[SYSPARAM(1)],2)),pxup8,colorgreen;}
ZH:=HHV(H,22);ZHH:=H;
ZGF1:=ZHH/1.0809;ZGF2:=ZHH/1.1618;
ZGF3:=ZHH/1.0809/1.1618;ZGF4:=ZHH/1.1618/1.1618;
DRAWTEXTEX(c,1,10,650,'第一回调区:'+NUMTOSTR(ZGF1[SYSPARAM(1)],2)+'--'+NUMTOSTR(ZGF2[SYSPARAM(1)],2)+''),Color00FF00;
DRAWTEXTEX(c,1,10,700,'第二回调区:'+NUMTOSTR(ZGF3[SYSPARAM(1)],2)+'--'+NUMTOSTR(ZGF4[SYSPARAM(1)],2)+''),Color00FF00;
ZL:=LLV(L,22);ZLL:=L;
ZGFB1:=ZLL*1.0809;ZGFB2:=ZLL*1.1618;ZGFB3:=ZLL*1.0809*1.1618;ZGFB4:=ZLL*1.1618*1.1618;
DRAWTEXTEX(c,1,10,450,'第一压力区:'+NUMTOSTR(ZGFB1[SYSPARAM(1)],2)+''+'--'+NUMTOSTR(ZGFB2[SYSPARAM(1)],2)+''),Color00EEFF;
DRAWTEXTEX(c,1,10,500,'第二压力区:'+NUMTOSTR(ZGFB3[SYSPARAM(1)],2)+''+'--'+NUMTOSTR(ZGFB4[SYSPARAM(1)],2)+''),Color00EEFF;
DRAWTEXTEX(c,1,10,400,'本次起动价:'+NUMTOSTR(ZL[SYSPARAM(1)],2)+''),Color00EEFF;
DRAWTEXTEX(c,1,10,600,'预计回调价:'+NUMTOSTR(ZH[SYSPARAM(1)],2)+''),color00DD00;
DRAWTEXTEX(c,1,10,50,'收 益: '+ NUMTOSTR(FINANCE(33),2)+' 元'),ColorFFB060;
DRAWTEXTEX(c,1,120,50,'净资产: '+NUMTOSTR(FINANCE(34),2 )+' 元'),ColorFFB060;
DRAWTEXTEX(c,1,10,100,'流通股:'+ NUMTOSTR(FINANCE(7)/10000,2)+' 亿'),ColorFFB060;
DRAWTEXTEX(c,1,120,100,'占总股本:'+NUMTOSTR(FINANCE(7)/FINANCE(1)*100 ,2)+' %'),ColorFFB060;
DRAWTEXTEX(c,1,10,150,'负债率:'+ NUMTOSTR(FINANCE(11)/FINANCE(15),2)),ColorFFB060;
DRAWTEXTEX(c,1,120,150,'主营收入:'+NUMTOSTR(FINANCE(20)/10000,1 )+''),ColorFFB060;
{DRAWTEXTEX(c,1,10,250,STRLEFT(BLKNAME,90)),Color00FFFF;}
DRAWTEXTEX(c,1,10,200,'主题投资:'+SELFSTRING('主题投资')),ColorFFB060;
DRAWTEXTEX(c,1,10,0,'善谋者,谋势;不善者,谋子'),Color0088FF;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。