设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

飞狐震荡趋势公式源码是什么?

2016-5-11 9:46:26 股票入门 http://rumen.southmoney.com

飞狐震荡趋势公式源码是什么?附:飞狐财神到了指标公式  南方财富网小编为您提供


【飞狐震荡趋势公式源码】

A:=(H+L+O+C*3)/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">XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2.382;
X1:=(C+L+H)/3;X2:=EMA(X1,6);X3:=EMA(X2,5);
VAR1:=(A-LLV(L,100))/(HHV(H,100)-LLV(L,100))*100-50;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=EMA((A-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100-50,2);
VAR6:=SMA(VAR5,3,1);
VAR7:=SMA(VAR6,3,1);
VAR8:=3*VAR6-2*VAR7;
VAR9:=(A-EMA(A,13))/STD(A,13)*50;
VAR10:=EMA(EMA(VAR9,5),13);
VAR11:=EMA(VAR10,10);
VAR12:=3*VAR10-2*VAR11;
VARA:=VAR2+VAR6+VAR10;
VARB:=VAR3+VAR7+VAR11;
VARC:=VAR4+VAR8+VAR12;
VARD:=((VARA+VARB+VARC)/3)/8;
CD:=EMA(EMA(VARD,5),3);
CD1:=SMA(CD,4,1);
CDD1:=EMA(VARD,13);
ZD1:=SMA(CDD1,3,1);
CDD2:=SMA(VARD,13,1);
ZD2:=EMA(CDD2,5);
REFLINE:20,-20,16,-16;
FILLRGN(1,0,-8),COLOR001100;
FILLRGN(1,0,8),COLOR000040;
FILLRGN(1,-8,-5.5),COLOR002000;
FILLRGN(1,8,5.5),COLOR000020;
PARTLINE(1,0),COLOR000000;
DRAWICON(CROSS(X2,X3),-18,9);DRAWICON(CROSS(X3,X2),18,10);
FILLRGN(1,ZD1,ZD2),COLOR002851;
PARTLINE(1,ZD2),COLOR004080;
STICKLINE(CD>=CD1,CD,CD1,4,0),COLOR4E004E;
STICKLINE(CD>=CD1,CD,CD1,3,0),COLOR660066;
STICKLINE(CD>=CD1,CD,CD1,2,0),COLOR840084;
STICKLINE(CD>=CD1,CD,CD1,1,0),COLORA200A2;
STICKLINE(CD<CD1,CD,CD1,4,0),COLOR404040;
STICKLINE(CD<CD1,CD,CD1,3,0),COLOR505050;
STICKLINE(CD<CD1,CD,CD1,2,0),COLOR696969;
STICKLINE(CD<CD1,CD,CD1,1,0),COLOR8B8B8B;

附:【飞狐财神到了指标公式】

input:N(27,1,100),N1(7,1,100),N2(19,1,100);
VAR1:=WINNER(CLOSE);
VAR2:=(VOL / CAPITAL);
VAR3:=(VAR2 / VAR1);
财神线:=IF((VAR1 < (7 / 100)),VAR3,0);
财神到:财神线,LINETHICK0;
DRAWICON((((财神线 < REF((财神线 > 1),1)) AND (财神线 > 0.5)) AND (财神线 < 1)),HIGH,1),ALIGN5;
VAR1111:=FORCAST(CLOSE,5);
VAR1:=1;
平衡线:=(EMA(EMA(EMA(HIGH,3),3),1) * VAR1);
回挡线:(平衡线 * 0.94),LINETHICK1,colorFF;
VAR2:=(平衡线 * 0.85);
了结线:(平衡线 * 1.05),LINETHICK1,colorFF;
PARTLINE((了结线 < REF(了结线,1)),了结线),LINETHICK1;
PARTLINE((回挡线 < REF(回挡线,1)),回挡线),LINETHICK1;
临界线:WMA(CLOSE,10),LINETHICK2;
VAR1:=POW((CLOSE - 临界线),1);
VAR2:=MA(VAR1,3);
VAR3:=SQRT(VAR2);
阻力线:(临界线 + (1.96 * VAR3));
支撑线:=(临界线 - (1.96 * VAR3));
PARTLINE(((临界线 > REF(临界线,1)) AND (阻力线 <> 支撑线)),临界线),LINETHICK2,colorFF;
PARTLINE((临界线 < REF(临界线,1)),临界线),LINETHICK2,colorFF00;
PARTLINE((阻力线 = 支撑线),临界线),LINETHICK2,colorFF0000;
VAR1Z:=(((CLOSE - OPEN) / OPEN) * 100);
VAR2Z:=REF(CLOSE,1);
VAR3Z:=((SMA(MAX((CLOSE - VAR2Z),0),6,1) / SMA(ABS((CLOSE - VAR2Z)),6,1)) * 100);
VAR4Z:=(COUNT((VAR3Z < 20),20) >= 1);
DRAWTEXT(((VAR1Z > 9) AND VAR4Z),LOW,'★屠龙'),LINETHICK4,colorFFFF;
JJJ:=(((CLOSE + HIGH) + LOW) / 3);
AA:=EMA(JJJ,3);
BB:=REF(AA,1);
持股:DRAWICON((AA > BB),BB,12);
VAR3:=REF(CLOSE,1);
VAR4:=REF(CLOSE,2);
VAR5:=REF(CLOSE,3);
VAR6:=REF(CLOSE,9);
VAR7:=HHV(CLOSE,9);
VAR8:=LLV(CLOSE,9);
VARC:=(((VAR3 = VAR8) AND (CLOSE >= VAR4)) OR ((((VAR4 = VAR8) AND (VAR3 <= VAR5)) AND (VAR4 < VAR6)) AND (CLOSE >= VAR3)));
黄色买入:STICKLINE(VARC,(VAR3 * 0.94),(VAR4 * 0.94),25,16),colorFFFF;
VAR1:=((REF(HIGH,1) + REF(LOW,1)) / 2);
VAR2:=((REF(HIGH,1) + REF(LOW,1)) / 2);
VAR3:=(MA(CLOSE,N) + (2 * STD(CLOSE,N)));
DRAWICON(CROSS(VAR2,VAR3),(HIGH * 1.035),3);
DRAWTEXT(CROSS(VAR2,VAR3),(HIGH * 1.02),'卖出1'),colorFF00;
VAR4:=REF(CLOSE,1);
VAR5:=((SMA(MAX((CLOSE - VAR4),0),N1,1) / SMA(ABS((CLOSE - VAR4)),N1,1)) * 100);
VAR6:=CROSS(N2,VAR5);
VAR7:=FILTER(VAR6,4);
A7:=((((2 * CLOSE) + HIGH) + LOW) / 4);
VAR10:=LLV(LOW,34);
VAR11:=HHV(HIGH,34);
SK:=EMA((((A7 - VAR1) / (VAR2 - VAR1)) * 100),7);
SD:=EMA(((0.667 * REF(SK,1)) + (0.333 * SK)),5);
DRAWTEXT(IF((((((COUNT((CLOSE < REF(CLOSE,1)),8) / 8) > (6 / 10)) AND (VOL >= (1.5 * MA(VOL,5)))) AND COUNT((SK >= SD),3)) AND (REF(LOW,1) = LLV(LOW,120))),1,0),LOW,'●买进1'),color99FF;
DRAWTEXT(IF((((((((((COUNT((CLOSE < REF(CLOSE,1)),13) / 13) > (6 / 10)) AND COUNT((SK > SD),6)) AND (REF(LOW,5) = LLV(LOW,120))) AND REF((CLOSE >= OPEN),4)) AND REF((CLOSE > OPEN),3)) AND REF((CLOSE > OPEN),2)) AND REF((OPEN > CLOSE),1)) AND (OPEN > REF(CLOSE,1))),1,0),LOW,'●买进2'),colorFFFF;
VAR12:=(MA(CLOSE,80) - (MA(CLOSE,10) / 3));
DRAWTEXT(IF(((((CLOSE < VAR12) AND ((VOL / 240) > (MA(VOL,5) / 240))) AND (CLOSE > (REF(CLOSE,1) * 1.08))) AND (CLOSE < (MA(CLOSE,13) * 1.3))),1,0),LOW,'●抄底'),colorFFFF;
VAR11:=(((((2 * CLOSE) + OPEN) + HIGH) + LOW) / 5);
M8:=VOL;
主力:=(SUM((VAR11 * M8),3) / SUM(M8,3));
散户:=主力;
M1:=LLV(散户,5);
VAR11:=(((((2 * CLOSE) + OPEN) + HIGH) + LOW) / 5);
M8:=VOL;
M5:=(SUM((VAR11 * M8),1) / SUM(M8,1));
M13:=(SUM((VAR11 * M8),5) / SUM(M8,5));
M21:=(SUM((VAR11 * M8),13) / SUM(M8,13));
主力:=(SUM((VAR11 * M8),3) / SUM(M8,3));
Y:=(SUM((VAR11 * M8),21) / SUM(M8,21));
U1:=M5;
U3:=M13;
散户:=主力;
XX1:=M21;
C5:=((U3 > 散户) AND (散户 > XX1));
C8:=IF((C5 > 0),LLV(U3,5),HHV(散户,5));
C13:=IF((C5 > 0),LLV(散户,8),HHV(散户,5));
VAR1118:=IF((C5 > 0),LLV(XX1,13),HHV(散户,5));
M1:=LLV(散户,20);
DRAWTEXT((M1 = REF(M1,1)),M1,'┬'),LINETHICK5,colorCC33FF;
DRAWTEXT(((REF(M1,1) < REF(M1,2)) AND (M1 = REF(M1,1))),M1,'★'),colorFF;
STICKLINE((CLOSE < OPEN),HIGH,LOW,1,0),color8800;
STICKLINE((CLOSE < OPEN),HIGH,LOW,0,0),colorFF00;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,8,0),color8800;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,7,0),color9900;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,6,0),colorAA00;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,5,0),colorBB00;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,4,0),colorCC00;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,3,0),colorDD00;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,2,0),colorEE00;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,1,0),colorFF00;
STICKLINE((CLOSE >= OPEN),HIGH,LOW,1,0),colorFF;
STICKLINE((CLOSE >= OPEN),HIGH,LOW,0,0),colorEEFF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8,0),colorFF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7,0),color22FF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),color44FF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),color66FF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4,0),color88FF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),colorAAFF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),colorCCFF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),colorEEFF;
VAR22:=((LLV(LOW,3) = LLV(LOW,3)) AND (CLOSE >= (OPEN * 1.04)));
VAR333:=(CLOSE > ((REF(HIGH,1) + REF(LOW,1)) / 2));
VAR44:=(VAR22 AND VAR333);
VAR55:=BARSLAST(VAR333);
VAR66:=BARSLAST(VAR44);
VAR77:=IF((VAR66 > 0),(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100),0);
VAR88:=SUM(VAR77,1);
VAR93:=IF((VAR55 > 3),(0 - 2),0);
DRAWICON(((REF(VAR93,1) = (0 - 2)) AND (VAR93 = 0)),LOW,1),colorFF;
DRAWICON(((REF(VAR93,1) = (0 - 2)) AND (VAR93 = 0)),LOW,8),colorFF;

更多飞狐公式源码相关资讯请关注南方财富网

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。