> For the complete documentation index, see [llms.txt](https://yuting0103.gitbook.io/quantbrains/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yuting0103.gitbook.io/quantbrains/untitled-2.md).

# QuantBrains新版下單模組(將單子下回Multicharts)

QuantBrains新版下單模組(將單子下回Multicharts)

（下單套件已包含在 QuantBrains＿Connect函數包中） （@QB\_To\_STO 同下列設定步驟）

1. 初次使用請先自行修改\_QB\_Order\_FromTXT 與 \_readNum 公式中的 outputfile\_64.dll (壓縮檔內的新版) 存放路徑
2. 請開啟你想要下單的商品，周期使用 1秒鐘，數據範圍照預設使用 80即可

![](/files/-MlTSsyOte1taZg69985)

&#x20;3\. 參數有兩個，\
第一個參數為商品訊號檔請設定　QuantBrains 所輸出的訊號檔 **(QB平台內輸出格式請設定 $PositionQBN )**

![](/files/IfAyAxvXKKHA0fgq82oi)

\
第二個參數為暫存檔位置，請指定暫存檔的檔名與目錄位置。 **(暫存檔內容請預填 0QBN)**

![](/files/-MlTT1gtyXqXHtG3NiwA)

（如果是 @QB\_To\_STO ，請多設定一個 accountall.txt 路徑）

4\. 策略屬性設定

允許同向下單， 填入一個較大的值

![](/files/-MlTTQZ5FzpGwacCGEA8)

5\. 如果想跑的是分鐘或日線圖，請在訊號設定中變更單一K棒內的可執行訊號次數

![](/files/-MlTTZBKqXnpF84BNISz)

6\. 接下來按照原有MC的設定AA自動下單即可

\== 註:

會有這個套件基本上是因為我合作的部分期經公司或大陸的基金管理公司沒有提供方便的自動下單機，因此只好使用這樣的方式將結果送回MC下單 這樣的方式在穩定度與速度(MC是tick驅動計算，所以可能會慢一兩個tick)皆無法跟自動下單機(如下單大師)相比。建議大家如果有其他選擇(如下單大師)，則應該以其他選擇為優先。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://yuting0103.gitbook.io/quantbrains/untitled-2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
