甘氏线角度自动画线公式
2011-12-4 16:37:25 股票入门 http://rumen.southmoney.com
参数:
年月: 190001 220012 199901
下降角度:200 20000 1400
上升角度:200 20000 1700
N2: 1 100 17
-----------------------------------------------------------------------------
s:=llv(c,500);
hh:=YEAR*100+MONTH>年月;
oo:=(hh=0)+1;
p1:=(c-ref(c,1))/ref(c,1)*1000;
p2:=sum(abs(p1),0);
p3:=count(c>0,0);
k1:=p2/p3;
g1:=ZIG(3 , n2);
gg1:=g1>ref(g1,1);
g2:=ZIG(2,n2);
gg2:=g2<ref(g2,1);
K2:=K1*0.8;
f1:=HHVBARS(g1,30);
f2:=LLVBARS(g2,30);
DRAWLINE(c=g1*oo and gg1>0,c,f1=10 ,REF(c,f1)-s*0.4*K1/下降角度,1),COLOR00FF00;
DRAWLINE(c=g1*oo and gg1>0,c,f1=10 ,REF(c,f1)-s*K1/下降角度,1),COLOR33FFCC;
DRAWLINE(c=g1*oo and gg1>0,c,f1=10 ,REF(c,f1)-s*2*K1/下降角度,1),COLOR6666FF,LINETHICK2;
DRAWLINE(c=g1*oo and gg1>0,c,f1=10 ,REF(c,f1)-s*4*K1/下降角度,1),COLORFFFFCC;
DRAWLINE(c=g1*oo and gg1>0,c,f1=10 ,REF(c,f1)-s*8*K1/下降角度,1),COLOR00CCFF;
DRAWLINE(l=g2*hh and gg2>0,L,f2=10 ,REF(l,f2)+s*8*K1/上升角度*2,1),COLOR33FFCC;
DRAWLINE(l=g2*hh and gg2>0,l,f2=10 ,REF(l,f2)+s*4*K1/上升角度*2,1),COLORFFFFCC;
DRAWLINE(l=g2*hh and gg2>0,L,f2=10 ,REF(l,f2)+s*2*K1/上升角度*2,1),COLOR6666FF,LINETHICK2;
DRAWLINE(l=g2*hh and gg2>0,L,f2=10 ,REF(l,f2)+s*K1/上升角度*2,1),COLOR00CCFF;
DRAWLINE(l=g2*hh and gg2>0,l,f2=10 ,REF(l,f2)+s*0.5*K1/上升角度*2,1),COLORFF00FF;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。