∠45度线
-
相关简介:C/C++ Code 复制内容到剪贴板 {太冷老师---1X1线[接近1X1线]} {框} SYSPARAM(4),color00ffff; SYSPARAM(5),color00ffff; (SYSPARAM(5)+SYSPARAM(4))/2,LINETHICK; VERTLINE(BARPOS=SYSPARAM(1)),colorff9900; VERTLINE(BARPOS=SYSPARAM(3)),colorff9900; {K线统计显示} sok:
-
文章来源:择股网作者:股海网发布时间:2009-08-03浏览次数:
C/C++ Code复制内容到剪贴板
- {太冷老师---1X1线[接近1X1线]}
- {框}
- SYSPARAM(4),color00ffff;
- SYSPARAM(5),color00ffff;
- (SYSPARAM(5)+SYSPARAM(4))/2,LINETHICK;
- VERTLINE(BARPOS=SYSPARAM(1)),colorff9900;
- VERTLINE(BARPOS=SYSPARAM(3)),colorff9900;
- {K线统计显示}
- sok:(SYSPARAM(3)-SYSPARAM(2)+1),linethick0;
- k:=if(sok=7,(544/565),if(sok=8,(642/565),if(sok=9,(734/565),if(sok=10,(825/565),if(sok=12,(685/565),
- if(sok=19,(771/565),if(sok=29,(829/565),if(sok=30,(834/565),if(sok=46,(879/568),if(sok=67,(907/568),
- if(sok=70,(911/568),if(sok=106,(931/568),if(sok=160,(946/568),if(sok=241,(956/568),
- if(sok=363,(963/568),(1)))))))))))))))),linethick0;//(1)可以替换成使用者习惯的比例,比如(947/568)
- pm:=(SYSPARAM(4)-SYSPARAM(5))/(SYSPARAM(3)-SYSPARAM(2));
- {画线}
- DRAWSL(BARPOS=SYSPARAM(1),SYSPARAM(5),2*pm*k,0,0),LINETHICK2,COLORCYAN;
- //===========================================================================
- {45度画线 -- 王照华}
- X_L1:=(SYSPARAM(4)-SYSPARAM(5))/(SYSPARAM(3)-SYSPARAM(2));
- DRAWSL(BARPOS=SYSPARAM(1),L,X_L1*2,0,0),LINETHICK2,Color00FFFF;//45度斜线
- STICKLINE(BARPOS=SYSPARAM(1),L,SYSPARAM(4),0,0),LINETHICK2,COLORGREEN;//竖线
- DRAWSL(BARPOS=SYSPARAM(1),L,0,0,3),LINETHICK2,COLORGREEN;//横线
- {择股网 www.zegu.cn 整理}
下载链接:( 说明:股海资源如需解压密码的请输入本站域名:www.guhai.com.cn请仔细输入!)
|