修改优化后的上下时空
-
相关简介:感谢一品茶园老师和席进爱老师的源码 来到理想好几个月,编指标还不太会。就学会瞎改指标了。看到《上下时空》指标感觉不错,恰巧看到红树林园老师贴的图,所以就把黄金分割线做出来了,也不知道这样改对不对,请路过的老师给与指点。还有就是原指标的第三部分,修改后提示错误,只好去掉了。请有知道原因的老师指点,我是不会了! 为什么开新贴呢?满足虚荣心,这样加分加的多! 源码: C/C++ Code 复制内容到剪贴板 HH:=HHV(H,200); LL:=LLV(L,200); 上涨:BARSSI
-
文章来源:择股网作者:股海网发布时间:2009-08-27浏览次数:
感谢一品茶园老师和席进爱老师的源码
来到理想好几个月,编指标还不太会。就学会瞎改指标了。看到《上下时空》指标感觉不错,恰巧看到红树林园老师贴的图,所以就把黄金分割线做出来了,也不知道这样改对不对,请路过的老师给与指点。还有就是原指标的第三部分,修改后提示错误,只好去掉了。请有知道原因的老师指点,我是不会了!
为什么开新贴呢?满足虚荣心,这样加分加的多!
源码:
C/C++ Code复制内容到剪贴板
- HH:=HHV(H,200);
- LL:=LLV(L,200);
- 上涨:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=LL)+1)),COLOR0000FF,NODRAW;
- ↑空间%:(C/REF(L,上涨)-1)*100,COLOR00FFFF,NODRAW;
- 最高%:(HH/REF(L,上涨)-1)*100,COLORFF00FF,NODRAW;
- 下跌:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=HH)+1)),COLOR00FF00,NODRAW;
- ↓空间%:(C/REF(H,下跌)-1)*100,COLOR888899,NODRAW;
- 最低%:(LL/REF(H,下跌)-1)*100,COLORFF0000,NODRAW;
- 天线:REFDATE(REF(H,下跌),DATE),POINTDOT,LINETHICK3,COLORYELLOW;
- 地线:REFDATE(REF(L,上涨),DATE),POINTDOT,LINETHICK3,COLOR00FF00;
- 中线:REFDATE((天线-地线)*0.5+地线,DATE),POINTDOT,LINETHICK3,COLOR00FF00;
- STICKLINE(上涨=0,天线,地线,0,-1),COLORYELLOW;
- STICKLINE(下跌=0,天线,地线,0,-1),COLORGREEN;
- DRAWTEXT(下跌=0,地线*1.01,'-最低'),COLOR00FF00;
- DRAWTEXT(上涨=0,天线*0.99,'-最高'),COLOR0000FF;
- {2}
- 高:=天线;
- 低:=地线;
- H1:=高-(高-低)*0.191;
- H2:=高-(高-低)*0.382;
- H3:=高-(高-低)*0.5;
- H4:=高-(高-低)*0.618;
- H5:=高-(高-低)*0.809;
- 风:REFDATE(H1,DATE),COLORYELLOW;
- 花:REFDATE(H2,DATE),COLORLICYAN;
- 雪:REFDATE(H3,DATE),COLORRED;
- 月:REFDATE(H4,DATE),COLORLIGREEN;
- 静:REFDATE(H5,DATE),COLORMAGENTA;
- DRAWTEXT(下跌=0,高,'高'),COLORGREEN;
- DRAWTEXT(下跌=0,H1,'809'),COLORCYAN;
- DRAWTEXT(下跌=0,H2,'618'),COLORGRAY;
- DRAWTEXT(下跌=0,H3,'中'),COLORYELLOW;
- DRAWTEXT(下跌=0,H4,'382'),COLORLIRED;
- DRAWTEXT(下跌=0,H5,'191'),COLORMAGENTA;
- DRAWTEXT(上涨=0,H1,'风险'),COLORCYAN;
- DRAWTEXT(上涨=0,H2,'高位'),COLORGRAY;
- DRAWTEXT(上涨=0,H3,'中'),COLORYELLOW;
- DRAWTEXT(上涨=0,H4,'低吸'),COLORLIRED;
- DRAWTEXT(上涨=0 ,H5,'盘整'),COLORMAGENTA;
- DRAWTEXT(上涨=0,低,'低'),COLORRED;
- DRAWTEXT(上涨=5,H*1.02,'5'),COLOR00FFFF;
- DRAWTEXT(上涨=8,H*1.02,'8'),COLOR00FFFF;
- DRAWTEXT(上涨=13,H*1.02,'13'),COLOR00FFFF;
- DRAWTEXT(上涨=21,H*1.02,'21'),COLOR00FFFF;
- DRAWTEXT(上涨=34,H*1.02,'34'),COLOR00FFFF;
- DRAWTEXT(上涨=55,H*1.02,'55'),COLOR00FFFF;
- DRAWTEXT(上涨=89,H*1.02,'89'),COLOR00FFFF;
- DRAWTEXT(上涨=144,H*1.02,'144'),COLOR00FFFF;
- DRAWTEXT(上涨=180,H*1.02,'180'),COLOR00FFFF;
- DRAWTEXT(上涨=250,H*1.02,'250'),COLOR00FFFF;
- DRAWTEXT(下跌=5,L*0.98,'-5'),COLOR00FF00;
- DRAWTEXT(下跌=8,L*0.98,'-8'),COLOR00FF00;
- DRAWTEXT(下跌=13,L*0.98,'-13'),COLOR00FF00;
- DRAWTEXT(下跌=21,L*0.98,'-21'),COLOR00FF00;
- DRAWTEXT(下跌=34,L*0.98,'-34'),COLOR00FF00;
- DRAWTEXT(下跌=55,L*0.98,'-55'),COLOR00FF00;
- DRAWTEXT(下跌=89,L*0.98,'-89'),COLOR00FF00;
- DRAWTEXT(下跌=144,L*0.98,'-144'),COLOR00FF00;
- DRAWTEXT(下跌=180,L*0.98,'-180'),COLOR00FF00;
- DRAWTEXT(下跌=250,L*0.98,'-250'),COLOR00FF00;
下载链接:( 说明:股海资源如需解压密码的请输入本站域名:www.guhai.com.cn请仔细输入!)
|
上一篇:【豆腐渣】均线及其他
下一篇:监控大盘的指标(周线)!