OPEN-SOURCE SCRIPT
Actualizado MACD Threshold Crossover v2.0 Trend Filter

This is a script to bring 'Buy' and 'Sell' signals, which can also be used for alerts, for when the MACD fast and slow lines cross.
A 'Buy' signal prints when the fast MACD crosses above the slow MACD (a distance of at least 0.00003), whilst being below the MACD 0 level (w/ 0.00015 margin).
A 'Sell' signal prints when the fast MACD crosses below the slow MACD (a distance of at least -0.00003) whilst being above the MACD 0 level (w/ 0.00015 margin).
Furthermore Buy signals are only valid if candle closes above the 200EMA. Likewise Sell signals are only valid if candle closes below the 200 EMA, and all other conditions are met.
A 'Buy' signal prints when the fast MACD crosses above the slow MACD (a distance of at least 0.00003), whilst being below the MACD 0 level (w/ 0.00015 margin).
A 'Sell' signal prints when the fast MACD crosses below the slow MACD (a distance of at least -0.00003) whilst being above the MACD 0 level (w/ 0.00015 margin).
Furthermore Buy signals are only valid if candle closes above the 200EMA. Likewise Sell signals are only valid if candle closes below the 200 EMA, and all other conditions are met.
Notas de prensa
Was a small bug where if a 'Sell' crossover took place above the 200EMA, and then price moved below the 200EMA several candles later, a Sell trigger would print.This has been corrected so we're only triggered by crossovers that take place on the correct side of the EMA, at the time of the crossover
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 cualquier 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 u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga 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 cualquier 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 u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.