OPEN-SOURCE SCRIPT
MACD Classic MT5 Style (2 Lines + Histogram)

MACD Classic MT5 Style (แบบ MetaTrader 5) มีความแตกต่างจาก MACD ทั่วไปที่ใช้กันใน TradingView พอสมควรครับ นี่คือคำอธิบายว่ามันทำงานอย่างไรและอ่านค่าอย่างไรครับ:
1. ความแตกต่างสำคัญ (Key Difference)
MACD ทั่วไป (Standard):
มี 2 เส้น (เส้น MACD และ เส้น Signal)
ฮิสโตแกรม (แท่งกราฟ) คือ ส่วนต่าง (Gap) ระหว่าง 2 เส้นนั้น
MACD แบบ MT5 (Classic MT5):
เส้น MACD จะถูกวาดออกมาเป็น แท่งกราฟ (Histogram) แทนที่จะเป็นเส้น
เส้น Signal จะเป็น เส้น (Line) สีแดงพาดผ่านแท่งกราฟ
สรุปคือ: ในแบบ MT5 แท่งกราฟคือตัวพระเอก (MACD) ส่วนเส้นคือตัวช่วยกรอง (Signal)
Here is the English translation of the explanation:
MACD Classic MT5 Style vs. Standard MACD
The "Classic MT5 Style" MACD differs significantly from the standard MACD typically found on TradingView. Below is an explanation of its mechanics and how to interpret it.
1. Key Differences
Standard MACD (TradingView Default):
Displays 2 Lines (MACD Line and Signal Line).
The Histogram represents the difference (gap) between those two lines.
MT5 Style MACD (Classic):
The MACD value is plotted as a Histogram (bars) instead of a line.
The Signal Line appears as a standard Line (usually red) overlaying the histogram.
In summary: In the MT5 style, the Histogram represents the actual MACD Line, while the separate line acts as the Signal filter.
1. ความแตกต่างสำคัญ (Key Difference)
MACD ทั่วไป (Standard):
มี 2 เส้น (เส้น MACD และ เส้น Signal)
ฮิสโตแกรม (แท่งกราฟ) คือ ส่วนต่าง (Gap) ระหว่าง 2 เส้นนั้น
MACD แบบ MT5 (Classic MT5):
เส้น MACD จะถูกวาดออกมาเป็น แท่งกราฟ (Histogram) แทนที่จะเป็นเส้น
เส้น Signal จะเป็น เส้น (Line) สีแดงพาดผ่านแท่งกราฟ
สรุปคือ: ในแบบ MT5 แท่งกราฟคือตัวพระเอก (MACD) ส่วนเส้นคือตัวช่วยกรอง (Signal)
Here is the English translation of the explanation:
MACD Classic MT5 Style vs. Standard MACD
The "Classic MT5 Style" MACD differs significantly from the standard MACD typically found on TradingView. Below is an explanation of its mechanics and how to interpret it.
1. Key Differences
Standard MACD (TradingView Default):
Displays 2 Lines (MACD Line and Signal Line).
The Histogram represents the difference (gap) between those two lines.
MT5 Style MACD (Classic):
The MACD value is plotted as a Histogram (bars) instead of a line.
The Signal Line appears as a standard Line (usually red) overlaying the histogram.
In summary: In the MT5 style, the Histogram represents the actual MACD Line, while the separate line acts as the Signal filter.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.