[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-pctrank-zh-tw":3},"# 百分比排名 (Percent Rank)\n\n> 滾動百分位排名的 StratCraft 指標頁面。\n\n**Route**: `\u002Findicators\u002Fpctrank\u002F`\n\n## 作用\n\nPCTRANK 將目前值與最近的回看窗口進行排名，並返回其百分位位置。\n\n## 公式\n\n`PctRank = 目前價格在過去 n 個週期柱線中的百分位排名`\n\n## 參數\n\n- `period` - 預設 `50`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fpctrank.hpp>\nauto pctRank = std::make_unique\u003Cnonabt::PCTRANK>(data().close(), 50);\n```\n\n## 常見用法\n\n- 用於衡量價格在其近期分佈中所處的位置。\n- 有助於均值回歸和極值研究。\n- 將其與趨勢過濾器結合，以避免過早逆勢交易。\n"]