INVITE-ONLY SCRIPT
Order Flow Candles

Order Flow Candles is an advanced candle coloring indicator that visualizes the strength and direction of market pressure on each bar. Unlike traditional candlestick charts that simply show whether price closed higher or lower than it opened, this indicator reveals the intensity of buying or selling pressure through a gradient color system. The indicator employs custom formulas that combine two independent analysis methods—price action scoring and order flow analysis—to produce a pressure reading that determines each candle's directional color intensity.






-------------------------------------------------------------------
The Dual Analysis Approach
This indicator stands apart from simple candle coloring tools by using two distinct analytical layers that work together:
The two scores are then blended together based on user preference, creating a combined pressure reading that benefits from both analytical perspectives.
-------------------------------------------------------------------
Understanding The Color System
The indicator uses a 10-tier gradient in each direction:
The key insight is that candle direction alone does not tell the full story. Strong candles with strong directional volume and movement will show bright colors to represent the strength of that candle’s direction. Weak and indecisive candles will appear darker to indicate that there was a lack of directional conviction.
The colors used can be customized by setting the bullish color, bearish color and base color. The base color will be mixed with the directional color when directional conviction is low.
-------------------------------------------------------------------
How To Use This To Trade
Trend Confirmation and Trade Management
Bright colored candles indicate strength and conviction. When you see consecutive bright candles in the same direction, this suggests sustained momentum worth riding. During these moves, consider trailing your stop loss tightly to protect profits while allowing the trend to continue. The brightness of the candles serves as a real-time gauge of how much conviction remains in the move.
Reversal Detection
Reversals typically do not occur suddenly. Watch for a darkening of colors leading up to potential reversal points. Darker, dimmer candles indicate indecision and combative pressure from both buyers and sellers. When bright candles begin transitioning toward gray or dim colors—especially at key support/resistance levels—this often precedes a change in direction. A sequence like bright → medium → dim → gray suggests momentum is fading and a reversal or consolidation may follow.
Entry Identification
Large bright candles appearing at pivot points or key levels often represent strong entry opportunities. These candles show that one side has taken decisive control with conviction. When price reaches a significant support or resistance level and produces a bright candle in the expected direction, this confluence of price level and pressure confirmation can provide higher-probability entries.
Detecting False Moves
One of the most valuable applications involves watching for color-to-direction discrepancies when using volume weighting. If you see a green candle (close above open) but the indicator colors it toward red or gray, this means the underlying volume pressure contradicts the candle's direction. This divergence suggests the move may be false and could soon reverse. The order flow component is detecting selling pressure despite the bullish candle structure—a warning sign that the apparent strength lacks genuine support.
Consolidation Recognition
Extended periods of gray or dim candles indicate low conviction and indecision. These periods often represent consolidation ranges where neither buyers nor sellers have control. Such conditions may precede significant breakouts, making them useful for identifying potential setup zones.
Validating Areas Of Interest
Watch the candle colors and you will notice that in tight ranges, the candles will be darker and rarely have very bright colors, but once price reaches the edges of a range and has multiple bright colored candles, this validates that traders are now ready to move outside of that range and place directional trades. Use the bright colored candles to reveal where traders are interested in entering positions and use that conviction to your advantage.
-------------------------------------------------------------------
Settings Guide
Lower Timeframe - Sets the granularity for volume analysis. Lower timeframes like 1T provide more detailed data but may have limited historical depth on TradingView. Adjust based on your chart timeframe and data availability.
Price Action Influence % - Controls the blend between price action scoring and volume/order flow scoring. At 0%, the indicator uses pure order flow analysis. At 100%, it uses pure price action analysis. The default 50% provides equal weighting to both methods. Consider increasing toward 100% for instruments with unreliable volume data such as forex pairs or certain CFDs. For futures contracts with excellent volume reporting, values around 50% often work well.
Candle Color Settings - Customize the buy color (default bright green), sell color (default red), and base/neutral color (default gray) to match your chart theme and personal preferences.
Fix Loading Error - Toggle this checkbox if the indicator fails to load, displays incorrectly or starts lagging. This forces TradingView to restart the indicator and typically resolves any issues.
-------------------------------------------------------------------
Instrument and Timeframe Considerations
The order flow component requires reliable volume data for optimal results. Consider these guidelines:
Higher timeframes (daily, weekly) typically produce more reliable color readings with less noise. Lower timeframes can be useful for timing entries within the context of higher timeframe analysis.
The indicator requires a brief initialization period—approximately 60 bars for full accuracy as the adaptive calculations populate their historical reference data.
-------------------------------------------------------------------
Practical Guidance
Order Flow Candles works effectively when combined with other analysis methods. Consider using it alongside support/resistance levels, where bright candles at key zones can confirm breakouts or bounces. Volume profile analysis pairs naturally with this indicator, as does traditional structure and trend analysis.
The indicator is designed as a visualization and decision-support tool. It helps quantify and display information that might otherwise require mentally processing multiple data points. However, profitable trading requires more than entry signals—risk management, position sizing, and broader market context remain essential components of any complete trading approach.
-------------------------------------------------------------------
Limitations
-------------------------------------------------------------------
The Dual Analysis Approach
This indicator stands apart from simple candle coloring tools by using two distinct analytical layers that work together:
- Price Action Analysis evaluates each candle's structure and compares it to multiple previous candles. Rather than looking at a single bar in isolation, the indicator examines how the current candle's size and values compare across several prior bars to establish context. This multi-candle approach helps distinguish between genuine momentum and single-bar noise. The analysis considers factors such as whether the candle is extending beyond previous ranges or failing to do so, whether the candle size indicates conviction or indecision, and whether the overall range suggests strength or weakness. Proprietary adjustment algorithms then modify the raw score based on candle characteristics—smaller, weaker candles receive reduced scores while larger conviction candles receive appropriate emphasis. Gap bars at market open are handled separately to prevent misleading readings from overnight price changes.
- Order Flow Analysis examines lower timeframe data to determine actual buying versus selling volume within each chart bar. By analyzing price movements and their associated volume on a granular level, the indicator classifies activity as buying pressure or selling pressure. This raw data is then normalized using adaptive calculations based on rolling historical averages, allowing the indicator to respond appropriately to current market conditions rather than relying on fixed thresholds that may not suit all instruments or market environments.
The two scores are then blended together based on user preference, creating a combined pressure reading that benefits from both analytical perspectives.
-------------------------------------------------------------------
Understanding The Color System
The indicator uses a 10-tier gradient in each direction:
- Bright Green - Strong buying pressure with high conviction
- Medium Green - Moderate buying pressure
- Dim Green - Weak buying pressure or mixed signals
- Gray - Neutral—no significant directional pressure
- Dim Red - Weak selling pressure or mixed signals
- Medium Red - Moderate selling pressure
- Bright Red - Strong selling pressure with high conviction
The key insight is that candle direction alone does not tell the full story. Strong candles with strong directional volume and movement will show bright colors to represent the strength of that candle’s direction. Weak and indecisive candles will appear darker to indicate that there was a lack of directional conviction.
The colors used can be customized by setting the bullish color, bearish color and base color. The base color will be mixed with the directional color when directional conviction is low.
-------------------------------------------------------------------
How To Use This To Trade
Trend Confirmation and Trade Management
Bright colored candles indicate strength and conviction. When you see consecutive bright candles in the same direction, this suggests sustained momentum worth riding. During these moves, consider trailing your stop loss tightly to protect profits while allowing the trend to continue. The brightness of the candles serves as a real-time gauge of how much conviction remains in the move.
Reversal Detection
Reversals typically do not occur suddenly. Watch for a darkening of colors leading up to potential reversal points. Darker, dimmer candles indicate indecision and combative pressure from both buyers and sellers. When bright candles begin transitioning toward gray or dim colors—especially at key support/resistance levels—this often precedes a change in direction. A sequence like bright → medium → dim → gray suggests momentum is fading and a reversal or consolidation may follow.
Entry Identification
Large bright candles appearing at pivot points or key levels often represent strong entry opportunities. These candles show that one side has taken decisive control with conviction. When price reaches a significant support or resistance level and produces a bright candle in the expected direction, this confluence of price level and pressure confirmation can provide higher-probability entries.
Detecting False Moves
One of the most valuable applications involves watching for color-to-direction discrepancies when using volume weighting. If you see a green candle (close above open) but the indicator colors it toward red or gray, this means the underlying volume pressure contradicts the candle's direction. This divergence suggests the move may be false and could soon reverse. The order flow component is detecting selling pressure despite the bullish candle structure—a warning sign that the apparent strength lacks genuine support.
Consolidation Recognition
Extended periods of gray or dim candles indicate low conviction and indecision. These periods often represent consolidation ranges where neither buyers nor sellers have control. Such conditions may precede significant breakouts, making them useful for identifying potential setup zones.
Validating Areas Of Interest
Watch the candle colors and you will notice that in tight ranges, the candles will be darker and rarely have very bright colors, but once price reaches the edges of a range and has multiple bright colored candles, this validates that traders are now ready to move outside of that range and place directional trades. Use the bright colored candles to reveal where traders are interested in entering positions and use that conviction to your advantage.
-------------------------------------------------------------------
Settings Guide
Lower Timeframe - Sets the granularity for volume analysis. Lower timeframes like 1T provide more detailed data but may have limited historical depth on TradingView. Adjust based on your chart timeframe and data availability.
Price Action Influence % - Controls the blend between price action scoring and volume/order flow scoring. At 0%, the indicator uses pure order flow analysis. At 100%, it uses pure price action analysis. The default 50% provides equal weighting to both methods. Consider increasing toward 100% for instruments with unreliable volume data such as forex pairs or certain CFDs. For futures contracts with excellent volume reporting, values around 50% often work well.
Candle Color Settings - Customize the buy color (default bright green), sell color (default red), and base/neutral color (default gray) to match your chart theme and personal preferences.
Fix Loading Error - Toggle this checkbox if the indicator fails to load, displays incorrectly or starts lagging. This forces TradingView to restart the indicator and typically resolves any issues.
-------------------------------------------------------------------
Instrument and Timeframe Considerations
The order flow component requires reliable volume data for optimal results. Consider these guidelines:
- Futures: Generally provide excellent volume data and work well with lower Price Action Influence settings
- Stocks: Good volume data during regular trading hours
- Forex: Volume reliability varies by exchange; test before relying heavily on volume scoring
- Crypto: Volume reliability varies by exchange; test before relying heavily on volume scoring
- Index CFDs: Often have poor volume data; higher Price Action Influence recommended
Higher timeframes (daily, weekly) typically produce more reliable color readings with less noise. Lower timeframes can be useful for timing entries within the context of higher timeframe analysis.
The indicator requires a brief initialization period—approximately 60 bars for full accuracy as the adaptive calculations populate their historical reference data.
-------------------------------------------------------------------
Practical Guidance
Order Flow Candles works effectively when combined with other analysis methods. Consider using it alongside support/resistance levels, where bright candles at key zones can confirm breakouts or bounces. Volume profile analysis pairs naturally with this indicator, as does traditional structure and trend analysis.
The indicator is designed as a visualization and decision-support tool. It helps quantify and display information that might otherwise require mentally processing multiple data points. However, profitable trading requires more than entry signals—risk management, position sizing, and broader market context remain essential components of any complete trading approach.
-------------------------------------------------------------------
Limitations
- When using any amount of volume weighting, the candles will show as grey until it has had enough previous bars to establish baseline averages to use for calculations. When using tick data on higher than 1 minute charts, the number of chart bars you get data will be limited, so try adjusting the lower timeframe to use a higher timeframe for more data. Or you can switch to 100% price action influence to get price action only candle coloring for the entire data set
- Volume analysis accuracy depends entirely on the quality of volume data available for your chosen instrument so make sure to look at charts with the most reliable volume data for best results
- Lower timeframe data has limited historical depth on TradingView; older bars may have less accurate order flow readings
- First bars of new trading sessions (gap bars) are scored conservatively and may appear dimmer than expected
- During extremely fast market conditions, lower timeframe data may lag slightly
- The indicator provides decision support but is not a complete trading system on its own, so use this indicator as a guide to make decisions, but do not rely solely on it
招待専用スクリプト
このスクリプトは作者が承認したユーザーのみアクセス可能です。使用するにはアクセス申請をして許可を得る必要があります。通常は支払い後に承認されます。詳細は下記の作者の指示に従うか、FriendOfTheTrendに直接お問い合わせください。
TradingViewは、作者を完全に信頼し、スクリプトの動作を理解していない限り、有料スクリプトの購入・使用を推奨しません。コミュニティスクリプトには無料のオープンソースの代替が多数あります。
作者の指示
This is an invite only script, available at an affordable price to customers that subscribe to our Order Flow Pro indicator suite. To get access to this script, please go to our website https://friendofthetrend.com/ and purchase a subscription.
Trend Friend - Data Driven Trading Indicators For All Your Favorite Markets
Get Access To Our Premium Indicator Suite -> friendofthetrend.com/
Join Our Trading Group - facebook.com/groups/stockandcryptotradingstrategies
Get Access To Our Premium Indicator Suite -> friendofthetrend.com/
Join Our Trading Group - facebook.com/groups/stockandcryptotradingstrategies
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
招待専用スクリプト
このスクリプトは作者が承認したユーザーのみアクセス可能です。使用するにはアクセス申請をして許可を得る必要があります。通常は支払い後に承認されます。詳細は下記の作者の指示に従うか、FriendOfTheTrendに直接お問い合わせください。
TradingViewは、作者を完全に信頼し、スクリプトの動作を理解していない限り、有料スクリプトの購入・使用を推奨しません。コミュニティスクリプトには無料のオープンソースの代替が多数あります。
作者の指示
This is an invite only script, available at an affordable price to customers that subscribe to our Order Flow Pro indicator suite. To get access to this script, please go to our website https://friendofthetrend.com/ and purchase a subscription.
Trend Friend - Data Driven Trading Indicators For All Your Favorite Markets
Get Access To Our Premium Indicator Suite -> friendofthetrend.com/
Join Our Trading Group - facebook.com/groups/stockandcryptotradingstrategies
Get Access To Our Premium Indicator Suite -> friendofthetrend.com/
Join Our Trading Group - facebook.com/groups/stockandcryptotradingstrategies
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。