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
Note di rilascio: Fixed the background coloring for MA crosses
Note di rilascio: 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.
Note di rilascio: 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!
Note di rilascio: Fixed picture
Note di rilascio: 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.
Note di rilascio: Something went wrong with the last update. Fixing that.
Note di rilascio: 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!
Note di rilascio: Decreased the transparency of the background colors so they are slightly more visible.
Rimuovi dagli script preferiti Aggiungi agli script preferiti

Commenti

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!
+3 Rispondi
dangirdler dangirdler
@dangirdler, OK - I have implemented it. How do I get alerts when the MAs cross? Thank you !
+2 Rispondi
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.
Rispondi
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...
Rispondi
Commento rimosso
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.
+3 Rispondi
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
Rispondi
Home Screener azioni Screener forex Screener cripto Calendario economico Come funziona Caratteristiche Grafico Costi Invita un amico Regolamento Centro di supporto Soluzioni per broker & siti web Widget Librerie grafiche Libreria grafica leggera Blog & Novità Twitter
Profilo Impostazioni profilo Account e fatturazione Invita un amico I miei ticket di supporto Centro di supporto Idee pubblicate Follower Seguiti Messaggi Privati Chat Esci