vo:=weekday=1;
vd1:=barslast(vo);
vd2:=ref(vd1,vd1+1);
cc:=ref(c,vd1+1);
oo:=ref(o,vd2+1);
hh:=hhv(ref(h,1),vd2);
ll:=llv(ref(l,1),vd2);
stickline(vo and cc>oo,cc,oo,4,0),colorred;
stickline(vo and cc>oo,hh,ll,1,0),colorred;
stickline(vo and cc<=oo,cc,oo,4,0),colorffff00;
stickline(vo and cc<=oo,hh,ll,1,0),colorffff00;
V1:=c;
V2:=MA(V1,5);
V3:=MA(V1,10);
IF(V2>V3,V2,V3),COLORRED,linethick2;
IF(V2<V3,V2,V3),COLOR00FF00,linethick2;
V4:V3,colorgray,linethick2;
现价:MA(V1,1),COLORBBBBBB;
202108211239.jpg
|