以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  如何把字符串做CALLSTOCK第一项引用的参数  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=82314)

--  作者:Q_Q
--  发布时间:2015/8/10 22:42:41
--  如何把字符串做CALLSTOCK第一项引用的参数
s取值为600000至600049

m:=NUMTOSTR(s,0);
mm:=STRCAT(\'sz\',\'&m&\' );
cc:CALLSTOCK(\'&mm&\',vtclose,6,0),nodraw;

cc为什么没有输出值呢,我完全按照这里6楼阿火老师写的啊:http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=6321

--  作者:jinzhe
--  发布时间:2015/8/11 8:57:58
--  
s:=399001;
m:=NUMTOSTR(s,0);
mm:=STRCAT(\'sz\',m );
drawtext(islastbar,close,mm);
cc:CALLSTOCK(mm,vtclose,6),nodraw;