> For the complete documentation index, see [llms.txt](https://touchance-1.gitbook.io/touchance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://touchance-1.gitbook.io/touchance/ping-jia-da-shi/xun-hao-yu-can-shu/hui-ce-zhi-biao/step-1-han-shu.md).

# Step 1 函數

這裡整理了回測 Step 1 使用的函數

## **@DVC5\_PassEq\_Chart**&#x20;

將自定義策略的績效進行多空拆解，多空個別評價，於圖表上使用。

| **參數**       | **說明**                                                              |
| ------------ | ------------------------------------------------------------------- |
| **Strategy** | <p>該商品之策略編號，需為大於 0 之整數，從數字1起依序向上編號。<br>不同商品皆須從 1 開始編號，不可混合接續編號。</p> |

{% hint style="info" %}
@DVC5\_PassEq\_Chart 是圖表用戶回測專用，使用 PT 的用戶請使用 @DVC5\_PassEq。
{% endhint %}

## **@DVC5\_PassEq**

將自定義策略的績效進行多空拆解，多空個別評價，於 PT 上使用。

| **參數** | **說明** |
| ------ | ------ |
| **無**  | 無      |

## **@DVC5\_OriginalMM**

输出原始策略组合之绩效。

| **參數**          | **說明**                                                                         |
| --------------- | ------------------------------------------------------------------------------ |
| **CapitalName** | 原始策略組合之權益曲線名稱，命名規則為"UD.MCQuote.xxx"，其中 xxx 為自定義字符串。預設為 "UD.MC.Quote.Original"。 |
| **RealCapital** | 實際交易使用的資金基底，作為原始策略組合的績效起點。                                                     |

圖表輸出範例：

![](https://3597972080-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LjshLkSszAVTJikUlPY%2F-M5_EKEGLu9jt_BMHRTd%2F-M5_EVNqhRDptALJWqI3%2Fimage.png?alt=media\&token=22f71f2f-6ac5-4f99-8231-637d6fd0c97e)

<br>
