請問HTS輸出下單訊號 - 期貨

By Lauren
at 2009-07-09T11:44
at 2009-07-09T11:44
Table of Contents
我用五分K測試輸出下單訊號
K線收盤價大於3均線買進,反之賣出
為何我的下單訊號會一直重複輸出呢
而且買賣也不對
我找好久,程式看起來沒問題啊
有沒有高手可以幫我看一下
謝謝!!
Param : MA(3)
condition1=close cross over average(close,MA)
condition2=close cross below average(close,MA)
if condition1 then buy("buy") next bar at market
if date = lastcalcdate and time = LastCalcTime then
FileAppend("C:\order.txt", NumToStr(Q_Time,0) + "XXXX1XXXX" + "|r|n")
end if
end if
if condition2 then sell("sell") next bar at market
if date = lastcalcdate and time = LastCalcTime then
FileAppend("C:\order.txt", NumToStr(Q_Time,0) + "XXXX-1XXXX" + "|r|n")
end if
end if
Tags:
期貨
All Comments

By Jacob
at 2009-07-09T23:41
at 2009-07-09T23:41

By Sarah
at 2009-07-14T21:53
at 2009-07-14T21:53

By Mia
at 2009-07-17T17:42
at 2009-07-17T17:42

By Skylar DavisLinda
at 2009-07-21T09:50
at 2009-07-21T09:50

By Rae
at 2009-07-22T17:45
at 2009-07-22T17:45

By Necoo
at 2009-07-27T11:51
at 2009-07-27T11:51
Related Posts
期交所 上半年賺10億

By Thomas
at 2009-07-09T09:42
at 2009-07-09T09:42
7.8十大惡人、三大散戶籌碼分析圖/Job

By Kama
at 2009-07-09T09:06
at 2009-07-09T09:06
2009/07/09 盤中閒聊

By Margaret
at 2009-07-09T00:26
at 2009-07-09T00:26
98-07-08 OI簡表

By Caitlin
at 2009-07-08T22:17
at 2009-07-08T22:17
大額交易人期貨未平倉資料 2009/7/8

By Damian
at 2009-07-08T21:48
at 2009-07-08T21:48