昨收:DYNAINFO(3),COLORFF9900,LINETHICK1; DRAWTEXT(CURRBARSCOUNT=8,昨收,' 昨'),COLORFF9900,LINETHICK2; 今开:DYNAINFO(4),COLORFF00FF,LINETHICK1; DRAWTEXT(CURRBARSCOUNT=8,今开,'开 '),COLORFF00FF,LINETHICK2; 今高:=DYNAINFO(5),COLOREE2255; DRAWTEXT(CURRBARSCOUNT=8,今高,' 高'),COLOREE2255,LINETHICK2; 今低:=DYNAINFO(6),COLORGREEN; DRAWTEXT(CURRBARSCOUNT=8,今低,' 低'),COLORGREEN,LINETHICK2; CC:=HHV(IF(TIME=103000 AND DYNAINFO(7)=C; GL:=FILTER(XH,60); DRAWTEXT(GL,DYNAINFO(7)*0.99,'突破'),COLORYELLOW,LINETHICK2; STICKLINE(GL,DYNAINFO(7)*0.98,DYNAINFO(7)*0.999,10,0) COLOR0000FF; 这是分时主图指标,想加一条以昨天均价线收盘价的一条直线,谢谢老师
爱约股解答:
先建指标1引用
{1引用}
昨均:REF(AMOUNT/VOL/100,1);
然后把下面这句复制到你的指标后面
昨均:"1引用.昨均#DAY",COLORCYAN,LINETHICK2;
{}
昨收:DYNAINFO(3),COLORFF9900,LINETHICK1;
DRAWTEXT(CURRBARSCOUNT=8,昨收,' 昨'),COLORFF9900,LINETHICK2;
今开:DYNAINFO(4),COLORFF00FF,LINETHICK1;
DRAWTEXT(CURRBARSCOUNT=8,今开,'开 '),COLORFF00FF,LINETHICK2;
今高:=DYNAINFO(5),COLOREE2255;
DRAWTEXT(CURRBARSCOUNT=8,今高,' 高'),COLOREE2255,LINETHICK2;
今低:=DYNAINFO(6),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=8,今低,' 低'),COLORGREEN,LINETHICK2;
昨均:"1引用.昨均#DAY",COLORCYAN,LINETHICK2;
CC:=HHV(IF(TIME<103000,C,0),0);
VV:=HHV(IF(TIME<103000,V,0),0);
ZF:=CC/DYNAINFO(3)<1.04;
XH:=C>=CC AND V>=VV AND TIME>=103000 AND DYNAINFO(7)=C;
GL:=FILTER(XH,60);
DRAWTEXT(GL,DYNAINFO(7)*0.99,'突破'),COLORYELLOW,LINETHICK2;
STICKLINE(GL,DYNAINFO(7)*0.98,DYNAINFO(7)*0.999,10,0) COLOR0000FF;