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
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.