-- 作者:z7c9
-- 发布时间:2013/3/25 10:52:42
-- [原创]ETF趋势跟踪
runmode:0;
money:=5000;
lots:=intpart(money/open/volunit)*volunit;
length:=20;
myma:ma(open,length);
entrylongcond:=open>myma; exitlongcond:=open<myma;
if holding=0 then begin if entrylongcond then buy(1,lots,limitr,open); end
if holding>0 then begin if exitlongcond then sell(1,holding,limitr,open); end
盈亏:asset-500000,noaxis,coloryellow,linethick2; 此主题相关图片如下:ppp.png
|