[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-pctrank-en":3},"# Percent Rank (PCTRANK)\n\n> StratCraft indicator page for rolling percentile rank.\n\n**Route**: `\u002Findicators\u002Fpctrank\u002F`\n\n## What It Does\n\nPCTRANK ranks the current value against the recent lookback window and returns its percentile position.\n\n## Formula\n\n`PctRank = percentile rank of current price in the last period bars`\n\n## Parameters\n\n- `period` - default `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## Common Usage\n\n- Use it to measure where price sits inside its recent distribution.\n- Helpful in mean reversion and extreme-value studies.\n- Combine it with a trend filter to avoid fighting strong moves.\n"]