波段选股王,etf指标公式
波段选股王,etf指标公式?
金子塔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;