飞狐乖乖指标公式股票软件源码如下: 均价:=(2*C+(H-L)/2+L+o)/4; 价差:=SUM(均价-REF(均价,1),3)/3; 实价:=(均价+价差); EMA8:=EMA(EMA(eMA(实价,8),2),2); 乖离:(EMA8-REF(EMA8,1))/REF(EMA8,1)*100,COLORSTICK; PJGJ:=AMOUNT/VOL/100; SSRYDJX:=MA(PJGJ,13); SSRCJL:=EMA(VOL,13); SSRCJE:=EMA(AMOUNT,13); SSRCBJX:=SSRCJE/SSRCJL/100; CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100; XYSHSL:=EMA(VOL/CAPITAL*100,13); 0,COLORWHITE; STICKLINE(XYSHSL>6.1 AND CYS13>5 ,2 ,0 ,3 ,0 ),COLORGREEN; STICKLINE(XYSHSL>3.8 AND CYS13>5 ,1.5 ,0 ,3 ,0 ),COLORYELLOW; STICKLINE(XYSHSL>2.1 AND CYS13>5 ,1 ,0 ,3 ,0 ),COLORCYAN; STICKLINE(XYSHSL>1.8 AND CYS13>5 ,0.5 ,0 ,3 ,0 ),COLORBLUE; 乖乖:乖离,COLORWHITE; 小乖乖:MA(乖离,2),COLORAAAA00; MM:=EMA(均价+价差,32),COLORCYAN; xm:=EMA(均价,32); {www.gpxiazai.com 股票软件下载网_飞狐股票指标公式} I0:=(Ema(MM,3)+Ema(MM,6)+EMA(MM,12)+EMA(MM,24))/4; I1:=(Ema(xm,3)+Ema(xm,6)+EMA(xm,12)+EMA(xm,24))/4; 趋势线:=0.5*(I0+I1),LINETHICK,COLORRED; 大乖乖:(趋势线-REF(趋势线,1))/REF(趋势线,1)*100,COLORRED,LINETHICK2; DGG:=MA(大乖乖,2),COLORGREEN; PARTLINE(大乖乖 |