number_juan

2 Moving Average Cross Signals

This indicator is meant to aid those who use Moving Average crosses as part of their trading strategy. This can be used to help identify turning points in trends.

You can customize what timeframe the MAs are derived from (e.g. can use current timeframe, or can hold it to 1d timeframe across all other timeframes)

When the fast and slow MAs cross each other, the background of the candle where the cross happened will be highlighted green or red (changeable), this will help visualize where the crosses are happening, regardless of whether or not you actually want the moving average lines printed on the charts. This could help keep the chart less cluttered.

Finally, you can choose between SMAs , EMAs, WMAs, and Linear MAs.

Enjoy
Dec 09
Notas de prensa: Fixed the background coloring for MA crosses
Apr 11
Notas de prensa: Now you have the option to change the type of each moving average independently.

So for example you could use the 9 sma with a 45 ema, like Cardwell uses with his RSI.
Apr 27
Notas de prensa: Now the defaults are different, and the background colors for the crosses are more transparent.

Now the default settings are 9 and 45, and can be used in combination with my new Sexy RSI indicator which also has 9 and 45 MAs on it.

Enjoy!
Apr 27
Notas de prensa: Fixed picture
Apr 30
Notas de prensa: New defaults (9 and 45) to match Andrew Cardwell's RSI strategy. Lines up nicely with the Sexy RSI script I will be publishing soon.

Also changed the background changes to not be so intense. Looks nicer for dark mode.
May 01
Notas de prensa: Something went wrong with the last update. Fixing that.
Aug 20
Notas de prensa: Updated the script to allow for alerts to be made for the moving average crosses.

Unfortunately PineScript does not allow for variables in the default alert messages, so there is no way for me to include the trading pair symbol in the default message. I am sorry for this!
Aug 20
Notas de prensa: Decreased the transparency of the background colors so they are slightly more visible.
Eliminar de Scripts favoritos. Añadir a Scripts favoritos.

Comentarios

Hi thanks for this! I have been looking for an alert that will trigger when specific MAs cross - it looks like your script will do this. Sorry, but how do I make you script/indicator appear in my trading view? I'm not sure how to import it. Thank you!
Responder
dangirdler dangirdler
@dangirdler, OK - I have implemented it. How do I get alerts when the MAs cross? Thank you !
Responder
number_juan dangirdler
@dangirdler, Hey! glad you got it added to your chart. So to set up an alert is as follows:

- Now that it's on your chart, you should see it listed underneath the ticker on the left side of your chart, where it says "MA Crosses"

To the right of that name, if you bring your mouse there, you should see to the right of it 5 symbols -> an eye, a settings cog, "{ }", "X", and ". . ."

Press on the box with ". . ." inside of it, then the first option says "Add Alert on MA crosses"

Click on that option, and then in the "conditions" section at the top, there are two drop down menus. Go into the 2nd drop down menu and the top two options are "Fast MA crosses above slow MA (long)", and "Fast MA crosses below slow MA (short)"

Then you just select what kind of alert you want, and use the below options to further modify it. I suggest setting the expiry date as far in the future as you can especially for high time frame charts.

Hope this helps! Let me know if you still have trouble with it.
Responder
dangirdler number_juan
@number_juan, Thank you so much! ...something I'm also looking into is how to set up a screening setting, to be alerted when for example a 9 crosses up through a 50 and then up through a 150, this seems a powerful MA cross...
Responder
Comentario eliminado
Thank you for this it helps a-lot, would it be possible to add an alertconditon so that we can be alerted when the cross happens. so that i can run the function on several, pairs without needing to watch them all.
Responder
number_juan Aliman_trade
@Aliman_trade, That's a great idea thank you! I will implement that functionality now! If you ever have any other ideas don't hesitate to reach out
Responder
Inicio Analizador de acciones Analizador de Forex Crypto Screener Calendario económico Cómo funciona Funcionalidades del gráfico Precios Recomendar a un amigo Normas Centro de ayuda Soluciones broker y sitio web Widgets Soluciones gráficas Biblioteca de gráficos ligeros Blog y Noticias Twitter
Perfil Opciones de configuración del perfil Cuenta y facturación Recomendar a un amigo Mis Tickets de Soporte Centro de ayuda Ideas publicadas Seguidores Siguiendo Mensajes privados Chat Cerrar sesión