請運選擇權帳戶原先30多萬,幾秒鐘負債ꨠ… - 期貨
By Lauren
at 2011-01-25T11:54
at 2011-01-25T11:54
Table of Contents
※ 引述《twnin (掩飾)》之銘言:
: 這個版資工本科的一堆,應該不難理解程式應該如下,以避免下單超出保證金餘額
: A = 最低賣盤價格
: B = 最低賣盤口數
: C = 戶頭保證金餘額
: D = 已成交口數
: E = 委託口數
: while(D<E AND C>A)
: {
: F = MIN(B, C/A, E-D);
: 下單(A價位, F口);
: }
不可能這樣下單的,市價單就是要儘速成交,除非超過限制,不然不會分次下單。
就算通通用 IOC 下去,也會丟掉很多成交機會。
用現價加一檔連續下單就知道了,哪怕是用程式交易都不如市價單,
因為你拿不到優先撮合的次序,何況還是這種被動式的賣盤出價才下單,
根本是同價位中優先次序最低的交易方式,這只有在跌價時才有用。
只要有做基本的保證金檢查,就不會讓你下到超出漲停價乘上口數的單,
同時還得先扣掉其他未成交的單。
不做這個檢查,要嘛是券商給客戶方便,那就是券商要賠,
要嘛是擺明了責任自負不做限制,若有問題就是大家打官司吧,
程式一開始就寫錯的機會太低,因為保證金檢查太常用,
沒做檢查很容易就發現,有檢查但沒有設定例外的話,通通會檢查,
不太可能市價單莫名奇妙地成了例外狀況。
因為市價買單在實務上就是下漲停價的限價買單。
--
: 這個版資工本科的一堆,應該不難理解程式應該如下,以避免下單超出保證金餘額
: A = 最低賣盤價格
: B = 最低賣盤口數
: C = 戶頭保證金餘額
: D = 已成交口數
: E = 委託口數
: while(D<E AND C>A)
: {
: F = MIN(B, C/A, E-D);
: 下單(A價位, F口);
: }
不可能這樣下單的,市價單就是要儘速成交,除非超過限制,不然不會分次下單。
就算通通用 IOC 下去,也會丟掉很多成交機會。
用現價加一檔連續下單就知道了,哪怕是用程式交易都不如市價單,
因為你拿不到優先撮合的次序,何況還是這種被動式的賣盤出價才下單,
根本是同價位中優先次序最低的交易方式,這只有在跌價時才有用。
只要有做基本的保證金檢查,就不會讓你下到超出漲停價乘上口數的單,
同時還得先扣掉其他未成交的單。
不做這個檢查,要嘛是券商給客戶方便,那就是券商要賠,
要嘛是擺明了責任自負不做限制,若有問題就是大家打官司吧,
程式一開始就寫錯的機會太低,因為保證金檢查太常用,
沒做檢查很容易就發現,有檢查但沒有設定例外的話,通通會檢查,
不太可能市價單莫名奇妙地成了例外狀況。
因為市價買單在實務上就是下漲停價的限價買單。
--
Tags:
期貨
All Comments
By Tracy
at 2011-01-30T01:17
at 2011-01-30T01:17
By Tristan Cohan
at 2011-01-31T15:14
at 2011-01-31T15:14
By Candice
at 2011-02-02T12:59
at 2011-02-02T12:59
By Caitlin
at 2011-02-06T16:24
at 2011-02-06T16:24
By Eartha
at 2011-02-10T23:24
at 2011-02-10T23:24
By Irma
at 2011-02-12T00:34
at 2011-02-12T00:34
By Rosalind
at 2011-02-12T17:50
at 2011-02-12T17:50
By Agnes
at 2011-02-17T01:18
at 2011-02-17T01:18
By Caroline
at 2011-02-20T01:22
at 2011-02-20T01:22
By Carol
at 2011-02-22T10:45
at 2011-02-22T10:45
By Tristan Cohan
at 2011-02-23T13:46
at 2011-02-23T13:46
By Agatha
at 2011-02-25T23:30
at 2011-02-25T23:30
By Belly
at 2011-02-28T11:56
at 2011-02-28T11:56
By Vanessa
at 2011-03-01T08:08
at 2011-03-01T08:08
By Audriana
at 2011-03-03T15:28
at 2011-03-03T15:28
By Hedda
at 2011-03-06T06:01
at 2011-03-06T06:01
By Andrew
at 2011-03-09T05:42
at 2011-03-09T05:42
By Yedda
at 2011-03-11T15:53
at 2011-03-11T15:53
By Isla
at 2011-03-13T18:41
at 2011-03-13T18:41
By Frederica
at 2011-03-17T13:44
at 2011-03-17T13:44
By Yuri
at 2011-03-19T11:29
at 2011-03-19T11:29
By Barb Cronin
at 2011-03-20T16:27
at 2011-03-20T16:27
By Gary
at 2011-03-22T06:54
at 2011-03-22T06:54
By Rae
at 2011-03-24T11:30
at 2011-03-24T11:30
By Leila
at 2011-03-26T15:18
at 2011-03-26T15:18
By Dora
at 2011-03-31T06:47
at 2011-03-31T06:47
By Jacob
at 2011-04-03T01:49
at 2011-04-03T01:49
Related Posts
請運選擇權帳戶原先30多萬,幾秒鐘負債ꨠ…
By Ina
at 2011-01-25T11:41
at 2011-01-25T11:41
[問題] 這有違反選擇權原理嗎?笑了
By Aaliyah
at 2011-01-25T11:37
at 2011-01-25T11:37
請運選擇權帳戶原先30多萬,幾秒鐘負債? …
By Puput
at 2011-01-25T10:41
at 2011-01-25T10:41
請運選擇權帳戶原先30多萬,幾秒鐘負債ꨠ…
By Delia
at 2011-01-25T10:36
at 2011-01-25T10:36
請運選擇權帳戶原先30多萬,幾秒鐘負債ꨠ…
By Olivia
at 2011-01-25T10:08
at 2011-01-25T10:08