飞狐创意CCI主图公式源码是什么?附:飞狐持有拉升公式源码
2016-4-22 15:11:06 股票入门 http://rumen.southmoney.com
飞狐创意CCI主图公式源码是什么?附:飞狐持有拉升公式源码 南方财富网小编为您提供
【飞狐创意CCI主图公式源码】
AAF:=LLV(LOW,34),LINETHICK1,COLORFFFFCC;
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">BBF:=MA(AAF,4),LINETHICK1,COLORYELLOW;
TYP := (HIGH + LOW + CLOSE)/3;
CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));
差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;
CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;
CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));
差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;
CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;
CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));
差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;
CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;
AAA:=(3*C+H+L+O)/6;
VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)
+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
短线:=VAR1;
中线:=VAR6;
牛熊线:ma(c,25),LINETHICK2,COLORBLUE;
操盘线:ma(c,8)LINETHICK;
PARTLINE(c>VAR1 or c>var6,VAR1),COLORMAGENTA,LINETHICK2;
PARTLINE(VAR1>VAR6,VAR6),COLORYELLOW,LINETHICK2;
PARTLINE(c<VAR6,VAR1),COLORGREEn,LINETHICK2;
PARTLINE(VAR1>操盘线,操盘线),COLORRED;
STICKLINE(c>VAR1,o,c,5,0)COLORRED;
STICKLINE(c>VAR6 and c<VAR1,o,c,5,0)COLORGRAY;
STICKLINE(c<VAR6,o,c,5,0)COLORCYAN;
STICKLINE(cross(操盘线,VAR1) and c<VAR6,o,c,8,0)COLORWHITE;
STICKLINE(cross(操盘线,VAR1) and c<VAR6,h,l,1,0)COLORWHITE;
STICKLINE(VAR1>VAR6 and c<操盘线,h,c,3,0)COLORWHITE;
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),
EMA8,'∠45'),COLORWHITE;
附:【飞狐持有拉升公式源码】
Var1:=MA(CLOSE,7);
Var2:=MA(CLOSE,13);
Var3:=MA(CLOSE,68);
Var4:=MA(CLOSE,34);
Var5:=MA(REF(VOL,10),20);
Var6:=IF(CLOSE-SMA(CLOSE,75,1)<0,CAPITAL/VOL,0);
Var7:=IF(CLOSE-150,50,0);
Var8:=IF(CLOSE>Var1 AND Var3 AND CROSS(Var1,Var2) AND (VOL-Var5)/Var5>0.5 AND CLOSE>MA(REF(CLOSE,1),3) AND SMA(Var7,5,1)>0,100,50);
Var9:=IF(100*VOL/CAPITAL>10 AND 100*VOL/CAPITAL<18 AND SMA(Var8,5,1)>50 AND Var1>Var2,150,50);
注意:=Var7;
持有: Var8;
拉升: Var9;
更多飞狐指标公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。