- 所属板块:=STRCAT('所属板块:',STRCAT(STRCAT(STRCAT('【行业】:',HYBLOCK),STRCAT('【地域】:',DYBLOCK)),STRCAT('【概念】:',GNBLOCK)));
- DRAWTEXT_FIX(O>0,0.005,0.00,0,所属板块);
- C2:=REF(C,1);
- 涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
- STICKLINE(涨停,OPEN,CLOSE,0.5,0),COLORBLUE;{黄色涨停}
- STICKLINE(涨停,H,L,0,0),COLORBLUE;
- 跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
- STICKLINE(跌停,OPEN,CLOSE,0.5,0),COLORRED;{跌停}
- STICKLINE(跌停,H,L,0,1),COLORRED;
- 实体腰价:(O+C)/2,NODRAW,COLORWHITE;
- 实体上三一价:MAX(O,C)-ABS(O-C)/3,NODRAW,COLORWHITE;
- 实体下三一价:MIN(O,C)+ABS(O-C)/3,NODRAW,COLORWHITE;
- 价柱腰价:(L+H)/2,NODRAW,COLORWHITE;
- 价柱上三一价:MAX(H,L)-(H-L)/3,NODRAW,COLORWHITE;
- 价柱下三一价:MIN(H,L)+(H-L)/3,NODRAW,COLORWHITE;
- {21位画线}
- FLAG:=ABS(C-O)/IF((H-L) = 0,100,H-L);
- ZHANGF:=ABS(C-O)/O;
- WEI21:IF(CODELIKE('9999'),(H-L)*0.5+L,IF(C>O,(C-O)*0.5+O,(O-C)*0.5+C)),NODRAW;
- STICKLINE(ZHANGF>=0.03 && FLAG >= 0.03,WEI21,WEI21,-1,0),COLORBLACK;
复制代码
不好意思,QQ好久不用都忘记密码了,我知道问题所在已经修改了,再发代码时可以复制到点击<>出现的框中即可,不过不知道这段代码是否完整,我看您的图中标示了元帅柱,不知是指标所标还是楼主制图时所标。上面代码我修改了输出颜色,我的是黑底的。 |