多谢,之前可以做到在1分钟图上大概地叠加其他分钟的K图,但就是不能在5分钟K图上显示出来.
用品种叠加的话,就是叠加当前周期的,用户是怎么做到叠加其他周期的
为什么上不了图..下面把代码写出来,
RUNMODE:1;
oo:=callstock(stklabel,vtopen,3);
hh:=callstock(stklabel,vthigh,3);
ll:=callstock(stklabel,vtlow,3);
cc:=callstock(stklabel,vtclose,3);
DRAWRECT( mod(minute,15)=1 and cc>oo,hh,mod(minute,15)=0,ll, 1,COLORRED );
DRAWRECT( mod(minute,15)=1 and cc<oo,hh,mod(minute,15)=0,ll, 1,COLORGREEN );
DRAWRECT( mod(minute,15)=1 and cc=oo,hh,mod(minute,15)=0,ll, 1,COLORCYAN );
RUNMODE:1;
oo:=callstock(stklabel,vtopen,4);
hh:=callstock(stklabel,vthigh,4);
ll:=callstock(stklabel,vtlow,4);
cc:=callstock(stklabel,vtclose,4);
DRAWRECT( mod(minute,30)=5 and cc>oo,hh,mod(minute,30)=0,ll, 1,COLORRED );
DRAWRECT( mod(minute,30)=5 and cc<oo,hh,mod(minute,30)=0,ll, 1,COLORGREEN );
DRAWRECT( mod(minute,30)=5 and cc=oo,hh,mod(minute,30)=0,ll, 1,COLORCYAN );
5分钟引用30分钟的