OPEN-SOURCE SCRIPT
Actualizado Enhanced MACD and RSI Buy/Sell Signals - Created by Marco Nucup

Key Features:
EMA Filter: Adds an Exponential Moving Average (EMA) to filter signals based on the trend. Buys are only considered when the price is above the EMA, and sells when below it.
Customizable Inputs: Users can adjust parameters for EMA, MACD, and RSI directly from the TradingView interface, allowing for more personalized strategies.
Alerts: The script includes alert conditions for both buy and sell signals, enabling users to receive notifications.
Signal Plotting: Visual indicators for buy and sell signals on the chart, along with the EMA line for trend reference.
EMA Filter: Adds an Exponential Moving Average (EMA) to filter signals based on the trend. Buys are only considered when the price is above the EMA, and sells when below it.
Customizable Inputs: Users can adjust parameters for EMA, MACD, and RSI directly from the TradingView interface, allowing for more personalized strategies.
Alerts: The script includes alert conditions for both buy and sell signals, enabling users to receive notifications.
Signal Plotting: Visual indicators for buy and sell signals on the chart, along with the EMA line for trend reference.
Notas de prensa
Interpret the Signals:Buy Signal: A green "BUY" label will appear below the bars when the following conditions are met:
The MACD line crosses above the signal line.
The RSI is below the oversold level (default is 30).
The price is above the EMA (default is 50-period).
Sell Signal: A red "SELL" label will appear above the bars when:
The MACD line crosses below the signal line.
The RSI is above the overbought level (default is 70).
The price is below the EMA.
Trailing Stop Loss: A red line indicating the trailing stop loss will be plotted on the chart, adjusting as the price moves. This helps protect your profits.
Set Up Alerts:
To receive alerts for buy and sell signals, click on the "Alerts" icon (alarm bell) in the right toolbar. Choose the conditions based on the script's alerts for buy and sell signals.
Understanding the Components
EMA (Exponential Moving Average): A trend-following indicator that smooths price data to identify the direction of the trend. The script uses a 50-period EMA.
MACD (Moving Average Convergence Divergence): A momentum indicator that shows the relationship between two moving averages. It generates buy and sell signals based on crossovers.
RSI (Relative Strength Index): A momentum oscillator that measures the speed and change of price movements. It helps identify overbought or oversold conditions.
Trailing Stop Loss: A dynamic stop-loss level that adjusts as the price moves in your favor, designed to lock in profits while allowing for potential gains.
Best Practices
Backtest: Use historical data to backtest the strategy before applying it to live trading.
Risk Management: Always consider risk management strategies, including position sizing and setting a maximum loss limit.
Market Conditions: Be aware of the market environment (trending vs. ranging markets) as this strategy may perform differently under varying conditions.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.