PROTECTED SOURCE SCRIPT
Bull-Bear Power ZScore - by Trading Pine Lab

🇬🇧
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.
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.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.