HTS語法的毛病 - 財經
By Zanna
at 2009-08-02T21:50
at 2009-08-02T21:50
Table of Contents
我也有類似的問題
Parameter: fastlength(20)
If Close[1]>MA(close,fastlength)[1] then
If MA(close,fastlength)[1]>MA(close,fastlength)[2] then
If open >=MA(close,fastlength)[1] then
Buy("買進") this bar at open stop
end if
End if
End if
If CurrentContracts=1 then
If Open<MA(close,fastlength)[1] then
ExitLong From Entry ("買進") this bar at open stop
End if
Else
if MA(close,fastlength)[1]<Open then
if low<MA(close,fastlength)[1] then
ExitLong From Entry ("買進") this bar at MA(close,fastlength)[1] stop
End if
END if
End if
有時明明盤中跌破20MA,還是沒停損,等到隔天開盤才停損
我也一直想不出錯在哪裡?
有沒有大大能幫忙一下?
--
Parameter: fastlength(20)
If Close[1]>MA(close,fastlength)[1] then
If MA(close,fastlength)[1]>MA(close,fastlength)[2] then
If open >=MA(close,fastlength)[1] then
Buy("買進") this bar at open stop
end if
End if
End if
If CurrentContracts=1 then
If Open<MA(close,fastlength)[1] then
ExitLong From Entry ("買進") this bar at open stop
End if
Else
if MA(close,fastlength)[1]<Open then
if low<MA(close,fastlength)[1] then
ExitLong From Entry ("買進") this bar at MA(close,fastlength)[1] stop
End if
END if
End if
有時明明盤中跌破20MA,還是沒停損,等到隔天開盤才停損
我也一直想不出錯在哪裡?
有沒有大大能幫忙一下?
--
Tags:
財經
All Comments
By Frederic
at 2009-08-06T16:43
at 2009-08-06T16:43
By Isla
at 2009-08-08T02:21
at 2009-08-08T02:21
By Xanthe
at 2009-08-12T20:44
at 2009-08-12T20:44
By Dorothy
at 2009-08-17T16:03
at 2009-08-17T16:03
Related Posts
tradestation問題
By Selena
at 2009-08-02T13:19
at 2009-08-02T13:19
hts問題關於買賣訊號與顏色
By Agnes
at 2009-07-31T09:19
at 2009-07-31T09:19
交易策略分散_附超強程式報表
By Daniel
at 2009-07-31T08:03
at 2009-07-31T08:03
hts問題關於買賣訊號與顏色
By Edward Lewis
at 2009-07-31T01:16
at 2009-07-31T01:16
hts問題關於買賣訊號與顏色
By Hardy
at 2009-07-30T21:47
at 2009-07-30T21:47