奇狐社區論壇
在這個頁面顯示本主題全部的 3 個文章

奇狐社區論壇 (http://www.chiefox.com.tw/bbs/index.php)
- 問題交流 (http://www.chiefox.com.tw/bbs/forumdisplay.php?forumid=28)
-- 期貨跨月 (http://www.chiefox.com.tw/bbs/showthread.php?threadid=17274)


由 Markchu7 在 2012-11-19 01:28 發表:

期貨跨月

MONTH<>REF(MONTH,1);這是跨月的第1根K棒;
請問期貨跨月第1根K棒如何表示?用於5分鐘週期!感恩!


由 cgjj 在 2012-11-19 13:16 發表:

回覆: 期貨跨月

引用:
最初由 Markchu7 發表
MONTH<>REF(MONTH,1);這是跨月的第1根K棒;
請問期貨跨月第1根K棒如何表示?用於5分鐘週期!感恩!



//以下僅適用於 v5.0 版
DESP:=barslast(date<>ref(date,1))+1;
OPDE:=OptionLastDay('FITX1');
CkXX:=date>=1081217 and date=ref(OPDE,DESP); //處理新制
OPDE:=if(CkXX,ref(OPDE,DESP),OPDE);
OPCG:=opde<>ref(opde,1);
VERTLINE(OPCG) linedot;

//以下僅適用於 v5.1 版
OPDE:=OptionLastDay('FITX1');
OPCG:=opde<>ref(opde,1);
VERTLINE(OPCG) linedot;


由 Markchu7 在 2012-11-19 14:18 發表:

感謝指導!


全部時間均為台灣時間, 現在時間為18:16
在這個頁面顯示本主題全部的 3 個文章


Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.

簡愛洋行 製作 Copyright 2003-. All Rights Reserved.