以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  [求助]能否用“序列模式”运行  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=5513)

--  作者:wzywzy292
--  发布时间:2011/3/13 8:44:06
--  [求助]能否用“序列模式”运行
ma1:=ma(c,3);
ma2:=ma(c,5);

Long:= cross(ma1,ma2);

if Long then
 begin
 sellshort(holding<0,0,market);
 buy(holding=0,1,market) ;
 end

Short:=cross(ma2,ma1); ;

if Short then
 begin
 sell(holding>0,0,market) ;
 buyshort(holding=0,1,market) ;
 end

请教:上面的代码在  金字塔标准版  中能否用“序列模式”运行,谢谢!!!

[此贴子已经被作者于2011-3-13 8:44:29编辑过]

--  作者:admin
--  发布时间:2011/3/13 15:52:55
--  
不可以的,由于序列运行模式无法实现头寸管理,所以BUY,SELL等函数是无法运行,只能在逐K线模式下运行