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)
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.