OPEN-SOURCE SCRIPT
Telah dikemas kini 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
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
Nota Keluaran
Fixed the background coloring for MA crossesNota Keluaran
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.
Nota Keluaran
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!
Nota Keluaran
Fixed pictureNota Keluaran
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.
Nota Keluaran
Something went wrong with the last update. Fixing that. Nota Keluaran
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!
Nota Keluaran
Decreased the transparency of the background colors so they are slightly more visible. Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.