当前位置:→ 公式网 > 飞狐公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是飞狐非常好的指标改成乖乖副图源码(无源码的请下载附件导入)
三个乖乖配合使用,大乖乖反映大一点的趋势,乖乖下穿小乖乖只要大乖乖没有变绿可继续持股。
均价:=(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.gszx.com.cn}
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(大乖乖<DGG,大乖乖),COLORGREEN,LINETHICK2;