# PutMCDataT

## 語法

```
PutMCDataT(DB_Name,Time_Stamp,Key,Value)
```

## 範例

在圖表 A，K 棒時間為 10:00 時，將主圖商品名稱，存入標記為 GVsymbol 的 Key 中，該數據將會寫入名為 GV01 的暫存文件哩，並將時間戳記標為 20170102。

```
if T=1000 then PutMCDataT("GV01",20170102,"GVsymbol",Symbol);
```

## 參數

| **參數**      | **類型** | **說明**                                                     |
| ----------- | ------ | ---------------------------------------------------------- |
| DB\_Name    | 字串型    | 儲存數據的文件名稱。                                                 |
| Time\_Stamp | 數值型    | 讀取數據的時間戳記，可以是任意指定時點或K棒時間，如1200114 or Date+Time\_s/1000000。 |
| Key         | 字串型    | 讀取數據的標記名稱。                                                 |
| Value       | 字串型    | 欲儲存的數據變量。                                                  |
|             |        |                                                            |

{% hint style="warning" %}
無須設定文字檔路徑，只需設定文件名稱即可傳值。
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://touchance-1.gitbook.io/touchance/multicharts/jia-zhi-han-shu/gv-plus/putmcdatat.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
