OPEN-SOURCE SCRIPT
SET Buy/Sell Signal (MACD + RSI + MA)

📈 SET Buy/Sell Signal (MACD + RSI + Trend Filter)Pine Script®
An intelligent trading tool for Thai stock investors who want clear and reliable buy/sell signals. Designed specifically for SET stocks, this indicator combines three popular and proven technical tools:
🔍 What It Uses:
✅ MACD Crossover: Captures momentum shifts with fast/slow EMA crossovers
✅ RSI Filter: Avoids buying when the market is overbought or selling when oversold
✅ Trend Confirmation (MA): Confirms signals only when price is aligned with the broader trend
📊 How It Works:
BUY Signal appears when:
MACD crosses above its signal line
RSI is below 70 (not overbought)
Price is above the 50-period moving average (uptrend confirmation)
SELL Signal appears when:
MACD crosses below its signal line
RSI is above 30 (not oversold)
Price is below the 50-period moving average (downtrend confirmation)
📌 Features:
Visual buy/sell markers on chart
Adjustable parameters for MACD, RSI, and MA
Clean integration for swing or trend traders on the Thai stock market (SET)
An intelligent trading tool for Thai stock investors who want clear and reliable buy/sell signals. Designed specifically for SET stocks, this indicator combines three popular and proven technical tools:
🔍 What It Uses:
✅ MACD Crossover: Captures momentum shifts with fast/slow EMA crossovers
✅ RSI Filter: Avoids buying when the market is overbought or selling when oversold
✅ Trend Confirmation (MA): Confirms signals only when price is aligned with the broader trend
📊 How It Works:
BUY Signal appears when:
MACD crosses above its signal line
RSI is below 70 (not overbought)
Price is above the 50-period moving average (uptrend confirmation)
SELL Signal appears when:
MACD crosses below its signal line
RSI is above 30 (not oversold)
Price is below the 50-period moving average (downtrend confirmation)
📌 Features:
Visual buy/sell markers on chart
Adjustable parameters for MACD, RSI, and MA
Clean integration for swing or trend traders on the Thai stock market (SET)
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。