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)
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.