OPEN-SOURCE SCRIPT

Multi-Timeframe Candle Color Dashboard V.3 (ByTraderWut)

138
หลักการทำงานของอินดิเคเตอร์ (Indicator's Working Principle)
อินดิเคเตอร์นี้ถูกออกแบบมาเพื่อช่วยให้นักเทรดสามารถวิเคราะห์แนวโน้มของตลาดในหลายๆ ไทม์เฟรมได้พร้อมกันอย่างรวดเร็วและแม่นยำ. หัวใจสำคัญของการทำงานอยู่ที่การตรวจสอบราคาเปิดและราคาปิดของแท่งเทียนที่ ปิดไปแล้ว ในแต่ละไทม์เฟรม ซึ่งเป็นข้อมูลที่มีความน่าเชื่อถือสูงกว่าแท่งเทียนที่กำลังวิ่งอยู่.

1. การคำนวณสีแท่งเทียน (Candle Color Calculation)
อินดิเคเตอร์จะทำการส่งคำสั่งไปยังไทม์เฟรมย่อยแต่ละช่วงเวลาที่คุณเลือก (เช่น M1, M5, H1, D1) เพื่อดึงข้อมูลราคาเปิดและราคาปิดของแท่งเทียนล่าสุดที่ปิดสมบูรณ์แล้ว.

Bullish (ขาขึ้น): หากราคาปิดของแท่งเทียนที่ปิดไปแล้ว สูงกว่า ราคาเปิด อินดิเคเตอร์จะแสดงเป็น สีเขียว.

Bearish (ขาลง): หากราคาปิดของแท่งเทียนที่ปิดไปแล้ว ต่ำกว่า ราคาเปิด อินดิเคเตอร์จะแสดงเป็น สีแดง.

2. การนับแท่งเทียนต่อเนื่อง (Consecutive Candle Count)
นอกจากการแสดงสีแล้ว อินดิเคเตอร์ยังมีการนับจำนวนแท่งเทียนที่มีสีเดียวกันต่อเนื่องกัน.

ฟังก์ชันการนับ: โค้ดจะใช้ลูปในการย้อนกลับไปตรวจสอบแท่งเทียนที่ปิดไปแล้วตามจำนวนที่คุณกำหนดในหน้าการตั้งค่า Consecutive Bars for Status. หากจำนวนแท่งเทียนสีเดียวกันต่อเนื่องถึงเกณฑ์ที่ตั้งไว้ อินดิเคเตอร์จะแสดงคำว่า "Bullish" หรือ "Bearish" เพิ่มเติม.

ประโยชน์: ฟีเจอร์นี้ช่วยกรองสัญญาณรบกวนที่เกิดจากราคาที่ขึ้นลงเล็กน้อย และช่วยให้คุณยืนยันความแข็งแกร่งของเทรนด์ได้อย่างแม่นยำยิ่งขึ้น.

3. การใช้งานร่วมกับการวิเคราะห์เชิงเทคนิค (Integration with Technical Analysis)
หลักการทำงานของอินดิเคเตอร์สอดคล้องกับการวิเคราะห์แบบ Multi-Timeframe Analysis ซึ่งเป็นพื้นฐานสำคัญของการเทรด. การใช้ Dashboard จะช่วยให้คุณเห็นภาพรวมของตลาดในมุมกว้าง และใช้สัญญาณยืนยันการเข้าออเดอร์ในไทม์เฟรมที่คุณเทรดอยู่ได้ทันที.

ตัวอย่าง: หากคุณเทรดในไทม์เฟรม H1 (ชั่วโมง) และเห็นว่า H4 และ D1 ก็เป็นเทรนด์ขาขึ้นเช่นกัน (Bullish) สัญญาณเข้าออเดอร์ซื้อ (Long) ของคุณใน H1 ก็จะมีความน่าเชื่อถือมากขึ้น.

English Version: Indicator's Working Principle
The indicator is designed to help traders analyze market trends across multiple timeframes quickly and accurately. The core of its functionality lies in checking the open and close prices of closed bars in each timeframe, which provides more reliable information than a bar that is still forming.

1. Candle Color Calculation
The indicator sends a request to each selected sub-timeframe (e.g., M1, M5, H1, D1) to fetch the open and close prices of the most recently completed bar.

Bullish (Uptrend): If the close price of the closed bar is higher than its open price, the indicator will display a green color.

Bearish (Downtrend): If the close price of the closed bar is lower than its open price, the indicator will display a red color.

2. Consecutive Candle Count
In addition to the color display, the indicator also counts the number of consecutive candles of the same color.

Counting Function: The code uses a loop to check the past closed bars up to the number you've defined in the Consecutive Bars for Status input. If the number of consecutive candles of the same color meets or exceeds this threshold, the words "Bullish" or "Bearish" will appear.

Benefit: This feature helps to filter out market noise from minor price fluctuations, allowing you to confirm the strength of a trend more accurately.

3. Integration with Technical Analysis
The indicator's working principle aligns with Multi-Timeframe Analysis, a fundamental trading concept. The dashboard provides a comprehensive market overview, allowing you to use confirmation signals to enter trades on your primary timeframe with greater confidence.

Example: If you are trading on the H1 (hourly) timeframe and see that H4 and D1 are also in an uptrend (Bullish), your long entry signal on H1 will be more reliable.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.