自動換月 - 財經

By Wallis
at 2011-04-10T01:24
at 2011-04-10T01:24
Table of Contents
最近我越來越懶了
之前都是用手動換月的方式
今天把想寫一個自動換月的小程式
請各位幫我看看會不會例外的情況發生
其實還滿麻煩的@@
if 當天>=到期日-7天 and 開盤前 and 沒留倉 then
當日觸價單改成下個月
之後觸價單設定成下個月
end
if 當天=到期日 and 有留倉 and 留倉為當月份 then
當九點半換月
換完月觸價單設定成下個月
endif
我反覆推算多次 這樣寫應該不會有奇怪的情況發生
寫程式要考慮好多邏輯BUG...
--
之前都是用手動換月的方式
今天把想寫一個自動換月的小程式
請各位幫我看看會不會例外的情況發生
其實還滿麻煩的@@
if 當天>=到期日-7天 and 開盤前 and 沒留倉 then
當日觸價單改成下個月
之後觸價單設定成下個月
end
if 當天=到期日 and 有留倉 and 留倉為當月份 then
當九點半換月
換完月觸價單設定成下個月
endif
我反覆推算多次 這樣寫應該不會有奇怪的情況發生
寫程式要考慮好多邏輯BUG...
--
Tags:
財經
All Comments

By Blanche
at 2011-04-14T10:34
at 2011-04-14T10:34

By Vanessa
at 2011-04-18T09:42
at 2011-04-18T09:42

By Michael
at 2011-04-21T03:27
at 2011-04-21T03:27

By Faithe
at 2011-04-24T13:56
at 2011-04-24T13:56

By Frederica
at 2011-04-26T06:59
at 2011-04-26T06:59

By Quintina
at 2011-04-30T18:05
at 2011-04-30T18:05

By Charlie
at 2011-05-05T05:08
at 2011-05-05T05:08

By Quanna
at 2011-05-05T13:14
at 2011-05-05T13:14

By Kumar
at 2011-05-05T20:43
at 2011-05-05T20:43

By Wallis
at 2011-05-10T19:57
at 2011-05-10T19:57

By Ingrid
at 2011-05-13T16:26
at 2011-05-13T16:26
Related Posts
請問台指期造市者的成交量有包含在自營商的成交量裡嗎??

By Carolina Franco
at 2011-04-09T22:54
at 2011-04-09T22:54
台指期操作系統筆記4/6

By Tracy
at 2011-04-09T17:14
at 2011-04-09T17:14
台指期操作系統筆記4/6

By Erin
at 2011-04-09T15:21
at 2011-04-09T15:21
台指期操作系統筆記4/6

By Leila
at 2011-04-09T12:22
at 2011-04-09T12:22
forextw007 在做啥?

By Belly
at 2011-04-07T12:55
at 2011-04-07T12:55