标题: 涨停板后10天天数的标注,请教老师,谢谢!! [打印本页] 作者: 滴滴点点 时间: 2015-12-12 16:56 标题: 涨停板后10天天数的标注,请教老师,谢谢!! ZT:=BARSLAST(C/REF(C,1)-1>=0.1-0.01/REF(C,1) AND C=H);
A:=EVERY(C>=REF(L,ZT),ZT);
B:=IF(REF(A,ZT+1) AND REF(ZT,ZT+1)<10,REF(ZT,ZT+1)+ZT+1,ZT);
STICKLINE(ZT<=10 AND A,REF(C,ZT),REF(C,ZT)*0.999,5,0),COLORRED;
STICKLINE(ZT<=10 AND A,REF(L,ZT),REF(L,ZT),5,0),COLORGREEN;
DRAWTEXT(ZT=0,L*0.98,'阳'),COLORYELLOW;
DRAWTEXT(ZT<=10 AND A,REF(L,ZT)*0.98,VAR2STR(ZT,0)),COLORGREEN;
DRAWTEXT(ZT>=6 AND ZT<=8 AND A,REF(L,ZT)*0.98,VAR2STR(ZT,0)),COLORRED;
DRAWTEXT(B>0 AND B<=10 AND B!=A,REF(L,B)*0.98,VAR2STR(B,0)),COLORGREEN;
DRAWTEXT(B>=6 AND B<=8 AND B!=A,REF(L,B)*0.98,VAR2STR(B,0)),COLORRED;
请老师帮忙完善这个主图指标。要求:1,涨停K线用黄色实心的,并且在涨停K线上用虚线画出开盘价,收盘价,二分位,分时均价2,请保留标注数字,并且要画线和标注天数相对应,标注几天就画几天的线。 谢谢!!作者: 陪练专家 时间: 2015-12-12 16:56
解决一部分,分时均价2不懂.
ZT:=BARSLAST(C/REF(C,1)-1>=0.1-0.01/REF(C,1) AND C=H);
STICKLINE(C/REF(C,1)-1>=0.1-0.01/REF(C,1) AND C=H,O,C,1,0),COLORYELLOW;
A:=EVERY(C>=REF(L,ZT),ZT);
B:=IF(REF(A,ZT+1) AND REF(ZT,ZT+1)<10,REF(ZT,ZT+1)+ZT+1,ZT);
STICKLINE(ZT<=10 AND A,REF(C,ZT),REF(C,ZT)*0.999,0.1,0),COLORRED;
STICKLINE(ZT<=10 AND A,REF(L,ZT),REF(L,ZT),0.1,0),COLORGREEN;
STICKLINE(ZT<=10 AND A,REF((C+L)/2,ZT),REF((C+L)/2,ZT),0.1,0),COLORLIGREEN;
DRAWTEXT(ZT=0,L*0.98,'阳'),COLORYELLOW;
DRAWTEXT(ZT<=10 AND A,REF(L,ZT)*0.98,VAR2STR(ZT,0)),COLORGREEN;
DRAWTEXT(ZT>=6 AND ZT<=8 AND A,REF(L,ZT)*0.98,VAR2STR(ZT,0)),COLORRED;
DRAWTEXT(B>0 AND B<=10 AND B!=A,REF(L,B)*0.98,VAR2STR(B,0)),COLORGREEN;
DRAWTEXT(B>=6 AND B<=8 AND B!=A,REF(L,B)*0.98,VAR2STR(B,0)),COLORRED;