> 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/quantbrainsconnectmc-duan/untitled.md).

# 匯入QuantBrains\_Connect\_X1

在QauntBrains\_Connect＿X1中我們實作了前面<<基礎觀念>>篇中我們提到的兩個東西，"資金標準化函數"（風險平價，RiskParityAllocation）與"評價函數"（Opt-F）

**前置工作**

從討論區內下載壓縮包之後，在本地端電腦進行解壓縮，可以看到下面的檔案

![](/files/-MkBbrmm5fk5b7-N0UKr)

其中 outputfile32.dll/outputfile64.dll 為文字檔輸出呼叫用的DLL動態函數庫，可供 QuantBrains＿Connect呼叫使用，請將 outputfile\_64.dll放置到你想要的位置（例如 C:\MyDLL\ 或是 R:\）

QuantBrainsConnect.pla 為準備匯入至Multicharts 端使用的函數庫

1. 現在我們開啟Multicharts 內的 PowerLanguage Editor 進行基本指標匯入的工作

![](/files/-MkBfW6Ira4FmxPC4hjE)

![](/files/-MkBf_xYRDsaWxhU-1M-)

![](/files/-MkBfo2ue-6H74E6ZTB1)

![](/files/-MkBfroqskjeWRxuMgcA)

選取OK進行匯入並編譯

**註: QuantBrains\_Connect 內需指定 outputfile\_x64.dll 的實際位置，請找到DefineDLLfunc 指令行並修改 outputfile\_x64.dll 的實際位置**


---

# 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/quantbrainsconnectmc-duan/untitled.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.
