MA Cross Alert Once
Info
The MA Cross Alert Once is a Indicator for MetaTrader 4 that when two moving averages cross, the indicator will alert once per cross and mark the cross point with an up or down arrow. ma_cross_alert_once_1a: Numerical input for MA method and price.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Indicator works exclusively on MetaTrader 4 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL4/Indicators folder via File ? Open Data Folder in MetaTrader 4.
How to Install and Use MA Cross Alert Once
1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.
2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.
3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.
4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.
Frequently Asked Questions
Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."
Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).
Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.
What this tool does
When two moving averages cross, the indicator will alert once per cross and mark the cross point with an up or down arrow.
Typical Use Case
This Indicator excels in automated trading and technical analysis on MetaTrader 4.
Compatible Platform & Setup
This Indicator works on MetaTrader 4. Place the file in the MQL4/Indicators folder and restart the terminal.
Description & Settings
Related: UT Bot Alerts for MT4: Signal Statistics and Session Filtering - another powerful indicator for MetaTrader 4 traders.
When two moving averages cross, the indicator will alert once per cross and mark the cross point with an up or down arrow.Also recommended: Smart Session Breakout MT4: Asian Range Breakout with ATR Filter and Alerts - similar indicator with strong performance on MetaTrader 4.
ma_cross_alert_once_1a: Numerical input for MA method and price.
ma_cross_alert_once_1b: Dropdown list selection for MA method and price.
The indicator works on various chart types, including offline period-converted charts (M2, M3, M7, etc.), offline range charts, and offline Renko charts.
Possible enhancements:
- Second-by-second candle countdown timer
- Period converter indicator
- Close MA cross indicator
The indicator can be used with multiple timeframes: M1, M2, M3, M4, M5, M6, M7, M8, M9, M10, M11, M12, M13, M14, M15, M20, M25, M30, M40, M50, H1, H2, H3, H4, H5, H6, H7, H8, H9, H10, H11, H12, D1, W1, MN.
Note: The indicator does not draw historical arrows. The first arrow appears on the chart at the first cross after the indicator is attached.
Default MA settings are optimized for fast testing on M1 charts with a 7 SMA. Users should define their preferred settings, which can be saved and loaded via the Inputs tab.
Alert options:
- Popup alert
- Sound only
- Push notification
If both sound and popup alerts are enabled, only the sound alert will function.
All alerts correspond to broker time and date.
Ensure computer time is synchronized with internet time for accurate alerts.
Push notifications are fast and easy to set up, requiring MT4 installation on a mobile device and linking the MetaQuotes ID to the client terminal on the computer.
For further clarification on push notifications, refer to online resources or contact support via email.
The indicator's MA crossover code is based on the MQL4 book documentation.
You may also like: control points at ma crossovers - excellent alternative for indicator users on MetaTrader 4.
Source Code
#property copyright "robotfx"
#property link "https://robotfx.org"
#property version "1.00"
#property strict
#property description "this code is educational. feel free to use, modify and upgrade as you wish. visit robotfx.org for professional trading tools"
#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 lime
#property indicator_color2 red
input bool cross_alert = true; // alert
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.