Summary of the Script: This Pine Script strategy combines Bollinger Bands, EMA, RSI, MACD, and ATR to generate high-accuracy buy/sell signals with slightly early entries.
Key Indicators Used: Bollinger Bands (BB) – Identifies price volatility and trends. Exponential Moving Averages (EMA) – Includes a 9-period EMA and a faster 5-period EMA to detect short-term trends. Relative Strength Index (RSI, 9) – Measures momentum; buy signals trigger when RSI > 55, sell when RSI < 45. MACD (12, 26, 9) – Confirms trend direction and momentum; checks for MACD-line crossover and slope. ATR (14) – Filters out weak signals; only allows trades when volatility is above 1.1x ATR SMA. Trend Confirmation (Higher Highs & Lower Lows) – Ensures signals align with market structure. How Signals are Generated: Buy Condition:
Fast EMA crosses above BB middle (3-4 candles earlier) RSI above 55 MACD Line above Signal Line, and MACD slope positive ATR filter confirms strong volatility Market in an uptrend (higher highs) Sell Condition:
Fast EMA crosses below BB middle (3-4 candles earlier) RSI below 45 MACD Line below Signal Line, and MACD slope negative ATR filter confirms strong volatility Market in a downtrend (lower lows) Output on the Chart: Green "BUY" label below bars when a buy signal is triggered. Red "SELL" label above bars when a sell signal is triggered. Goal: This script optimizes early entries (3-4 candles prior) while maintaining high accuracy and filtering out false signals using multiple confirmations. 🚀
Script de código aberto
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.