以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  请教  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=73472)

--  作者:hbxfxj
--  发布时间:2014/12/23 17:11:32
--  请教
麻烦帮我编一个公式现实开盘价,在K线图上自动画个线,加上数字显示线的位置,谢谢
--  作者:jinzhe
--  发布时间:2014/12/23 17:16:40
--  

oo:=valuewhen(todaybar=1,open);

drawtext(todaybar=1,open+5*mindiff,numtostr(oo,2));


drawsl(todaybar=1,open,0,ref(todaybar,todaybar),3);


--  作者:hbxfxj
--  发布时间:2014/12/23 17:24:04
--  
非常谢谢


--  作者:hbxfxj
--  发布时间:2014/12/23 17:43:55
--  
还想麻烦下您,帮我把线和数字都改成黄色可以吗
--  作者:jinzhe
--  发布时间:2014/12/24 8:55:58
--  

oo:=valuewhen(todaybar=1,open);

drawtext(todaybar=1,open+5*mindiff,numtostr(oo,2)),coloryellow;


drawsl(todaybar=1,open,0,ref(todaybar,todaybar),3),coloryellow;