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
Catatan Pelepasan: Fixed the background coloring for MA crosses
Catatan Pelepasan: 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.
Catatan Pelepasan: 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!
Catatan Pelepasan: Fixed picture
Catatan Pelepasan: 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.
Catatan Pelepasan: Something went wrong with the last update. Fixing that.
Catatan Pelepasan: 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!
Catatan Pelepasan: Decreased the transparency of the background colors so they are slightly more visible.
Keluarkan daripada Skrip Pilihan Tambah kepada Skrip Pilihan

Komen

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!
+4 Balas
dangirdler dangirdler
@dangirdler, OK - I have implemented it. How do I get alerts when the MAs cross? Thank you !
+3 Balas
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.
Balas
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...
Balas
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 Balas
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
Balas
Aliman_trade number_juan
@number_juan, Thank you big time bro!! haha if you have time or if its even possible i do not know, but to be able to add a third MA and then only show the buy signals above the third MA and sells underneath. ultimately showing signals that run in line with trend ( third MA to be higher amount than ma1&ma2 ). if its a lot then no need, just would tidy it up and improve overall signals
Balas
number_juan Aliman_trade
@Aliman_trade, All done! Enjoy
Balas
Laman Utama Penyaring Saham Penyaring Forex Penyaring Kripto Kalendar Ekonomi Bagaimana ia berfungsi Ciri-ciri Carta Harga Rujuk rakan Peraturan Dalaman Pusat Bantuan Laman web dan Penyelesaian Broker Widget Penyelesaian Pencartaan Perpustakaan Pencartaan yang Ringan Blog & Berita Twitter
Profil Tetapan Profil Akaun dan Pengebilan Rujuk rakan Tiket Sokongan Saya Pusat Bantuan Idea yang diterbitkan Pengikut Mengikuti Mesej Peribadi Sembang Daftar Keluar