以文本方式查看主题

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

--  作者:zxsd
--  发布时间:2016/7/19 14:50:00
--  DRAWTEXT问题
 如何判断之后输出不同价格,DRAWTEXT能输出OPEN或者HIGH这类变量么?
--  作者:jinzhe
--  发布时间:2016/7/19 15:06:04
--  

能,举例:

drawtext(islastbar,close,numtostr(open,2))


--  作者:zxsd
--  发布时间:2016/7/19 15:11:01
--  
 
如何文字+numtostr(open,2) 一起显示呢?
--  作者:jinzhe
--  发布时间:2016/7/19 15:23:11
--  

上下:

drawtext(islastbar,close,numtostr(open,2)),pxup20;
drawtext(islastbar,close,numtostr(close,2));

左右:

drawtext(islastbar,close,numtostr(open,2)+\' \'+numtostr(h,2)),pxup20;

[此贴子已经被作者于2016-7-19 15:23:58编辑过]