OPEN-SOURCE SCRIPT
Updated Price Crossover

The price crossing above or below the moving average signals a potential change in trend.
When the price crosses above the moving average, it is bullish, the color of the zone between the price and the MA is green, a green up arrow emphasizes the crossover.
And when it crosses below the moving average, it is bearish, the color of the zone between the price and the MA is red, a red down arrow emphasizes the crossover.
Trend changes are then easier to spot.

When the price crosses above the moving average, it is bullish, the color of the zone between the price and the MA is green, a green up arrow emphasizes the crossover.
And when it crosses below the moving average, it is bearish, the color of the zone between the price and the MA is red, a red down arrow emphasizes the crossover.
Trend changes are then easier to spot.
Release Notes
Updated "Price Crossover" IndicatorNew Features:
Three Distinct Alert Conditions:
Price Cross Over MA: Get notified when the price crosses above the moving average (MA).
Price Cross Under MA: Alerts you when the price crosses below the MA.
Price Cross MA (Either Direction): A versatile alert that triggers when the price crosses the MA in either direction – over or under.
Improved Visibility of Signals:
Triangle Indicators: The size of the triangle indicators has been adjusted to improve visibility. Upward green triangles signal a crossover above the MA, while downward red triangles indicate a crossunder.
Usage Tips:
These alerts are designed to assist in identifying key moments where the price crosses the MA, a common strategy for trend-following traders.
To set up alerts, right-click on the indicator or select the 3 dots near the indicator label and select "Add Alert on Price Crossover." Choose the specific condition that suits your trading strategy.
The dynamic color of the MA line and the background fill provide at-a-glance insights into market trends, aiding in quick decision-making.
Conclusion:
The enhanced "Price Crossover" indicator offers improved visualization and alert functionality, making it easier for traders to follow market trends and make informed decisions based on MA crossovers.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.