Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Moving Average with alerts on price crossovers - indicator for MetaTrader 5

Views:
9237
Rating:
(4)
Published:
2023.07.30 15:19
Updated:
2023.09.03 18:46
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

My goal was to make an indicator that triggers signals when the market price cuts the moving average.

The moving average period length can be user defined (default is 200 length). The amount of points of price movement above and below the MA to be considered a signal; is also user defined in the inputs.

If shorter timeframes are used such as the 2 minute or 5 minute TF, the points number needs to be low (roughly 15 - 20) as price is moving by less points on these timeframes.

If the 1 hour timeframe or higher is used, a points number of 80 or higher should be used to smooth out the signals.


The signals are in essence based on price moving above or below the line, and the purpose of the indicator is to catch such events sooner rather than later.



Indicator Inputs Explained

Input Description
Moving Average Length The period length of the moving average line.
Audio Alert Sample The user defined name of the audio sample which should match the name of the actual audio sample (must be placed in data_folder/MQL5/Files)
Enable Audio Alerts Set to true or false depending on whether the indicator should trigger audio alerts
Amount of Points on MA Crossover This is the user defined amount of points of price movement that should trigger signals for the bars moving over the MA
    RectangleTest RectangleTest

    The EA trades using the Rectangle, EMA and SMA indicators.

    Support and Resistance indicator for MQL5 Support and Resistance indicator for MQL5

    This is a custom support and resistance indicator, signaling bouncebacks and key market levels.

    Trend Dashboard Indicator Trend Dashboard Indicator

    Trend Dashboard Indicator MetaTrader 5 indicator — a multi-timeframe indicator that is based on three standard indicators: Stochastic oscillator, RSI (Relative Strength Index), and CCI (Commodity Channel Index). It displays current trend directions for M1, M5, M15, M30, H1, H4, D1, W1, and MN1 timeframes. When you follow such an indicator you have a clear picture of the trends across all important timeframes. It doesn't matter which timeframe you attach this indicator to. The indicator can be downloaded for MT4 and MT5.

    Reporting Memory Leaks in Strategy Tester Reporting Memory Leaks in Strategy Tester

    Monitoring of memory leaks in the strategy tester