OPEN-SOURCE SCRIPT
6 EMA Setup

**6 EMA Setup** is a multi-moving-average indicator designed to help traders quickly read **trend direction, pullback zones, and long-term market structure** using six Exponential Moving Averages on a single chart.
The indicator comes with default EMA lengths of **9, 21, 34, 89, 200, and 500**, allowing traders to monitor both **short-term momentum** and **higher-timeframe trend alignment** in one view.
A key visual feature of this setup is that the **9 EMA and 21 EMA are displayed as solid lines**, making the fast trend and immediate momentum easy to follow, while the higher EMAs are displayed in a **dashed style** to separate broader trend structure from short-term action.
### Default EMA setup
* **EMA 9** – fast momentum
* **EMA 21** – short-term trend
* **EMA 34** – pullback/trend support zone
* **EMA 89** – medium-term structure
* **EMA 200** – major trend direction
* **EMA 500** – higher trend bias / macro structure
### Features
* 6 configurable EMA lines
* Default lengths: **9, 21, 34, 89, 200, 500**
* Individual **show/hide toggle** for each EMA
* Custom **color setting** for every EMA
* **Solid lines** for 9 and 21 EMA
* **Dashed style** for 34, 89, 200, and 500 EMA
* Adjustable **source**
* Adjustable **offset**
* Customizable dash/gap appearance for dashed EMAs
### How it helps
This indicator is useful for:
* Identifying **trend direction**
* Tracking **short-term momentum shifts**
* Spotting **pullback entries**
* Understanding **trend continuation zones**
* Filtering trades with **higher-timeframe EMA alignment**
* Visualizing whether price is trading above or below key dynamic support/resistance levels
### Common use case
Many traders use this type of EMA stack to check:
* whether **9 is above 21** for momentum strength
* whether price respects **34 or 89** during pullbacks
* whether market is above or below **200 EMA** for main trend bias
* whether the **500 EMA** supports the larger directional context
### Best for
* Trend-following traders
* Pullback traders
* Intraday traders
* Swing traders
* Multi-timeframe chart readers
If you want, I can also give you:
* a **short TradingView publish description**
* a **professional/public library description**
* a **simple beginner-friendly description**
* or a **combined description** for your **Donchian + EMA indicator**
The indicator comes with default EMA lengths of **9, 21, 34, 89, 200, and 500**, allowing traders to monitor both **short-term momentum** and **higher-timeframe trend alignment** in one view.
A key visual feature of this setup is that the **9 EMA and 21 EMA are displayed as solid lines**, making the fast trend and immediate momentum easy to follow, while the higher EMAs are displayed in a **dashed style** to separate broader trend structure from short-term action.
### Default EMA setup
* **EMA 9** – fast momentum
* **EMA 21** – short-term trend
* **EMA 34** – pullback/trend support zone
* **EMA 89** – medium-term structure
* **EMA 200** – major trend direction
* **EMA 500** – higher trend bias / macro structure
### Features
* 6 configurable EMA lines
* Default lengths: **9, 21, 34, 89, 200, 500**
* Individual **show/hide toggle** for each EMA
* Custom **color setting** for every EMA
* **Solid lines** for 9 and 21 EMA
* **Dashed style** for 34, 89, 200, and 500 EMA
* Adjustable **source**
* Adjustable **offset**
* Customizable dash/gap appearance for dashed EMAs
### How it helps
This indicator is useful for:
* Identifying **trend direction**
* Tracking **short-term momentum shifts**
* Spotting **pullback entries**
* Understanding **trend continuation zones**
* Filtering trades with **higher-timeframe EMA alignment**
* Visualizing whether price is trading above or below key dynamic support/resistance levels
### Common use case
Many traders use this type of EMA stack to check:
* whether **9 is above 21** for momentum strength
* whether price respects **34 or 89** during pullbacks
* whether market is above or below **200 EMA** for main trend bias
* whether the **500 EMA** supports the larger directional context
### Best for
* Trend-following traders
* Pullback traders
* Intraday traders
* Swing traders
* Multi-timeframe chart readers
If you want, I can also give you:
* a **short TradingView publish description**
* a **professional/public library description**
* a **simple beginner-friendly description**
* or a **combined description** for your **Donchian + EMA indicator**
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน