OPEN-SOURCE SCRIPT
Telah dikemas kini

Semaphore

209
📌 Indicator Description: Semaphore
The Semaphore indicator plots three key moving averages on the current asset's price, allowing users to select between SMA (Simple Moving Average) or EMA (Exponential Moving Average), and to choose whether the calculation should be based on the daily timeframe or the current chart timeframe.

🔧 Customizable Parameters:
Moving average type: SMA or EMA.

Data source: Daily timeframe or current chart timeframe.

Fixed lengths: 10 (short-term), 21 (medium-term), and 50 (long-term).

🎯 What does it do?
Calculates and plots the three selected moving averages.

Automatically adapts to the chosen timeframe (e.g., display daily averages on a 1h chart).

Color-coded lines for easy visual distinction:

🔵 Blue for the 10-period MA

🟡 Yellow for the 21-period MA

🔴 Red for the 50-period MA

🌟 Benefits and Advantages:
Timeframe flexibility: Follow higher timeframe trends (daily) while trading on lower timeframes.

Clean and quick visual reference: With just three colored lines, you get a clear view of short, medium, and long-term trends.

Perfect for “traffic light” strategies: For example, all MAs aligned in one direction can indicate strong trend confirmation.

Universal use: Works seamlessly with any asset — stocks, crypto, forex, indices, and more.
Nota Keluaran
📌 Indicator Description: Semaphore
The Semaphore indicator plots three key moving averages on the current asset's price, allowing users to select between SMA (Simple Moving Average) or EMA (Exponential Moving Average), and to choose whether the calculation should be based on the daily timeframe or the current chart timeframe.

🔧 Customizable Parameters:
Moving average type: SMA or EMA.

Data source: Daily timeframe or current chart timeframe.

Default lengths: 10 (short-term), 20 (medium-term), and 50 (long-term).
Default colors: 🔵 (short-term), 🟡 (medium-term), and 🔴 (long-term).

🎯 What does it do?
Calculates and plots the three selected moving averages.

Automatically adapts to the chosen timeframe (e.g., display daily averages on a 1h chart).

Color-coded lines for easy visual distinction:

🌟 Benefits and Advantages:
Timeframe flexibility: Follow higher timeframe trends (daily) while trading on lower timeframes.

Clean and quick visual reference: With just three colored lines, you get a clear view of short, medium, and long-term trends.

Perfect for “traffic light” strategies: For example, all MAs aligned in one direction can indicate strong trend confirmation.

Universal use: Works seamlessly with any asset — stocks, crypto, forex, indices, and more.

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.