# 主觀控制(進場)

<進場時初始風險設定與風險試算>

<figure><img src="https://3262635317-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgTTDh6rKgGBMSIjDE2pd%2Fuploads%2FVZerLoXXzO2V89xEmyrL%2Fimage.png?alt=media&#x26;token=cd9e025c-a034-4966-a063-71cb12653b06" alt=""><figcaption><p>主觀進場控制</p></figcaption></figure>

透過左方的橘色區塊，我們可以根據我們想要的初始風險控制在進場前就先進行風險控制設定與部位試算（以損定量），在獲利之後則可以在右側自動進行可加碼部位試算\
\
這部分由於已經之前已經在官網上寫過，尚不熟悉的新朋友可以在此篇文章進行閱讀：[在程式交易的基礎上踏入主觀交易](https://quantbrains.club/2021/06/22/%E5%9C%A8%E7%A8%8B%E5%BC%8F%E4%BA%A4%E6%98%93%E7%9A%84%E5%9F%BA%E7%A4%8E%E4%B8%8A%E8%B8%8F%E5%85%A5%E4%B8%BB%E8%A7%80%E4%BA%A4%E6%98%93-%E4%B8%80/)

這裡主要針對細節進行補充

<mark style="color:red;">＜以波動率進行進場後的風險控制＞</mark>

如果我們習慣以波動率進行風險控制（海龜），則可以選擇 ATR 或 標準差　（預設週期為40，如果想變更可以在 @QuantTrader\_Connect 的參數裡進行設定）

<mark style="color:red;">＜以固定點數進行進場後的風險控制＞</mark>

如果我們想要以固定點數進行風險控制，則在點選＂固定點數＂之後，直接進行點數的設定即可

<mark style="color:red;">＜直接在圖表上畫線進行進場後的風險控制＞</mark>

如果我們想要用最直觀的方式，直接在圖表上畫一條線進行風險控制，我們可以使用ＭＣ的畫圖工具在圖表上畫一條趨勢線，畫好之後使用滑鼠右鍵取得該線的編號，填入橘色框右下角的TL\[0]趨勢線編號，點選 "連線" 按鈕，QuantTrader便可以直接取得此趨勢線的數值進行出場的風險控制

<mark style="color:red;">＜以自訂公式計算緩衝區間＞</mark>

如果我們希望透過自己設計的公式來進行風險控制也是可以的，匯入安裝公式包之後，新增訊號@QuantTrader\_CustomRiskBuffer\_DEMO，在此訊號中我們可以撰寫自己想要的風險緩衝公式，設定好ConnectString，在 @QuantTrader\_Connect中以相同的 ConnectString 即可。

<mark style="color:red;">＜暫時不考慮風險控制＞</mark>

當我們只想進行投資組合配置或是存股等目的，暫時不需要風險控制，透過＂先不設定＂選項，我們可以先略過此步驟。


---

# 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://yuting0103.gitbook.io/quanttrader-tu-biao-jiao-yi-ping-tai/zhu-guan-kong-zhi-jin-chang.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.
