OPEN-SOURCE SCRIPT
已更新 Price Regime Oscillator

📊 Price Regime Oscillator (PRC)
🧠 Overview
Price Regime Oscillator (PRC) is a custom-built market regime indicator designed to detect trend direction and momentum shifts using a normalized price-change approach.
Unlike traditional oscillators, PRC focuses on relative price movement over a defined lookback period, then smooths it to produce a cleaner signal. The result is a dynamic regime filter that can be used for both trend identification and entry confirmation.
This indicator is built on the previous PRC Market Regime Indicator, now directly integrated onto the chart. The PRC logic drives the visual representation through the EMA line and candle coloring, providing a clearer and more practical real-time application.
This version integrates PRC directly into the chart by driving:
EMA color (trend filter)
Candle coloring (market bias)
⚙️ How It Works
The core logic is based on:
Price change over a selected period (PRC Length)
Smoothing via EMA (PRC Smoothing)
Signal line using EMA of PRC (EMA Length)
🔑 Signals:
Bullish Regime
PRC crosses ABOVE its EMA
EMA turns green
Candles turn green
Bearish Regime
PRC crosses BELOW its EMA
EMA turns red
Candles turn red
Neutral
No active crossover
No coloring applied
📈 How To Use
✅ Trend Filter
Use EMA color as a simple trend filter:
Green → look for BUY setups
Red → look for SELL setups
✅ Entry Confirmation
Combine with your strategy:
Enter after PRC crossover confirmation
Or wait for pullback while trend color remains active
✅ Best Use Case
Works best in:
Trending markets
Breakout environments
⚠️ Like all indicators, performance may degrade in sideways (range-bound) conditions.
⚙️ Inputs
PRC Length → Lookback period for price change
PRC Smoothing → Noise reduction on PRC
EMA Length → Signal sensitivity
🎯 Key Features
Clean trend visualization directly on chart
PRC-based momentum logic (not standard EMA crossover)
Non-repainting (based on confirmed bar close)
Lightweight and fast
⚠️ Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice. Always use proper risk management and test any strategy before applying it in live trading.
🧠 Overview
Price Regime Oscillator (PRC) is a custom-built market regime indicator designed to detect trend direction and momentum shifts using a normalized price-change approach.
Unlike traditional oscillators, PRC focuses on relative price movement over a defined lookback period, then smooths it to produce a cleaner signal. The result is a dynamic regime filter that can be used for both trend identification and entry confirmation.
This indicator is built on the previous PRC Market Regime Indicator, now directly integrated onto the chart. The PRC logic drives the visual representation through the EMA line and candle coloring, providing a clearer and more practical real-time application.
This version integrates PRC directly into the chart by driving:
EMA color (trend filter)
Candle coloring (market bias)
⚙️ How It Works
The core logic is based on:
Price change over a selected period (PRC Length)
Smoothing via EMA (PRC Smoothing)
Signal line using EMA of PRC (EMA Length)
🔑 Signals:
Bullish Regime
PRC crosses ABOVE its EMA
EMA turns green
Candles turn green
Bearish Regime
PRC crosses BELOW its EMA
EMA turns red
Candles turn red
Neutral
No active crossover
No coloring applied
📈 How To Use
✅ Trend Filter
Use EMA color as a simple trend filter:
Green → look for BUY setups
Red → look for SELL setups
✅ Entry Confirmation
Combine with your strategy:
Enter after PRC crossover confirmation
Or wait for pullback while trend color remains active
✅ Best Use Case
Works best in:
Trending markets
Breakout environments
⚠️ Like all indicators, performance may degrade in sideways (range-bound) conditions.
⚙️ Inputs
PRC Length → Lookback period for price change
PRC Smoothing → Noise reduction on PRC
EMA Length → Signal sensitivity
🎯 Key Features
Clean trend visualization directly on chart
PRC-based momentum logic (not standard EMA crossover)
Non-repainting (based on confirmed bar close)
Lightweight and fast
⚠️ Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice. Always use proper risk management and test any strategy before applying it in live trading.
版本注释
setting the default correction开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
Free telegram channel t.me/alexmasterforex
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
Free telegram channel t.me/alexmasterforex
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。