> For the complete documentation index, see [llms.txt](https://touchance-1.gitbook.io/touchance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://touchance-1.gitbook.io/touchance/multicharts/jia-zhi-han-shu/mcextendquote/re-men-yue-han-shu-gethotchange.md).

# GetHotChange

## **語法**

```
GetHotChange(Symbol_NAME,EL_Date,El_times,TimeZone);
```

## **範例**

查詢 CME.GC HOT合約的換月狀態，存入 test 字串變數並列印結果。

```
var:test("");
test = GetHotChange("CME.GC HOT",Date,time_s,1);
print(D,"	",T,"	",test,"	",symbol);
```

**輸出結果**

```
1200128.00	 615.00	CME.GC 2002	CME.GC HOT
1200129.00	 615.00	CME.GC 2002	CME.GC HOT
1200130.00	 615.00	CME.GC 2002	CME.GC HOT
1200131.00	 615.00	CME.GC 2004	CME.GC HOT
1200201.00	 615.00	CME.GC 2004	CME.GC HOT
```

## **參數**

| **名稱**       | **類型** | **說明**                                          |
| ------------ | ------ | ----------------------------------------------- |
| Symbol\_NAME | 字串型    | 熱門月商品的代碼，如：CME.GC HOT                           |
| EL\_Date     | 數值型    | 查詢的日期                                           |
| EL\_times    | 數值型    | 查詢的時間                                           |
| TimeZone     | 數值型    | <p>顯示時區方式</p><p>0：本地；1：交易所 ( 需跟圖表時區搭配才會正確 )</p> |

{% hint style="warning" %}
只限熱門月商品才可查詢。
{% endhint %}
