股票的公式有哪些?飞狐初级要塞主图公式源码
2016-6-12 10:33:41 股票入门 http://rumen.southmoney.com
股票的公式有哪些?飞狐初级要塞主图公式源码 附:飞狐歪虎动平衡公式源码 南方财富网小编为您提供
【飞狐初级要塞主图公式源码】
MA5:=(((((3 * CLOSE) + OPEN) + LOW) + HIGH) / 6);
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">A:=(((((((((((((((((((((20 * MA5) + (19 * REF(MA5,1))) + (18 * REF(MA5,2))) + (17 * REF(MA5,3))) + (16 * REF(MA5,4))) + (15 * REF(MA5,5))) + (14 * REF(MA5,6))) + (13 * REF(MA5,7))) + (12 * REF(MA5,8))) + (11 * REF(MA5,9))) + (10 * REF(MA5,10))) + (9 * REF(MA5,11))) + (8 * REF(MA5,12))) + (7 * REF(MA5,13))) + (6 * REF(MA5,14))) + (5 * REF(MA5,15))) + (4 * REF(MA5,16))) + (3 * REF(MA5,17))) + (2 * REF(MA5,18))) + REF(MA5,20)) / 210);
B:=MA(A,3);
B1:=MA(A,5);
B2:=MA(A,13);
B3:=MA(A,21);
B4:=MA(A,34);
B5:=REF(B2,BARSLAST(CROSS("MACD.MACD",0)));
X5:=REF(B3,BARSLAST(CROSS("MACD.MACD",0)));
X6:=REF(B2,BARSLAST(CROSS(0,"MACD.MACD")));
X7:=REF(B3,BARSLAST(CROSS(0,"MACD.MACD")));
VAR1:IF(("MACD.MACD" > 0),B5,X6),colorFFFFFF;
VAR2:IF(("MACD.MACD" > 0),X5,X7),colorFFFFFF;
FILLRGN((VAR1 > VAR2),VAR1,VAR2),colorFFFF;
FILLRGN((VAR1 < VAR2),VAR1,VAR2),colorFFFF00;
X8:=REF(B,BARSLAST(CROSS("KDJ.K","KDJ.D")));
X1:=REF(B1,BARSLAST(CROSS("KDJ.D","KDJ.K"))) COLORMAGENTA ;
X2:=REF(B,BARSLAST(CROSS("KDJ.d","KDJ.j")));
X3:=REF(B1,BARSLAST(CROSS("KDJ.j","KDJ.d"))) COLORGRAY;
VAR3:IF(("KDJ.K" > "KDJ.D"),X8,X2),colorFFFFFF;
VAR4:IF(("KDJ.D" > "KDJ.K"),X1,X3),colorFFFFFF;
FILLRGN((VAR3 > VAR4),VAR3,VAR4),colorFF00FF;
FILLRGN((VAR3 < VAR4),VAR3,VAR4),colorFFFFFF;
X4:=REF(B4,BARSLAST(CROSS("MACD.MACD",0)));
FILLRGN((X4 < MIN(VAR1,VAR2)),X4,MIN(VAR1,VAR2)),colorFF0000;
FILLRGN((X4 > MAX(VAR1,VAR2)),X4,MAX(VAR1,VAR2)),color808080;
STICKLINE((CLOSE >= REF(CLOSE,1)),CLOSE,OPEN,8,0),colorFF;
STICKLINE((CLOSE < REF(CLOSE,1)),CLOSE,OPEN,8,0),colorFF00;
STICKLINE((CLOSE >= REF(CLOSE,1)),HIGH,LOW,0,0),colorFF;
STICKLINE((CLOSE < REF(CLOSE,1)),HIGH,LOW,0,0),colorFF00;
PARTLINE(((CLOSE > MAX(VAR3,VAR4)) AND ("KDJ.k" > 50)),(MA(CLOSE,15) * 1.1)),LINETHICK2,colorFF00;
PARTLINE(((CLOSE > MAX(VAR3,VAR4)) AND ("KDJ.K" > 50)),((MA(CLOSE,15) * 1.1) - (((MA(CLOSE,15) * 1.1) - (MA(CLOSE,15) * 0.9)) * 0.191))),LINETHICK2,colorFF00;
STICKLINE(((CLOSE > MAX(VAR3,VAR4)) AND ("KDJ.k" > 50)),(MA(CLOSE,15) * 1.1),((MA(CLOSE,15) * 1.1) - (((MA(CLOSE,15) * 1.1) - (MA(CLOSE,15) * 0.9)) * 0.191)),0,0),colorFF00;
附:【飞狐歪虎动平衡公式源码】
S下:=HHV(MA(HIGH,2),2),COLORGREEN,LINETHICK2;S上:=LLV(MA(HIGH,2),1),COLORRED,LINETHICK2;
Sppp:-(S上-S下)/ref(c,1)*100;
Sptem1:=(min(o,c)-l)/(h-l)*100;
Sptem2:=(h-max(o,c))/(h-l)*100;
SPTEM3:=(c-o)/(h-l)*100;
SKJ1:=(SPTEM3>49 AND SPTEM1>0.3*SPTEM2) OR SPTEM3>80;
SKJ2:=(SPTEM3<=49 AND SPTEM3>20 AND SPTEM1>SPTEM2);
SKJ3:=(SPTEM3<=20 and sptem3>-20 and sptem1>1.2*sptem2);
SKJ4:=(SPTEM3<-20 AND SPTEM3>-40 AND SPTEM1>2*SPTEM2);
SKJ:=(SKJ1 OR SKJ2 OR SKJ3 OR SKJ4) AND (Sppp>2 or ref(Sppp,1)>2 );
短买:if(sum(sppp>0,5)=5 and sum(skj>0,5)=0,5*(SKJ1 OR SKJ2 OR SKJ3 OR SKJ4),5*skj),STICK,COLORRED;
x下:=HHV(MA(l,2),1),COLORGREEN,LINETHICK2;
x上:=LLV(MA(l,2),2),COLORRED,LINETHICK2;
xppp:(x上-x下)/ref(c,1)*100;
xptem1:=(min(o,c)-l)/(h-l)*100;
xptem2:=(h-max(o,c))/(h-l)*100;
XPTEM3:=(c-o)/(h-l)*100;
XKJ1:=(XPTEM3<-49 AND SPTEM2>0.3*SPTEM1) OR SPTEM3<-80;
XKJ2:=(SPTEM3>=-49 AND SPTEM3<-20 AND SPTEM1<SPTEM2);
XKJ3:=(SPTEM3>=-20 and sptem3<20 and sptem2>1.2*sptem1);
XKJ:=(XKJ1 OR XKJ2 OR XKJ3) AND (Xppp<-2 or ref(Xppp,1)<-2 );
短卖:(-5)*FILTER(xkj,0),STICK,COLORGREEN;
5;-5;
更多股票公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。