{价格大于前60分钟[最髙价+最低价+收盘价]除3+[前60分钟的最高价-前60分钟最低价]时开空单
价格小于前60分钟[最高价+最低价+收盘价]除3-[前60分钟最高价-前60分钟最低价]时开多单
多空单赢利50点平仓 要求时间在30至300分钟可调 点数在10至300点可调
}
input:n(60,30,300,1);
input:m(50,10,300,1);
if h>(ref(h+l+c,n)/3+ref(h-l,n)) then begin
buyshort(holding=0,1,market);
end
if l<(ref(h+l+c,n)/3-ref(h-l,n)) then begin
buy(holding=0,1,market);
end
if h-enterprice>m*mindiff and holding>0 then begin
sell(1,0,market);
end
if enterprice-l>m*mindiff and holding<0 then begin
sellshort(1,0,market);
end