回覆: 期貨跨月
引用: 最初由 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;
|