ma1:=ma(c,5);
ma2:=ma(c,10);
ma3:=ma(c,20);
if ma1>ma2 and c>ma2 and ma3>ref(ma3,1) then begin
sellshort(1,0,thisclose);
buy(holding=0,1,thisclose);
end
if ma1<ma2 and c<ma2 and ma3<ref(ma3,1) then begin
sell(1,0,thisclose);
buyshort(holding=0,1,thisclose);
end
2.要设置框架
3.这个很难总结,是两种不同的语言