PROTECTED SOURCE SCRIPT
업데이트됨 Dashboard MA Multi-TF

This script creates a dashboard for monitoring multiple symbols across multiple timeframes using two customizable moving averages (MA). It works as follows:
User Inputs:
MA Settings: Type (SMA, EMA, WMA, VWMA) and two lengths.
Symbols: Up to 10 symbols (forex, commodities, crypto).
Timeframes: Up to 4 different timeframes per symbol.
Functions:
getMA(src, len, type): Computes the specified type of MA.
calcStatus(p, ma1, ma2): Determines trend status:
1 → price above both MAs (bullish)
-1 → price below both MAs (bearish)
0 → mixed/neutral
getSymbolStatus(sym, tf): Calls security() to get trend status for a symbol and timeframe efficiently by only returning the status.
Data Collection:
Uses security() for each symbol × timeframe combination (10 symbols × 4 timeframes = 40 calls).
Each call retrieves only the trend status to reduce memory and computation.
Dashboard Table:
Creates a table in the top-right corner.
Rows represent symbols; columns represent timeframes and a consensus column.
Cells display:
▲ for bullish, ▼ for bearish, - for neutral.
Colored backgrounds: green for bullish, red for bearish, gray for neutral.
Consensus: “STRONG BUY” / “STRONG SELL” / “MIXED” based on all 4 timeframes.
Efficiency Notes:
Optimized to avoid hitting Pine Script’s 40-security-call limit.
Only essential data (status) is retrieved from security().
Visuals are updated only on the last bar to reduce computation.
In short: The script is a multi-symbol, multi-timeframe MA trend dashboard, efficiently showing bullish, bearish, or mixed signals using two moving averages for quick visual analysis.
User Inputs:
MA Settings: Type (SMA, EMA, WMA, VWMA) and two lengths.
Symbols: Up to 10 symbols (forex, commodities, crypto).
Timeframes: Up to 4 different timeframes per symbol.
Functions:
getMA(src, len, type): Computes the specified type of MA.
calcStatus(p, ma1, ma2): Determines trend status:
1 → price above both MAs (bullish)
-1 → price below both MAs (bearish)
0 → mixed/neutral
getSymbolStatus(sym, tf): Calls security() to get trend status for a symbol and timeframe efficiently by only returning the status.
Data Collection:
Uses security() for each symbol × timeframe combination (10 symbols × 4 timeframes = 40 calls).
Each call retrieves only the trend status to reduce memory and computation.
Dashboard Table:
Creates a table in the top-right corner.
Rows represent symbols; columns represent timeframes and a consensus column.
Cells display:
▲ for bullish, ▼ for bearish, - for neutral.
Colored backgrounds: green for bullish, red for bearish, gray for neutral.
Consensus: “STRONG BUY” / “STRONG SELL” / “MIXED” based on all 4 timeframes.
Efficiency Notes:
Optimized to avoid hitting Pine Script’s 40-security-call limit.
Only essential data (status) is retrieved from security().
Visuals are updated only on the last bar to reduce computation.
In short: The script is a multi-symbol, multi-timeframe MA trend dashboard, efficiently showing bullish, bearish, or mixed signals using two moving averages for quick visual analysis.
릴리즈 노트
This script is an optimized multi-symbol, multi-timeframe MA trend dashboard with alerts. Its purpose is to monitor trends across different assets and send alerts when all timeframes of a symbol are aligned.Key Features:
User Inputs:
Moving Averages: Choose type (SMA, EMA, WMA, VWMA) and lengths for two MAs.
Symbols: Up to 10 symbols (forex, crypto, commodities).
Timeframes: Up to 4 different timeframes per symbol.
Trend Calculation:
getMA(src, len, type): Computes the specified MA.
calcStatus(p, ma1, ma2): Returns 1 if price > both MAs (bullish), -1 if price < both MAs (bearish), otherwise 0 (neutral/mixed).
getSymbolStatus(sym, tf): Uses security() to fetch the trend status for a given symbol and timeframe efficiently.
Alignment Check:
checkAlignment(s1, s2, s3, s4): Checks if all 4 timeframes of a symbol are in full bullish or bearish alignment.
Alerts:
Sends an alert if any symbol has all its timeframes aligned bullish (STRONG BUY) or bearish (STRONG SELL).
Alerts list the symbols that are fully aligned in either direction.
Dashboard Table:
Displays symbols as rows, timeframes as columns, and a consensus column.
Trend indicators: ▲ = bullish, ▼ = bearish, – = neutral.
Row colors: green for fully bullish, red for fully bearish, gray/black for mixed.
Consensus column shows: “STRONG BUY”, “STRONG SELL”, or “MIXED” depending on alignment.
Optimization:
Only 1 value (trend status) is fetched per symbol per timeframe to minimize memory usage and stay within the 40-security-call limit.
Visual updates occur only on the last bar for efficiency.
Summary: This script provides a real-time, visual dashboard for quickly spotting trend alignments across multiple assets and timeframes, with automatic alerts for strong trend confirmations.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.