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
Release Notes: Fixed the background coloring for MA crosses
Apr 11
Release Notes: 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
Release Notes: 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
Release Notes: Fixed picture
Apr 30
Release Notes: 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
Release Notes: Something went wrong with the last update. Fixing that.
Aug 20
Release Notes: 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
Release Notes: Decreased the transparency of the background colors so they are slightly more visible.
Ta bort från favoritskript Lägg till som favoritskript

Kommentarer

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!
Svara
dangirdler dangirdler
@dangirdler, OK - I have implemented it. How do I get alerts when the MAs cross? Thank you !
Svara
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.
Svara
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...
Svara
Kommentar borttagen.
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.
Svara
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
Svara
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Hur det fungerar Diagramfunktioner Priser Refer a friend Ordningsregler Help Center Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Blogg och nyheter Twitter
Profil Profilinställningar Konto och fakturering Refer a friend Mina kölappar Help Center Publicerade idéer Följare Följer Privata meddelanden Chatt Logga ut