OPEN-SOURCE SCRIPT
Example of Code for Moving Average Cross - Changing Colors

Famous 7 Time World Trading Champion Chuck Hughes found the 50 and 100 EMA to be the best Signal for a Change in Trend. Through extensive back-testing he found these EMA’s to give the earliest signal that also resulted in a Long-Term Change in Trend.
Dotted Line represents Long-Term EMA. The 100 EMA in this example.
Solid line represents the Short-Term EMA. The 50 EMA in this example.
If Short-Term EMA is ABOVE Long-Term EMA...Color = Green.
If Short-Term EMA is BELOW Long-Term EMA...Color = Red.
Dotted Line represents Long-Term EMA. The 100 EMA in this example.
Solid line represents the Short-Term EMA. The 50 EMA in this example.
If Short-Term EMA is ABOVE Long-Term EMA...Color = Green.
If Short-Term EMA is BELOW Long-Term EMA...Color = Red.
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.
Coming Soon: ChrisMoodyTrading.com
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.
Coming Soon: ChrisMoodyTrading.com
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.