请补充详细的说明,否则没办法处理。 比如策略具体是如何执行。
ma14:ma(c,14);
ma33:ma(c,33);
平多开空条件:cross(ma14,ma33);//金叉
平空开多条件:cross(ma33,ma14);//死叉
if 平多开空条件 then
begin
sellshort(1,holding,MARKET);
buy(holding=0,1,MARKET);
end
if 平空开多条件 then
begin
sell(1,holding,MARKET);
buyshort(1,1,MARKET);
end
交易品种可在图表上指定。