> 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/jing-tai-hui-ce-fan-li/liang-hua-si-wei-zhan-lve-jiao-yi-ping-tai/ru-he-tao-yong-dao-zi-ji-de-ce-lve.md).

# 如何套用到自己的策略

@QB\_Static\_BackTest\_Pass  不用修改（但可以新增與改寫你自己的濾鏡）

如果要套用在自己的策略上，請參考與比對下面兩隻訊號的源碼

@QB\_Strategy\_PureTrend （原始策略）&#x20;

&#x20;@QB\_Strategy\_PureTrend\_GetDMM （原始策略+接收來自@QB\_Static\_BackTest\_Pass的資訊後進行部位管理）

後者是由前者修改而來

也就是你會需要一支你自己的策略（原始策略）

@你自己的策略    與    @你自己的策略\_GetDDM

原則上步驟就是

1. 新增訊號， ＠你自己的策略\_GetDDM，並將 @QB\_Strategy\_PureTrend\_GetDMM的內容複製過去
2. 刪除裡面 @QB\_Strategy\_PureTrend 的內容，換成你自己的策略
3. 並將 buy / sellshort 買賣式中間插入部位的資訊\
   buy next bar  ===> buy **longpart contract** next bar\
   sellshort next bar ===> sellshort **shortpart contract** next bar
