OPEN-SOURCE SCRIPT
15 SMA Trend-Friend MTF

15 SMA Trend-Friend MTF is a high-level situational awareness tool designed to provide an instant "bird's-eye view" of a stock's trend structure across four critical timeframes: 1 Hour, 4 Hour, Daily, and Weekly.
By pulling real-time data from multiple time horizons into a single, clean table at the top of your chart, this indicator eliminates the need to constantly flip between tabs, allowing you to maintain focus on your primary execution timeframe.
Core Logic:
The dashboard tracks the SMA 15 across all four timeframes. A signal is determined by the relationship between the price and this moving average:
▲ UP (Green): Price has closed above the SMA 15 and is successfully maintaining its position above it. This indicates a confirmed bullish trend on that specific timeframe.
▼ DOWN (Red): Price has closed below the SMA 15 and is maintaining its position beneath it. This indicates a confirmed bearish trend on that specific timeframe.
Why This Is Valuable to Traders:
Trend Confluence: The most powerful moves in the market happen when multiple timeframes align. If the 1H, 4H, and 1D are all showing "UP," you have a high-probability long setup. If they are mixed, you know to expect chop or a potential reversal.
Contextual Awareness: It prevents "tunnel vision." A trader looking at a 5-minute chart might see a buy signal, but the MTF Dashboard will instantly warn them if the Daily and Weekly trends are heavily "DOWN," suggesting they are trading against a massive wall of resistance.
Efficiency: It saves critical seconds during fast-moving market conditions. You can scan through your watchlist and instantly see which stocks have "Full Alignment" (all green or all red) without ever leaving your main chart.
Customizable Visibility: With adjustable text sizes (up to "Huge") and a "Top Padding" feature, the dashboard can be positioned to stay perfectly visible regardless of your screen resolution or TradingView UI layout.
Best Use Case:
Use this as your "Master Filter." Before taking any signal from the Apex Momentum Filter, glance at the MTF Trend Dashboard. If your entry signal aligns with the higher-timeframe trends (Daily and Weekly), your probability of a successful trade increases significantly.
By pulling real-time data from multiple time horizons into a single, clean table at the top of your chart, this indicator eliminates the need to constantly flip between tabs, allowing you to maintain focus on your primary execution timeframe.
Core Logic:
The dashboard tracks the SMA 15 across all four timeframes. A signal is determined by the relationship between the price and this moving average:
▲ UP (Green): Price has closed above the SMA 15 and is successfully maintaining its position above it. This indicates a confirmed bullish trend on that specific timeframe.
▼ DOWN (Red): Price has closed below the SMA 15 and is maintaining its position beneath it. This indicates a confirmed bearish trend on that specific timeframe.
Why This Is Valuable to Traders:
Trend Confluence: The most powerful moves in the market happen when multiple timeframes align. If the 1H, 4H, and 1D are all showing "UP," you have a high-probability long setup. If they are mixed, you know to expect chop or a potential reversal.
Contextual Awareness: It prevents "tunnel vision." A trader looking at a 5-minute chart might see a buy signal, but the MTF Dashboard will instantly warn them if the Daily and Weekly trends are heavily "DOWN," suggesting they are trading against a massive wall of resistance.
Efficiency: It saves critical seconds during fast-moving market conditions. You can scan through your watchlist and instantly see which stocks have "Full Alignment" (all green or all red) without ever leaving your main chart.
Customizable Visibility: With adjustable text sizes (up to "Huge") and a "Top Padding" feature, the dashboard can be positioned to stay perfectly visible regardless of your screen resolution or TradingView UI layout.
Best Use Case:
Use this as your "Master Filter." Before taking any signal from the Apex Momentum Filter, glance at the MTF Trend Dashboard. If your entry signal aligns with the higher-timeframe trends (Daily and Weekly), your probability of a successful trade increases significantly.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน