60分鐘線的回測績效如下:



簡單的程式…就能有不錯的獲利能力…這隻程式的程式碼如下:
if low > averagefc(close, 72) and low > averagefc(close,18) and close > open and close[1] > open[1] then begin
buy ("b1") next bar at market;
end;
if high < averagefc(close, 72) and high < averagefc(close,18) and close < open and close[1] < open[1] then begin
sell ("s1") next bar at market;
end;
if marketposition > 0 and close < averagefc(close, 18) then begin
exitlong next bar at market;
end;
if marketposition < 0 and close > averagefc(close, 18) then begin
exitshort next bar at market;
end;
有興趣就自己玩玩看囉。
可以轉成hts語法嗎? 感謝您
回覆刪除阿泰回
阿泰:應該不難才對,先自己試試吧。
回覆刪除看看這篇: http://ssdkchang.blogspot.com/2008/08/tradestation-hts.html