OPEN-SOURCE SCRIPT

EMA & RSI & MACD TTD

66
Below is an **English explanation** of this script, which you can include on TradingView when you publish it.

---

## Overview

This Pine Script (v5) creates a **dashboard table** on your chart, displaying multiple **timeframes** and signals for:

- **50/200 EMA Trend**
- **5/7/9 EMA Trend**
- **RSI Trend**
- **MACD Trend**

The timeframes covered are **1m, 2m, 3m, 5m, 10m, 15m, 30m, 60m**. You can enable or disable each timeframe through the script’s settings.

---

## How It Works

1. **User Inputs**
- **Position & Text Size**: Choose where to place the table on the chart (top/bottom/left/right) and how large to make the text.
- **Icons**: Select which emojis (or text) to show for **uptrend**, **downtrend**, and **neutral** signals.
- **Timeframe Toggles**: Decide which timeframes you want to display (e.g., 1m, 2m, 5m, etc.).

2. **Indicators & Trend Logic**
- **5/7/9 EMA**: Checks if `EMA(5) > EMA(7) > EMA(9)` (uptrend), or `EMA(5) < EMA(7) < EMA(9)` (downtrend), otherwise neutral.
- **50/200 EMA**: If `close > EMA(50) > EMA(200)`, we display an uptrend, if `close < EMA(50) < EMA(200)`, a downtrend, else neutral.
- **RSI**: Compares `RSI(14)` vs. its own SMA(14). If RSI is above the SMA, that’s an uptrend; if below, a downtrend; else neutral.
- **MACD**: Checks whether the MACD line is above or below the signal line.

3. **Multiple Timeframes**
- The script uses `request.security()` calls to fetch data for each selected timeframe.
- For example, if you enable “5m” in the script’s inputs, it will query that timeframe’s data and run the trend logic accordingly.

4. **Table Display**
- On the **last bar** (i.e., real-time update), it fills a table row for each enabled timeframe.
- The first row is a header: “Time,” “50/200 Trend,” “5/7/9 Trend,” “RSI Trend,” “MACD Trend.”
- Each subsequent row shows the timeframe label (e.g., “5m”) and the corresponding trend icons.

---

## Usage

1. **Copy & Paste**
- Copy this script into TradingView’s **Pine Editor**, ensure `//version=5` is at the top, and click “Add to Chart.”
2. **Customize**
- In the script’s settings, adjust the position of the dashboard, the text size, or change the emojis.
- Toggle on/off each timeframe you want to see.
3. **Interpretation**
- A **green** (🟢) icon usually signifies an uptrend, **red** (🔴) a downtrend, and **gray/black** (⚫️) neutral.
- Quickly see whether each timeframe is showing bullish, bearish, or neutral signals for each indicator.

---

### Final Notes
- This dashboard is a **quick visual reference** for short-term and mid-term trend conditions across multiple timeframes.
- You can expand it by adding more columns (like other oscillators) or more timeframes.
- If emojis cause any issues, simply replace them with text (e.g., “UP,” “DOWN,” “NEUTRAL”).

Happy Trading!

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.