以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  想建一数组,及引用数组数据  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=69429)

--  作者:jinzhe
--  发布时间:2014/9/1 9:15:20
--  

cc:valuewhen(cross(ma5,ma10),close);

nn1:barslast(cross(ma5,ma10))+1;

cc1:ref(ref(c,nn1),nn1);

if cross(ma10,ma5) then 差值:=cc1-cc;