OPEN-SOURCE SCRIPT
已更新 Becak I-series: Indicator Floating Panels v.80

Becak I-series: Floating Panels v.80th (Indonesia Independence Days)
What it does:
This indicator creates three floating overlay panels that display MACD, RSI, and Stochastic oscillators directly on your price chart. Unlike traditional separate panes, these panels hover over your chart with customizable positioning and transparency, providing a clean, space-efficient way to monitor multiple technical indicators simultaneously.
When to use:
How it works:
The script calculates standard MACD (12,26,9), RSI (14), and Stochastic (14,3,3) values, then renders them as floating panels with:
Customization options:
Universal compatibility: Works seamlessly across all asset types with automatic range detection and scaling.
DIRGAHAYU HARI KEMERDEKAAN KE 80 - INDONESIA ... MERDEKA!!!!!
What it does:
This indicator creates three floating overlay panels that display MACD, RSI, and Stochastic oscillators directly on your price chart. Unlike traditional separate panes, these panels hover over your chart with customizable positioning and transparency, providing a clean, space-efficient way to monitor multiple technical indicators simultaneously.
When to use:
- When you need to monitor momentum, trend strength, and overbought/oversold conditions without cluttering your workspace
- Perfect for traders who want quick visual access to multiple oscillators while maintaining focus on price action
- Ideal for any timeframe and asset class (stocks, crypto, forex, commodities)
How it works:
The script calculates standard MACD (12,26,9), RSI (14), and Stochastic (14,3,3) values, then renders them as floating panels with:
- MACD Panel: Shows MACD line (blue), Signal line (orange), and histogram (green/red bars)
- RSI Panel: Displays RSI line (purple) with overbought (70) and oversold (30) reference levels
- Stochastic Panel: Shows %K (blue) and %D (orange) lines with optional buy/sell signals and highlighted overbought/oversold zones
Customization options:
- Position: Choose Top, Bottom, or Auto-Center placement
- Size: Adjust panel height (15-35% of chart) and spacing between panels
- Positioning: Fine-tune vertical center offset and horizontal positioning
- Appearance: Toggle panel backgrounds and adjust transparency (50-95%)
- Parameters: Modify all indicator lengths and overbought/oversold levels
- Signals: Enable/disable Stochastic crossover signals
- Display: Control lookback period (30-100 bars) and right margin spacing
Universal compatibility: Works seamlessly across all asset types with automatic range detection and scaling.
DIRGAHAYU HARI KEMERDEKAAN KE 80 - INDONESIA ... MERDEKA!!!!!
版本注释
What's Fixed:✅ Gray panel backgrounds - No more flickering, clean solid boxes
✅ Reference lines - Full-width horizontal lines matching your floating data
✅ Better cleanup - Proper deletion of old visual elements
✅ Stochastic signals - Fixed to only show once per crossover (no more spam)
Key Changes Made:
1. Better Array Cleanup
/ Properly clear all previous visual elements
// Clear lines
if array.size(a_macd_lines) > 0
for i = 0 to array.size(a_macd_lines) - 1 by 1
line.delete(array.get(a_macd_lines, i))
array.clear(a_macd_lines)
// Clear boxes
if array.size(a_macd_hist) > 0
for i = 0 to array.size(a_macd_hist) - 1 by 1
box.delete(array.get(a_macd_hist, i))
array.clear(a_macd_hist)
2. Fixed Panel Coordinates
// Calculate proper horizontal boundaries
panelWidth = 35 // Increased width
panelLeft = bar_index[barStart] + barIndexOffset - 3
panelRight = bar_index[barEnd - 1] + barIndexOffset + panelWidth
// Calculate the actual data drawing area (where indicators are drawn)
dataLeft = bar_index[barStart] + barIndexOffset
dataRight = bar_index[barEnd - 1] + barIndexOffset
3. Reference Lines Now Span Full Data Width
// MACD zero line - spans full data width
array.push(a_macd_lines, line.new(dataLeft, macdZeroLineLevel, dataRight, macdZeroLineLevel, xloc.bar_index, extend.none, color.new(color.white, 30), line.style_solid, 1))
// RSI lines - all span full data width
array.push(a_rsi_lines, line.new(dataLeft, rsi50Level, dataRight, rsi50Level, xloc.bar_index, extend.none, color.new(color.white, 30), line.style_solid, 1))
array.push(a_rsi_lines, line.new(dataLeft, rsiOverboughtLevel, dataRight, rsiOverboughtLevel, xloc.bar_index, extend.none, color.new(color.red, 40), line.style_dashed, 1))
4. Fixed Stochastic Signals
stochBuySignal = ta.crossover(stoch_k_smooth, stoch_d) and stoch_k_smooth < stochOversold and ta.barssince(ta.crossover(stoch_k_smooth, stoch_d)) == 0
stochSellSignal = ta.crossunder(stoch_k_smooth, stoch_d) and stoch_k_smooth > stochOverbought and ta.barssince(ta.crossunder(stoch_k_smooth, stoch_d)) == 0
Result:
Now we get clean gray boxes with proper horizontal grid lines that span the full width of your floating indicators - no more flickering or short lines!
J
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。