以文本方式查看主题

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

--  作者:aliyun
--  发布时间:2015/2/3 15:34:32
--  numtostr(enterprice,1);

开仓价:=numtostr(enterprice,1);

 

这时开仓价显示为上一手价格,直接用numtostr(enterprice,1)时没问题


--  作者:jinzhe
--  发布时间:2015/2/3 15:38:50
--  
你怎么用的?
--  作者:jinzhe
--  发布时间:2015/2/3 15:39:02
--  
 你这句要写在开仓语句后面,
--  作者:aliyun
--  发布时间:2015/2/3 15:48:27
--  

可否这样:

开仓1;

开仓2;

开仓3;

......

 

开价:=numtostr(enterprice,1);

 

drawtext(开仓1,h,‘文字\'+开价);

drawtext(开仓2,h,‘文字\'+开价);

drawtext(开仓3,h,‘文字\'+开价);

......


--  作者:jinzhe
--  发布时间:2015/2/3 15:51:32
--  
可以