飞狐多空BBI主图指标公式股票软件源码如下: n:=14; 均价:=(2*C+(H-L)/2+L)/3; 价差:=SUM(均价-REF(均价,1),2)/2; 高低:=(均价+价差); 实价:=(高低+均价)/2; aa:=eMA(((SLOPE(实价,N)*20)+实价),N*3); bb:=eMA(((SLOPE(均价,N)*20)+均价),N*3); PARTLINE(aa>=BB,AA),color9999FF; PARTLINE(aa>=BB,BB),color9999FF; {www.gpxiazai.com 股票软件下载网_飞狐股票指标公式} 多空线:(AA+bb)/2,COLORRED,PRECISION2,LINETHICK1; PARTLINE(aaPARTLINE(aaPARTLINE(aa角:=ATAN((多空线/ref(多空线,1)-1)*100)*180/3.1416,LINETHICK,COLORGREEN; DRAWTEXT(filter(角>=30 and 多空线>ref(多空线,1),8),多空线*0.98,'∠30'),colorwhite,ALIGN0; DK:=多空线; FL:=DK+ABS(DK-REF(DK,1)),COLORWHITE; FS:=2*DK-REF(DK,1),COLORWHITE; BBI:IF(DKPARTLINE(BBI>FS,BBI),COLOR00bb00,LINETHICK1; |