以文本方式查看主题

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

--  作者:pyfans27
--  发布时间:2016/5/19 21:46:42
--  怎么显示开仓手数
我感觉我开仓的手数有问题
我想在图表上显示  在某根K线开仓了  在最高价上面显示出开仓手数
同时在平仓的K线上显示平仓的手数

--  作者:jinzhe
--  发布时间:2016/5/20 9:05:22
--  

在开仓语句后面写上:

drawtext(开仓条件 and holding<>ref(holding,1),h,numtostr(entervol,0));

 

 

在平仓语句后面写上:

drawtext(平仓条件  and holding<>ref(holding,1),h,numtostr(exitvol,0));


--  作者:pyfans27
--  发布时间:2016/5/20 19:35:05
--  
我BUY SELL是用在IF内的
不能直接在后面加上这两句 要不会报错
怎么办呢

--  作者:jinzhe
--  发布时间:2016/5/23 9:19:47
--  
直接写代码最后,不要加在IF里面