OPEN-SOURCE SCRIPT
EMA's [Ordinary Trader]

EMAs by [Ordinary Trader]Plots two parallel stacks of three EMAs — one anchored to a Higher Timeframe of your choice, one following the chart's current timeframe. Built around the Ordinary Trader methodology, where the 15-minute 50 / 100 / 300 EMA stack acts as a higher-timeframe directional filter while trading on lower timeframes.
**WHAT YOU SEE ON THE CHART**
Six EMAs total, split into two groups:
- **HTF EMAs** — three EMAs locked to a higher timeframe of your choice (default 15-minute). They stay anchored to 15-minute data even when you drop the chart to 1m, 3m, or 5m. Drawn as **thick** lines.
- **LTF EMAs** — three EMAs that follow the chart's current timeframe (or any specific lower timeframe you pin them to). Drawn as **thin** lines.
Same colour for the same EMA length across both groups: 50 = sage green, 100 = terracotta orange, 300 = purple-grey. Thickness tells you which timeframe you're looking at; colour tells you which EMA length.
**HOW TO USE IT**
The default setup is the Ordinary Trader 15-minute filter: HTF set to 15-minute, LTF following the chart. Pull up a 1m, 3m, or 5m chart and you'll see both groups at once — the thick lines are your 15-minute anchor, the thin lines are your chart-timeframe stack for entries.
By default the 50 and 100 EMAs are on in both groups; the 300 EMA is off but available. Flip it on in the Settings panel if you want the full stack.
**AUTO-HIDE FOR THE LTF GROUP**
When your chart timeframe is equal to or higher than the HTF timeframe, the LTF group hides automatically. So on a 15-minute chart (with HTF still at 15-minute) only the HTF group shows — no point drawing the LTF stack on top of an identical HTF stack. Same on the 1-hour, daily, or higher.
**VISUAL SMOOTHING**
When a higher-timeframe EMA is plotted on a lower-timeframe chart, it naturally looks stepped — each new HTF bar updates the EMA in one chunk, so the line moves in jumps rather than smoothly. The Visual Smoothing option (on by default) applies a light smoothing pass so the line reads cleanly on lower-timeframe charts. It trades a tiny amount of lag for a cleaner look — turn it off if you'd rather see the raw, stepped HTF values.
**SETTINGS**
- **General** — LTF Timeframe, HTF Timeframe, Plot Style (Line / Stepline), Visual Smoothing on/off + length
- **HTF EMAs** — toggle, length, and price source for each of the three HTF EMAs
- **LTF EMAs** — toggle, length, and price source for each of the three LTF EMAs
**NOTES**
- Pairs naturally with the other Ordinary Trader-family indicators (STRATEGY, ZONES, KEY LEVELS, FVGs).
**WHAT YOU SEE ON THE CHART**
Six EMAs total, split into two groups:
- **HTF EMAs** — three EMAs locked to a higher timeframe of your choice (default 15-minute). They stay anchored to 15-minute data even when you drop the chart to 1m, 3m, or 5m. Drawn as **thick** lines.
- **LTF EMAs** — three EMAs that follow the chart's current timeframe (or any specific lower timeframe you pin them to). Drawn as **thin** lines.
Same colour for the same EMA length across both groups: 50 = sage green, 100 = terracotta orange, 300 = purple-grey. Thickness tells you which timeframe you're looking at; colour tells you which EMA length.
**HOW TO USE IT**
The default setup is the Ordinary Trader 15-minute filter: HTF set to 15-minute, LTF following the chart. Pull up a 1m, 3m, or 5m chart and you'll see both groups at once — the thick lines are your 15-minute anchor, the thin lines are your chart-timeframe stack for entries.
By default the 50 and 100 EMAs are on in both groups; the 300 EMA is off but available. Flip it on in the Settings panel if you want the full stack.
**AUTO-HIDE FOR THE LTF GROUP**
When your chart timeframe is equal to or higher than the HTF timeframe, the LTF group hides automatically. So on a 15-minute chart (with HTF still at 15-minute) only the HTF group shows — no point drawing the LTF stack on top of an identical HTF stack. Same on the 1-hour, daily, or higher.
**VISUAL SMOOTHING**
When a higher-timeframe EMA is plotted on a lower-timeframe chart, it naturally looks stepped — each new HTF bar updates the EMA in one chunk, so the line moves in jumps rather than smoothly. The Visual Smoothing option (on by default) applies a light smoothing pass so the line reads cleanly on lower-timeframe charts. It trades a tiny amount of lag for a cleaner look — turn it off if you'd rather see the raw, stepped HTF values.
**SETTINGS**
- **General** — LTF Timeframe, HTF Timeframe, Plot Style (Line / Stepline), Visual Smoothing on/off + length
- **HTF EMAs** — toggle, length, and price source for each of the three HTF EMAs
- **LTF EMAs** — toggle, length, and price source for each of the three LTF EMAs
**NOTES**
- Pairs naturally with the other Ordinary Trader-family indicators (STRATEGY, ZONES, KEY LEVELS, FVGs).
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน