以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  [求助]如何引用其他公式中的字符变量和逻辑变量?  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=4663)

--  作者:z7c9
--  发布时间:2010/12/30 19:13:08
--  [求助]如何引用其他公式中的字符变量和逻辑变量?

Test公式:

以下内容为程序代码:

1 runmode:1;
2
3 account:\'666666\';
4
5 begintime:time>=092000 and time<=145500;

 

其他公式中如何引用Test公式中的account和begintime变量?

[此贴子已经被作者于2010-12-30 19:13:52编辑过]

--  作者:阿火
--  发布时间:2010/12/30 23:09:57
--  
begintime:time>=0920 and time<=145500  返回的是数值 1 或者0  ,可以用 stkindi(stklabel,indiname,co,dataperiod[,N])