MQL4 Source Code Library for the MetaTrader 4
Want to learn the MQL4 programming language, but don't know where to start? Here you can find a lot of MQL4 programs for the MetaTrader 4 client terminal. Study these examples and develop your own indicators and Expert Advisors. Being published in the largest library of codes in the MQL4 language, your applications will be accessible from every MetaTrader 4 terminal and MetaEditor IDE.
Your examples in MQL5 will be distributed throughout the world and hundreds of thousands of traders will learn about you!
Expert Advisor that closes orders after defined profit or loss.
The function will filter the trade positon. If the current time in the time you set, the function will return true.
The indicator shows candle end time and current spread.
Traces the output of indicators by buffer. Output can be changed on the chart by moving the VL left or right.
The indicator helps to find the correct trend before enter the market.
Trading information with Fractal trend.
The indicator calculates and draws the highest, lowest and median point of certain period.
The script recognizes and shows peaks and valleys of certain period.
This indicator will write value degrees of the lastest position of price at the current timeframes, and when position and condition of trend status was changed, the indicator will give an alerts.
3 EMA Crossover Indicator.
This indicator based on a 5 period simple moving average detects trends: if there is an uptrend then shows green bars, if there is a downtrend then shows red bars, if there is a weak trend then shows yellow bars.
Realize virtual profit trailing.
An EA with Parabolic SAR indicator to check for Buy and Sell signals and automatically close the positions to lock in profits.
Average Modified Moving Average.
Expert Advisor template with Trailing Stop, autolots, candle scan, buy block sell and more.
Detects Head Fake Patterns which are effective in trading reversals.
This Expert Advisor is based on SMA, ADX and SAR indicators.
The spread_on_chart indicator shows the current values of spread, stop and freeze levels.
The oscillator for intraday trading.
Library to work with Skype.
The indicator shows entry points according to AC indicator.
Plot the STOPD Price Levels based on user specified timeframe.
The Expert Advisor shows the current values of World Stock Indices from Google Finance using WebRequest function.
The Expert Advisor shows the properties of the signals, allows to modify the signal copy settings and subscribe or unsubscribe to the selected trade signal.
Step Up and Down Forex Indicator draws the price direction movement with single arrow Up or Down on the trading chart.
DailyLines Vertical lines starting new Day with above name of the DAY. Period Separators with options to choose different styles.
The purpose of the present code is to demonstrate how easy it is to create color scales, color gradients and heatmaps with the MQL4 language and functions.
3 Dimensional MACD Ribbon.
This is a percentage of the user set stop-loss or profit robot.
ProfitInfo is an indicator to show in one window opened buy and sell trades of defined symbols and systems.
Advisor exposes not visible to brokers levels StopLoss, TakeProfit, Breakeven, Traling stop
An indicator based on three moving averages.
The indicator loads as a Menu on the menu bar. Click the Symbol Menu to open or close the symbol list. Click a selected symbol to change the chart symbol.
This indicator combines Moving Average (MA) and Average True Range (ATR).
The indicator shows the channel.
This indicator draws three Donchian bands: up, middle and down bands based on which you can design your scalping system.
This indicator adds H3, H6, H8 and H12 time frames into your charts.