> 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 的實際位置**
