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编辑过]
不可以的,由于序列运行模式无法实现头寸管理,所以BUY,SELL等函数是无法运行,只能在逐K线模式下运行