股票论坛

 找回密码
 免费注册
搜索
热搜: 活动 交友 discuz
查看: 2645|回复: 1
打印 上一主题 下一主题

涨停板后10天天数的标注,请教老师,谢谢!!

[复制链接]

指标研习F2

Rank: 8Rank: 8

听众
4
跳转到指定楼层
楼主
发表于 2015-12-12 16:56 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
30爱心果
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,请保留标注数字,并且要画线和标注天数相对应,标注几天就画几天的线。 谢谢!!

最佳答案

查看完整内容

解决一部分,分时均价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)

指标研习组

Rank: 11Rank: 11Rank: 11Rank: 11

听众
5
沙发
发表于 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;
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|站点首页|手机版|小黑屋|帮助中心|桂ICP备14001964号

GMT+8, 2024-11-24 05:30 , Processed in 0.151390 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表