Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]能否用“序列模式”运行

1楼
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编辑过]
2楼
admin 发表于:2011/3/13 15:52:55
不可以的,由于序列运行模式无法实现头寸管理,所以BUY,SELL等函数是无法运行,只能在逐K线模式下运行
共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.06934 s, 3 queries.