PROTECTED SOURCE SCRIPT

Multi-Renko Levels with Combined Table TradingFrog

60
syot kilat

DE40 📊 Multi-Renko Levels Indicator - Complete Description
🎯 Main Purpose
This indicator analyzes 4 different Renko timeframes simultaneously and detects strong trend convergences when at least 3 out of 4 Renko levels point in the same direction.

⚙️ Input Parameters
Display Settings
Show Info Table: Show/hide the information table
Show Renko Levels: Show/hide the Renko level lines
Show Strong Signals: Show/hide the triangle signals
Show Bar Colors: Show/hide the bar coloring
Signal Settings
Signal Size: Triangle size (tiny, small, normal, large, huge)
Timeframe Settings
R1 Timeframe: Default "1" (1-minute chart)
R2 Timeframe: Default "3" (3-minute chart)
R3 Timeframe: Default "5" (5-minute chart)
R4 Timeframe: Default "15" (15-minute chart)
Renko Box Sizes
R1 Box Size: 1.3 (smallest movement)
R2 Box Size: 1.4
R3 Box Size: 1.5
R4 Box Size: 2.0 (largest movement)
Color Settings
R1-R4 Colors: Individual colors for each Renko level
Strong Bull/Bear Colors: Colors for strong trend bars
🔧 Technical Functionality
Renko Calculation
Kopieren
renko_calc(box_size) =>
var float renko_level = na
var int direction = 0

// Initialization on first bar
if bar_index == 0 or na(renko_level)
renko_level := close
direction := 0
else
// Calculate new Renko levels
up_level = renko_level + box_size
down_level = renko_level - box_size

// Check for Renko movement
if close >= up_level
renko_level := up_level
direction := 1 // Bullish
else if close <= down_level
renko_level := down_level
direction := -1 // Bearish
// Otherwise: direction remains unchanged
Multi-Timeframe Analysis
Each Renko level is calculated on its own timeframe
request.security() fetches data from different time periods
Combines 4 different Renko perspectives
Signal Detection
Kopieren
// Count bullish/bearish Renko levels
strong_up_count = (d1 == 1 ? 1 : 0) + (d2 == 1 ? 1 : 0) +
(d3 == 1 ? 1 : 0) + (d4 == 1 ? 1 : 0)

strong_down_count = (d1 == -1 ? 1 : 0) + (d2 == -1 ? 1 : 0) +
(d3 == -1 ? 1 : 0) + (d4 == -1 ? 1 : 0)

// Strong signals when 3+ directions agree
strong_up = strong_up_count >= 3
strong_down = strong_down_count >= 3
📈 Visual Outputs
1. Renko Level Lines
4 horizontal lines in different colors
Show current Renko levels for each timeframe
Move only on Renko movements (not every candle)
2. Signal Triangles
Green Triangles ↑: Strong upward signals (below candle)
Red Triangles ↓: Strong downward signals (above candle)
Appear only with 3+ matching Renko directions
Adjustable size (tiny to huge)
3. Bar Colors
Green Bars: During strong upward signals
Red Bars: During strong downward signals
Normal Colors: During weaker signals
4. Information Table (top right)
Renko Section:
RENKO LEVEL TREND TF/BOX
R1 1.234 ↑ 1/1.3
R2 1.235 ↑ 3/1.4
R3 1.236 → 5/1.5
R4 1.238 ↓ 15/2.0
Debug Section:
DEBUG SIZE: tiny UP: 2 DN: 1
Statistics Section:
STATS L20 L100 %
STRONG ↑ 5 --- 25%
STRONG ↓ 3 --- 15%
🎯 Trading Logic
Strong Upward Signals (Strong UP)
Condition: 3 or 4 Renko levels show bullish (direction = 1)
Interpretation: Multiple timeframes confirm uptrend
Visual: Green triangle below candle + green bar color
Strong Downward Signals (Strong DOWN)
Condition: 3 or 4 Renko levels show bearish (direction = -1)
Interpretation: Multiple timeframes confirm downtrend
Visual: Red triangle above candle + red bar color
Weak/Neutral Signals
Condition: Only 0-2 Renko levels in one direction
Interpretation: Unclear market direction, sideways
Visual: No triangles, normal bar colors
📊 Statistics Functions
L20 (Last 20 Bars)
Counts Strong signals from the last 20 candles
Shows short-term signal frequency
Percentage Calculation
Strong UP %: Proportion of bullish signals in last 20 candles
Strong DOWN %: Proportion of bearish signals in last 20 candles
NaN Safety
Complete protection against invalid values
Safe fallback values for missing data
Robust calculation even at chart start
🔔 Alert System
Strong UP Alert
Trigger: strong_up becomes true
Message: "🚀 STRONG UP: 3+ Renko levels bullish!"
Strong DOWN Alert
Trigger: strong_down becomes true
Message: "📉 STRONG DOWN: 3+ Renko levels bearish!"
🎨 Customization Options
Timeframes
Any timeframes for R1-R4 adjustable
From seconds to weeks possible
Box Sizes
Individual Renko box sizes for each level
Adaptation to volatility and instrument
Colors
Fully customizable color schemes
Separate colors for each Renko level
Individual signal colors
Signal Threshold
Currently: 3+ matching levels
Easily changeable to 2+ or 4 in code
💡 Application Scenarios
Trend Confirmation
Wait for 3+ matching Renko directions
Higher probability for sustainable trend
Entry Timing
Strong signals as entry triggers
Combination with other indicators possible
Risk Management
Weak signals (0-2 levels) = increased caution
Strong signals = higher confidence
Multi-Timeframe Analysis
Simultaneous view of different time levels
Avoidance of timeframe conflicts
⚡ Performance Optimizations
Efficient Calculation: Only on Renko movements
Memory Management: Limited box/line count
NaN Handling: Safe value processing
Conditional Plotting: Only with activated features
This indicator combines the strength of Renko charts with multi-timeframe analysis for precise trend detection! 🎯📊

🔍 Key Features Summary
✅ Multi-Timeframe Renko Analysis - 4 simultaneous timeframes

✅ Strong Signal Detection - 3+ level convergence required

✅ Visual Clarity - Lines, triangles, and colored bars

✅ Comprehensive Statistics - Real-time performance tracking

✅ Full Customization - Colors, sizes, timeframes, box sizes

✅ Alert Integration - Automated notifications

✅ Robust Code - NaN-safe and performance optimized

✅ Professional Table - All information at a glance

Perfect for traders seeking high-probability trend entries with multi-timeframe confirmation! 🚀

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.