飞狐顾比均线主图指标
源码
K1:=EMA(C,3);
K2:=EMA(C,5);
K3:=EMA(C,8);
K4:=EMA(C,13);
K5:=EMA(C,15);
K6:=EMA(C,30);
K7:=EMA(C,35);
K8:=EMA(C,40);
K9:=EMA(C,45);
K10:=EMA(C,50);
K11:=EMA(C,60);
PARTLINE(k1>ref(k1,3),k1),Color0000FF;
PARTLINE(k1<ref(k1,3),k1),Color00FF00;
PARTLINE(k2>ref(k2,3),k2),Color0000FF;
PARTLINE(k2<ref(k2,3),k2),Color00FF00;
PARTLINE(k3>ref(k3,3),k3),Color0000FF;
PARTLINE(k3<ref(k3,3),k3),Color00FF00;
PARTLINE(k4>ref(k4,3),k4),Color0000FF;
PARTLINE(k4<ref(k4,3),k4),Color00FF00;
PARTLINE(k5>ref(k5,3),k5),Color0000FF;
PARTLINE(k5<ref(k5,3),k5),Color00FF00;
PARTLINE(k6>ref(k6,3),k6),Color0000FF;
PARTLINE(k6<ref(k6,3),k6),Color00FF00;
PARTLINE(k7>ref(k7,3),k7),Color0000FF;
PARTLINE(k7<ref(k7,3),k7),Color00FF00;
PARTLINE(k8>ref(k8,3),k8),Color0000FF;
PARTLINE(k8<ref(k8,3),k8),Color00FF00;
PARTLINE(k9>ref(k9,3),k9),Color0000FF;
PARTLINE(k9<ref(k9,3),k9),Color00FF00;
PARTLINE(k10>ref(k10,3),k10),Color0000FF;
PARTLINE(k10<ref(k10,3),k10),Color00FF00;
PARTLINE(k11>ref(k11,3),k11),Color0000FF;
PARTLINE(k11<ref(k11,3),k11),Color00FF00;
{HH:=HHV(H,0);LL:=LLV(l,0);
DRAWLINE(h=hh,hh,BARPOS=SYSPARAM(1),hh,1),coloryellow;
DRAWLINE(l=ll,ll,BARPOS=SYSPARAM(1),ll,1),color00ee00;
DRAWLINE(h=hh,(hh-ll)*0.809,BARPOS=SYSPARAM(1),(hh-ll)*0.809,1);
DRAWLINE(h=hh,(hh-ll)*0.618,BARPOS=SYSPARAM(1),(hh-ll)*0.618,1);
DRAWLINE(h=hh,(hh-ll)*0.500,BARPOS=SYSPARAM(1),(hh-ll)*0.500,1);
DRAWLINE(h=hh,(hh-ll)*0.382,BARPOS=SYSPARAM(1),(hh-ll)*0.382,1);
DRAWLINE(h=hh,(hh-ll)*0.191,BARPOS=SYSPARAM(1),(hh-ll)*0.191,1);
DRAWTEXT(c>0
DRAWTEXT(c>0
{AA:=DAY<>REF(DAY,1) OR BARPOS=1;
A:=BARSLAST(AA)+1;
B:=SUM(C*V,a)/SUM(V,a);
EVERY(C>b,OPENMINUTES(TIME)=5);