跳到主要內容

Tradestation 期貨編碼原則

Futures Symbols
The symbology for futures symbols depends on if it is an individual contract or a continuous contract. Futures symbols also use aliases to indicate what type of trading activity they represent, electronic only, pit only, or both electronic and pit. There is also an alias available for the day session of symbols that trade electronically 24 hours a day.

The symbols used for the Order Bar and the display of data in TradeStation may differ from the symbols used for the Account: Futures window for some futures and futures options. See Futures/Futures Options Symbology Exceptions for more information. You can also download the TradeStation Futures Symbol Reference, a document detailing the futures symbols that are traded on each exchange.

What would you like to do?
Individual Contracts

Continuous Contract Root Symbol

Continuous Contract Individual Symbol

Custom Continuous Contract Parameters

Alias Extensions

Daily Expiring Futures


--------------------------------------------------------------------------------

Individual Contracts
The symbology for an individual futures contract is the root (which may be one or two characters), followed by the month code, a two-digit year code, a decimal and the alias extension (optional).



Monthly Expiring Futures: [Symbol root][ Month code][ Year code].[Optional Extension]

Daily Expiring Futures (details below): [Symbol root][ Day code][ Month code][ Year code].[Optional Extension]



For example:

Electronic futures contracts for the S&P 500 June 2003 are displayed as SPM03. No extension is required for electronic futures symbols.

Pit traded futures contracts for the S&P 500 March 2003 Pit are displayed as SPH03.P




See the Aliases Extensions section below for an explanation of the .P extension.


--------------------------------------------------------------------------------

Continuous Contract Root Symbol
The symbology for a continuous futures contract is an at-sign (@) followed by the symbol root and an optional alias extension (preceded by a decimal point). This allows you to plot and back-test a futures contract by automatically linking the current and previous contracts at rollover points to ensure continuity.



You may not automate strategies or place an order using the symbol root continuous contract (see Continuous Contract Individual Symbol below).



@[Symbol root].[Optional Extension]

For example, continuous futures contracts for the S&P 500 Electronic are displayed as @SP. For more information on continuous contracts, see Continuous Futures Contracts.


--------------------------------------------------------------------------------

Continuous Contract Individual Symbol
The at-sign (@) may also be used with an individual contract symbol to plot and back-test the historical continuous contract data while also permitting orders to be placed for the specified individual contract, including automated strategy orders.



@[Symbol root][ Month code][ Year code].[Optional Extension]

For example, a continuous individual contract futures symbol for the S&P 500 June 2003 is displayed as @SPM03.


--------------------------------------------------------------------------------

Custom Continuous Contract Parameters
A continuous contract root or individual symbol can include custom continuous parameters that allow you to determine the values used for describing custom contract rollovers.



@[Symbol root][ Month code][ Year code].[Optional Extension]=[Custom Continuous Parameters]

For example, a custom continuous contract symbol based on the S&P 500 June 2006 with a September 2006 rollover (based on open interest and using a constant back adjust) is displayed as @SPM06=11INC . See Custom Continuous Futures Symbology for more information.


--------------------------------------------------------------------------------

Alias Extensions
The following extensions are used to indicate the type of trading activity. Extensions are optional; if you don't add an extension after a futures symbol, the data for the electronic only will be displayed.



.P = Pit only

.C = Composite (This extension includes data from both electronic and pit activity)

.D = Electronic day only



This extension is available only for those symbols that trade 24 hours a day electronically, such as the E-Mini S&P 500 which starts trading at 15:45 Central and continues until 15:15 Central. For example, to view only the day session for the E-Mini S&P 500 March 2003 Electronic, you would append .D to the symbol, so it would become ESH03.D.



The extension is appended to the symbol root after a decimal.


[Symbol root].[Optional Extension]

For example, SPM03.P indicates a future contract of the S&P 500 June 2003 Pit.

留言

這個網誌中的熱門文章

來自小肥牛的網誌:善用Tradestation中的停損及買賣指令

我覺得小肥牛是個很會講解的部落客,他把TS中的Stop Order 解說的很好: http://tw.myblog.yahoo.com/futurex168/article?mid=218 為了提醒我自己,我把自己的經驗也是小肥牛所寫的,po在下面 但有TradeStation程式經驗的人,就知道這 if-then 與 stop/limit 寫法還是有些不同,若是寫成 stop order 的方式,在報價只要一碰到價,下一個 tick 就會send order 並成交,但若是用 if-then order, TradeStation 的邏輯判斷是在K-bar 結束才執行,也就若是5 min kbar,在第一分就觸價,就等到第5分鐘,且close仍高於7600才會下order,也就是差了 4 分鐘,在TradeStation 8 可以將next bar 模式改為 this bar 模式 (請參考文章 http://tw.myblog.yahoo.com/futurex168/article?mid=182 ), 就可以在觸價的下一個 tick ,就立刻 send order,而有與 stop order 比較相近的行為。 但基本上,即使在 this bar 模式,這兩者還是有所不同,第一個不同是用 if-then order + this bar 模式,等於每一個 tick,程式都要去判斷邏輯是否成立,造成 cpu 的 loading 變很大,且很多邏輯可能無法在 1 個 tick 中結束,所以也是會有 tick delay。 第二差異是 if-then order 是在 local PC 端作判斷,也是當價格成立時,server 先將價格透過網路從美國期交所送TradeStation Server(美國)再到家裡PC(台灣),PC 執行邏輯判斷後,確認價格成立,再送一個市價單到TradeStation Server(美國),然後再轉送到美國期交所。 若是 stop order,則會在k bar 一開始,就將 order 送到 TradeStation Server(美國),並轉送到美國期交所內,當價格一成立,就會直接在期交所內成交,並將確認訊息傳回TradeStation Server(美國)再傳回家裡PC(台灣)。 所以用 TradeStation 作美國期貨,若...

autoit hts 自動下單交易範本,從日上發發發轉貼

來源: http://www.nisan.us/modules/newbb/viewtopic.php?topic_id=10000 ; AutoIt Version: 3.0 ; Language: English ; Platform: Win9x/NT ; autoDanB66 ~~日上發發發-浮雲~~ 有問題請聯絡aircop001@gmail.com, http://www.nisan.us , 或至討論區討論 ; autoDanB673 ~~日上發發發~KCA~~ 此版本新增 HTS 斷線重連機制 ;若要解除請按 Ctrl-Alt-Del 解除按鍵鎖住,並 del AutoIt.exe 處理程緒 ;; config setup $YOUR_HTS_PASSWORD = "your_hts_password" ;; 字串內 your_hts_password 請改成您 HTS 的密碼 $HTS_PATH = "C:\JihSun\HTS2\JSCOM.EXE" ;;記得把快易點的路徑檔名修改 ;;$HTS_PATH = "C:\Program Files\日盛HTS快易點 2.0\JSCOM.EXE" $dan_PATH = "C:\danB\danB.exe" ;;記得把下單機的路徑和檔名修改一下,注意大小寫有區分 $dan_name = "danB.exe" $dan_WIN = "日上發發發下單機 Beta 0.71" ;;下單機版本也要修改哦! AutoItSetOption("TrayAutoPause",0) AutoItSetOption("TrayIconHide",0) If ProcessExists("JSCOM.EXE") Then ProcessClose("JSCOM.EXE") ProcessClose("JSHTSMain.exe") Sleep(3000) EndIf BlockInput(1) ;;鎖定鼠標和鍵盤! 取消按鍵 Ctrl+Alt+Del Run($HTS_PATH) Sleep(5000) ...

2009/01/19 SLD DDM @$27.76

當初滿心以為會開始上漲,結果跟大勢一樣… 往下直殺… SOLD DDM @27.76 --> 停損出場。 以後要先考量到整個市場的廣度再出手吧!… 這次損失慘重… 不過,可以確認的是… 熊市反彈就此結束… 讓我訝異的是,有那麼快喔!? 所以不要對未來有什麼幻想,應該實事求是…看訊號操作吧!