股票的公式有哪些?飞狐资金突破主图公式源码
2016-6-13 10:48:04 股票入门 http://rumen.southmoney.com
股票的公式有哪些?飞狐资金突破主图公式源码 附:飞狐波浪引力主图公式源码 南方财富网小编为您提供
【飞狐资金突破主图公式源码】
买线:=EMA(C,2);
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">卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORFFF000;
STICKLINE(买线<卖线,LOW,HIGH,0.1,0),COLORFFF000;
Z1:=REF(HIGH,4)=HHV(HIGH,2*4+1);
Y1:=FILTER(Z1,3);
C1:=BACKSET(Y1,3+1);
D1:=FILTER(C1,3);
A2:=REF(LOW,3)=LLV(LOW,2*3+1);
V2:=FILTER(A2,3);
C2:=BACKSET(V2,3+1);
D2:=FILTER(C2,3);
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
E2:=(HIGH+LOW)/2;
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR=1 OR BARSCOUNT(CLOSE)=1;
H2:=D1 AND NOT(D2 AND E1>=E2);
L1:=D2 AND NOT(D1 AND E1=E2);
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);
L2:=LD OR ISLASTBAR=1 OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);
UU2:=BACKSET(ISLASTBAR=1,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
突破线:=REF(H,BARSLAST(VV2));
持仓线:=REF(H,BARSLAST(XX2));
TP1:=CROSS(C,突破线);
TP2:=CROSS(C,持仓线);
STICKLINE(TP1,H,L,0,0),COLORYELLOW;
附:【飞狐波浪引力主图公式源码】
短期生命线:MA(CLOSE,9),LINETHICK2,colorFFFFFF;
L2:MA(CLOSE,18),colorFF;
中期生命线:MA(CLOSE,23.5),LINETHICK2,colorFF00;
L4:MA(CLOSE,38),colorA000A0;
L5:MA(CLOSE,61.5),LINETHICK2,color800000;
L6:MA(CLOSE,76),color408775;
L7:MA(CLOSE,99.5),color423366;
半年线:MA(CLOSE,123),color966666;
L8:MA(CLOSE,161),color605010;
年线:MA(CLOSE,260.5),color635575;
L9:MA(CLOSE,322),color408244;
L10:MA(CLOSE,421.5),color206888;
Z1:((REF(CLOSE,2) * 2) - REF(CLOSE,5)),LINETHICK0;
Z2:((REF(CLOSE,1) * 2) - REF(CLOSE,4)),LINETHICK0;
Z3:((CLOSE * 2) - REF(CLOSE,3)),LINETHICK0;
PARTLINE(1,((CLOSE * 2) - REF(CLOSE,3))),SHIFT3,LINETHICK1,colorFFFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,10,46,'【可以预知未来股价方向】'),color46FFEE;
gj:=AMOUNT/v/100;
E:=(H+L+O+2*C)/5;
明日阻力:=2*E-L;
明日支撑:=2*E-H;
明日突破:=E+(H-L);
明日反转:=E-(H-L);
今日阻力:=REF(明日阻力 , 1);
今日支撑:=REF(明日支撑 , 1);
if SYSPARAM(3)=2 then a:=BARPOS;
if SYSPARAM(3)=1 then b:=BARPOS;
d:=a-b;
e:=hhv(h,d);
p1:=SYSPARAM(1);
DRAWTEXTEX(c,1,20,500,'-----------------'),ColorFFFFFF;
DRAWTEXTEX(c,1,20,580,'-----------------'),ColorFFFFFF;
DRAWTEXTEX(c,1,20,660,'-----------------'),ColorFFFFFF;
DRAWTEXTEX(c,1,20,740,'-----------------'),ColorFFFFFF;
DRAWTEXTEX(c,1,20,820,'-----------------'),ColorFFFFFF;
DRAWTEXTEX(c,1,20,900,'-----------------'),ColorFFFFFF;
DRAWTEXTEX(c,1,20,990,'-----------------'),ColorFFFFFF;
DRAWTEXTEX(c,1,20,540,'今日支撑=:'+NUMTOSTR(今日支撑[p1] ,2 )+''),Color00FFFF;
DRAWTEXTEX(c,1,20,620,'今日阻力=:'+NUMTOSTR(今日阻力[p1] ,2 )+''),Color00FF00;
DRAWTEXTEX(c,1,20,700,'明日支撑=:'+NUMTOSTR(明日支撑[p1] ,2 )),ColorFF00FF;
DRAWTEXTEX(c,1,20,780,'明日阻力=:'+NUMTOSTR(明日阻力[p1] ,2 )),ColorFFFF00;
DRAWTEXTEX(c,1,20,860,'明日突破=:'+NUMTOSTR(明日突破[p1] ,2 )),COLORRED;
DRAWTEXTEX(c,1,20,940,'明日反转=:'+NUMTOSTR(明日反转[p1] ,2 )),COLORGREEN;
更多股票公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。