凤凰阶梯(主图指标、源码、贴图)
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2011-10-18 08:39:00
公式简介:
大智慧自带的有些指标不错,如果把这些指标进行改造叠加往往效果更好,比如凤凰线和黄金阶梯都是不错的指标,可以把凤凰线变为主图指标并且和黄金阶梯指标叠加到一起,就叫它凤凰阶梯吧,参数N设置为缺省1,最小1,最大30,步长1
xopen:=(ref(o,N)+ref(c,N))/2;
xclose:=close;
xhigh:=max(high,xopen);
xlow:=min(low,xopen);
volality:=ma(xhigh-xlow,8);
凰线:ma(xclose,5)+volality/2;
凤线:ma(xclose,5)-volality/2;
bu:=cross(xclose,凰线);
sel:=cross(凤线,xclose);
var1:=barslast(bu);
var2:=barslast(sel);
drawicon(ref(var1,1)>var2 and var1=0,xlow,7),align1,valign0;
drawicon(ref(var2,1)>var1 and var2=0,xhigh,8),align1,valign2;
STICKLINE(xclose>xopen and var1<var2,xclose,xopen ,8,0 ),colorred;
STICKLINE(xclose>xopen and var1<var2,xhigh,xclose ,0.5,0 ),colorred;
STICKLINE(xclose>xopen and var1<var2,xopen,xlow ,0.5,0 ),colorred;
STICKLINE(xclose<=xopen and var1<var2,xclose,xopen ,8,0 ),coloryellow;
STICKLINE(xclose<=xopen and var1<var2,xhigh,xopen ,0.5,0 ),coloryellow;
STICKLINE(xclose<=xopen and var1<var2,xclose,xlow ,0.5,0 ),coloryellow;
STICKLINE(xclose<=xopen and var1>var2,xclose ,xopen ,8,0 ),colorgreen;
STICKLINE(xclose<=xopen and var1>var2,xopen ,xhigh ,0.5,0 ),colorgreen;
STICKLINE(xclose<=xopen and var1>var2,xclose,xlow ,0.5,0 ),colorgreen;
STICKLINE(xclose>xopen and var1>var2,xclose ,xopen ,8,0 ),colorblue;
STICKLINE(xclose>xopen and var1>var2,xclose,xhigh ,0.5,0 ),colorblue;
STICKLINE(xclose>xopen and var1>var2,xopen,xlow ,0.5,0 ),colorblue;
高1:=REF(HHV(H,120),3);
低1:=REF(LLV(L,120),3);H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
基准:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1));
{
stickline(A1X>=0,突破,突破,10,0),coloryellow;
stickline(A1X<0,突破,ref(突破,1),0,-1000);
}
STICKLINE(A1X>=0,基准,突破,10,0),COLOR000099;
STICKLINE(A1X<0,基准,突破,10,0),COLOR00CC66;
同理可以把操盘线和黄金阶梯叠加在一起,我在这里就不贴这个公式源码了,有兴趣的可以自己做一下,在这里我把自己做的筹码三色指标与黄金阶梯指标叠加的公式源码贴出来
高1:=REF(HHV(H,120),3);
低1:=REF(LLV(L,120),3);H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
基准:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1));
{
stickline(A1X>=0,突破,突破,10,0),coloryellow;
stickline(A1X<0,突破,ref(突破,1),0,-1000);
}
STICKLINE(A1X>=0,基准,突破,10,0),COLOR000099;
STICKLINE(A1X<0,基准,突破,10,0),COLOR00CC66;
K1:COSTB(100);
K2:COSTB(95);
K3:COSTB(80);
K4:COSTB(70);
K5:COSTB(50);
STICKLINE(CLOSE>K2,o,c,10,0) ,colorRED;
STICKLINE(CLOSE<K5,h,l,10,0) ,colorBLUE;
STICKLINE(CLOSE>K5 and CLOSE<K2,o,c,10,0), coloryellow;
[url=http://www.goodgupiao.com/gupiaogongshi/15976.html][B]凤凰阶梯(主图指标、源码、贴图)[/B][/url]