{價格大于前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