PROTECTED SOURCE SCRIPT

Bull-Bear Power ZScore - by Trading Pine Lab

45
๐Ÿ‡ฌ๐Ÿ‡ง
The Bull-Bear Power ZScore Strategy is an advanced trading framework that integrates Bull-Bear Power (BBP) with a statistical Z-Score model.
BBP measures the relative strength of buyers vs. sellers against an EMA baseline, while the Z-Score standardizes this relationship to detect statistically significant breakouts.
This dual-layer approach provides early trend detection while reducing noise from raw momentum signals.

Entries are triggered when the Z-Score crosses above or below its threshold (long above +T, short below โ€“T). Exits occur when the Z-Score crosses back to zero, ensuring trades close when momentum fades.
A dynamic multi-level take-profit system is integrated, using ATR-based targets (TP1, TP2, TP3) that automatically adapt to **volume context** (high/medium/low) and **percentile analysis** (distribution of price and volume).
This ensures profit targets stretch in strong environments and tighten in weaker conditions, optimizing both risk and reward.

All parameters are fully configurable:

-Bull-Bear Power Settings: EMA length, Z-Score length, Z-Score threshold.
-Take Profit Settings: enable/disable TP system, ATR period, TP1โ€“TP3 multipliers, TP1โ€“TP3 position sizes.
-Volume Analysis: volume MA period, high/medium/low multipliers, adjustment factors.
-Percentile Analysis: percentile lookback period, high/medium/low thresholds, adjustment factors.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.