PROTECTED SOURCE SCRIPT
Обновлено Bionic Candlestick Indikator

Bionic Candlestick Indicator for TradingViewOverviewThe Bionic Candlestick Indicator is a customizable Pine Script Version 6 indicator designed for TradingView. It visually highlights key candlestick patterns to identify bullish, bearish, and Doji signals, helping traders analyze market trends and potential reversals. The indicator offers flexible display options, allowing users to plot custom candlesticks or color the chart background based on detected patterns, with optimized performance for large charts.FeaturesCandlestick Patterns:Strong Bullish: Close = High and Close > Open (e.g., strong buying pressure).
Strong Bearish: Close = Low and Close < Open (e.g., strong selling pressure).
Bullish Pullback: Close > Open with a larger High-to-Close distance.
Bearish Pullback: Close < Open with a larger Low-to-Close distance.
Doji Patterns: Bullish Doji, Bearish Doji, Equilibrium Doji (Open = Close with balanced wicks), and Empty Doji (High = Low and Open = Close).
Customizable Colors: Choose colors for each pattern (e.g., yellow/green for bullish, blue/red for bearish, purple for Equilibrium Doji).
Display Options:Plot custom candlesticks over the chart or color the background.
Toggle visibility of specific patterns (bullish, bearish, Doji, Equilibrium).
Performance Optimization: Limits calculations to a user-defined number of bars (max_bars) to reduce lag on large charts.
How to UseAdd the Indicator:Copy the provided Pine Script code into TradingView’s Pine Editor.
Click “Add to Chart” to apply the indicator.
Adjust Visual Order:To ensure the indicator displays correctly, go to the indicator list in TradingView, click the gear icon next to “Bionic Candlestick Indikator,” and select “Visual Order > Bring to Front.”
If “Draw Above Chart” is enabled, hide the chart’s default candlesticks:Go to Chart Settings > Symbol > uncheck “Candles” to avoid overlap.
Configure Settings:Open the indicator’s settings and adjust the following:Bullish/Bearish/Doji/Equilibrium Signals: Enable or disable specific candlestick patterns.
Candlestick Colors: Select colors for each pattern (e.g., yellow, green, blue, red, purple, gray).
Draw Above Chart: Check to plot custom candlesticks; uncheck to color the chart background.
Maximum Bars to Calculate: Set to a value like 2000–5000 to limit calculations and improve performance (set to 0 for no limit).
Save the settings.
Interpretation:Bullish Signals (Yellow/Green): Indicate potential buying opportunities or upward momentum.
Bearish Signals (Blue/Red): Suggest selling pressure or downward momentum.
Doji Patterns (Dark Green/Dark Red/Purple/Gray): Highlight market indecision or potential reversals.
Combine with other indicators (e.g., RSI, moving averages) for confirmation.
Performance Tips:Set “Maximum Bars to Calculate” to a lower value (e.g., 2000) to reduce lag on charts with many bars.
Use TradingView’s Pine Profiler to identify performance bottlenecks.
Test on smaller timeframes or chart ranges to ensure smooth rendering.
NotesVisual Order: If the indicator only appears after clicking the chart, ensure it is set to “Bring to Front” in the visual order, and disable default candlesticks if plotting custom ones.
Performance: Lowering “Maximum Bars to Calculate” reduces computational load but may skip older signals. Adjust based on your chart size and needs.
Compatibility: The indicator uses Pine Script Version 6. If TradingView does not support Version 6, change version=6 to version=5 and retest.
Debugging: If issues persist, check for conflicts with other indicators or chart settings, and ensure the chart is refreshed.
This indicator is ideal for traders looking to visually identify key candlestick patterns with customizable options, optimized for performance on TradingView charts. For support or further customization, refer to TradingView’s documentation or community forums.
Strong Bearish: Close = Low and Close < Open (e.g., strong selling pressure).
Bullish Pullback: Close > Open with a larger High-to-Close distance.
Bearish Pullback: Close < Open with a larger Low-to-Close distance.
Doji Patterns: Bullish Doji, Bearish Doji, Equilibrium Doji (Open = Close with balanced wicks), and Empty Doji (High = Low and Open = Close).
Customizable Colors: Choose colors for each pattern (e.g., yellow/green for bullish, blue/red for bearish, purple for Equilibrium Doji).
Display Options:Plot custom candlesticks over the chart or color the background.
Toggle visibility of specific patterns (bullish, bearish, Doji, Equilibrium).
Performance Optimization: Limits calculations to a user-defined number of bars (max_bars) to reduce lag on large charts.
How to UseAdd the Indicator:Copy the provided Pine Script code into TradingView’s Pine Editor.
Click “Add to Chart” to apply the indicator.
Adjust Visual Order:To ensure the indicator displays correctly, go to the indicator list in TradingView, click the gear icon next to “Bionic Candlestick Indikator,” and select “Visual Order > Bring to Front.”
If “Draw Above Chart” is enabled, hide the chart’s default candlesticks:Go to Chart Settings > Symbol > uncheck “Candles” to avoid overlap.
Configure Settings:Open the indicator’s settings and adjust the following:Bullish/Bearish/Doji/Equilibrium Signals: Enable or disable specific candlestick patterns.
Candlestick Colors: Select colors for each pattern (e.g., yellow, green, blue, red, purple, gray).
Draw Above Chart: Check to plot custom candlesticks; uncheck to color the chart background.
Maximum Bars to Calculate: Set to a value like 2000–5000 to limit calculations and improve performance (set to 0 for no limit).
Save the settings.
Interpretation:Bullish Signals (Yellow/Green): Indicate potential buying opportunities or upward momentum.
Bearish Signals (Blue/Red): Suggest selling pressure or downward momentum.
Doji Patterns (Dark Green/Dark Red/Purple/Gray): Highlight market indecision or potential reversals.
Combine with other indicators (e.g., RSI, moving averages) for confirmation.
Performance Tips:Set “Maximum Bars to Calculate” to a lower value (e.g., 2000) to reduce lag on charts with many bars.
Use TradingView’s Pine Profiler to identify performance bottlenecks.
Test on smaller timeframes or chart ranges to ensure smooth rendering.
NotesVisual Order: If the indicator only appears after clicking the chart, ensure it is set to “Bring to Front” in the visual order, and disable default candlesticks if plotting custom ones.
Performance: Lowering “Maximum Bars to Calculate” reduces computational load but may skip older signals. Adjust based on your chart size and needs.
Compatibility: The indicator uses Pine Script Version 6. If TradingView does not support Version 6, change version=6 to version=5 and retest.
Debugging: If issues persist, check for conflicts with other indicators or chart settings, and ensure the chart is refreshed.
This indicator is ideal for traders looking to visually identify key candlestick patterns with customizable options, optimized for performance on TradingView charts. For support or further customization, refer to TradingView’s documentation or community forums.
Информация о релизе
Impact:The indicator now exclusively plots custom candlesticks with the specified colors, eliminating the background coloring option.To ensure the indicator appears in the foreground, you must manually set it to "Bring to Front" in TradingView’s visual order settings and disable the chart’s default candlesticks in Chart Settings > Symbol > uncheck "Candles".
The removal of draw_above_chart simplifies the code and user interface, as there’s no longer a toggle for switching display modes.
Информация о релизе
Improvements and Additions:Customizable Labels: New inputs label_position ("Above"/"Below") and label_offset (distance in price units) to control label placement and spacing for better clarity.Bug Fix: Changed label_text != na to not na(label_text) for Pine Script v6 compatibility.
Free Color Selection: Replaced input.string with input.color to allow any color for candlestick patterns.
Modular Color Assignment: Added getCandleColor() function for cleaner code structure.
Adjustable Transparency: New pullback_transp input (0-100) for customizable transparency in pullback patterns.
Alerts: Added alertcondition for strong bullish/bearish signals.
Flexible Performance: Set max_bars to 0 (full history) with a warning about potential lag.
Removed:Background Coloring: Completely removed bgcolor function, as it was not desired.
draw_above_chart: Input removed, as candlesticks are now always plotted over the chart.
Информация о релизе
Improved Performance:Added max_bars to limit calculations to a user-defined number of bars (default: 0 for all bars), reducing lag on large charts.Removed unused variables (body, candle_range, body_ratio) to eliminate unnecessary computations.
Modular Color Assignment:Introduced getCandleColor() function for cleaner and more maintainable color logic.
Customizable transparency for pullback candles (pullback_transp) to enhance visual distinction.
Enhanced Visualization:Optional labels for candlestick patterns (show_labels) with customizable position (Above or Below) and offset (label_offset) for better readability.
Simplified color selection using input.color for direct color inputs, replacing limited string options.
Trading Alerts:Added alertcondition for strong bullish and bearish signals, notifying traders of significant market movements.
Visual Order and Rendering:Removed draw_above_chart and bgcolor to avoid visual order conflicts and ensure consistent rendering of candles.
plotcandle uses open, high, low, close directly to minimize overlap with default chart candles.
Pine Script Version 6:Leverages modern syntax and lazy evaluation for faster execution and efficient condition checking.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.