1. 首页 > 股票投资

甘氏线角度自动画线公式

参数:
年月: 190001 220012 199901
下降角度:200 20000 1400
上升角度:200 20000 1700
N2: 1 100 17
-----------------------------------------------------------------------------

\r\n

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);

\r\n


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;

\r\n


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;

本文来源于网友自行发布,不代表本站立场,转载联系作者并注明出处