1.图表周期可以在图表上自行设置。右键-分析周期
2.
ma30:ma(c,30);//30周期均线
ma720:ma(c,720);
jc:cross(ma30,ma720);//金叉
sc:cross(ma720,ma30);//死叉
if jc then //金叉平空开多
begin
sellshort(holding<0,holding,market);
buy(holding=0,1,market);
end
if sc then //死叉平多开空
begin
sell(holding>0,holding,market);
buyshort(holding=0,1,market);
end