Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Access the CodeBase from your MetaTrader 5 terminal
Couldn't find the right code? Order it in the Freelance section
How to Write an Expert Advisor or an Indicator

MQL4 Source Code Library for MetaTrader 4 - 81

icon

The largest library features codes of free trading Expert Advisors, technical indicators and scripts. With the available applications you can trade in automated mode and analyze price dynamics. Use the library of codes to learn more about financial market sentiments.

Download free applications, test them and run in your MetaTrader 4. You can access them from the MetaTrader 4 platform and the MetaEditor development environment.

Submit your code

Combo of averages and MACD. All parameters are free to be changed.

A step-by-step passing of historical data for manual testing of trading.

Script interception of pressing keys or mouse buttons in the windows of MetaTrader 4. It can be helpful in writing controls.

Report generator

CustomCandle draws candlesticks of a larger and, perhaps, non-standard (for MT 4) timeframe in the current chart.

Market Profile is a tool used by many Futures traders.

Another version of a recommended indicator.

Indicator BreakOut_Panca_eagle.

3 bearish and sequential lengthening bars? Bruins, we are not going your way!

An EA developed on the basis of "Full Dump" system.

A DLL to manage and exchange data between MT4 and MS Excel. OLE is used. The description of the DLL functions is given in the attached example. The example is a script that sends quotes to Excel and builds the diagram of daily price changes. At exiting,

The EA works with the 1 min EURUSD AMA signal but can't turn the corner without latent signals. Can somebody try to work the flaw and make the signal more precise. It has some RSI and MA added to filter. But not enough to accomplish a msot profitable tra

The EA unloads historical data in the *.csv format for several timeframes of the symbol it is attached to.

EA up3x1 of the Krohabor_D series with a universal technology of "win-win" trading.

A slightly optimized EA template from article MetaEditor: Templates as a Spot to Stand On

The script should solve the "fading charts" problem - the situation when the charts stop being updated while the connection to the server remains ok

Indicator LinearRegSlope_v1.

Indicator Heiken_Ashi_Ma_T3.

This expert advisor is based on the Volatility Quality Index indicator created by raff1410.

It is a source code by winwin2007 - one of the leaders of the ATC 2007. It works only with the spread 2. It is closed after gaining the minimal profit, that is why Stop Loss and Take Profit levels of a brokerage company are not a problem for it.

The most reliable Expert Advisor. EUR/USD 1H

Automated volume calculation for the preset risk factor, and order(s) opening.

Indicator has a rekomendatsionny nature. Shows signals on the basis stohastika.

Trading without indicators!!!

A simple indicator will be useful for beginners. Even the present optimization.

Shows when to sell and when to buy, but not so simple.

Another indicator showing recommendations for each currency pair and period.

Indicator Triggerlines Shift Modified.

We need two indicators: ADX and MA

A script tool for those who develop programs in MQL4. It allows to display the contents of any font in your chart.

Indicator colours prices of certain areas hh: mm_start before hh: mm_finish.

Indicator KDJ deactivates short-term fluctuations. It carries on a parameter to adjust and increase two new RSV index lines: close price of short-term volatility KDC: K-D difference, to determine the change of price trends and to open positions.

Draft daily trend-following EA that trades using ZIGZAG-FRACTALS on high/low of the preceding bar on a one-hour chart. TakeProfit is 13 points.

I supposed to use the EA for trailing, but added graphical order management to it while programming.

The indicator shows the volatility of a currency pair. This knowledge may be very helpful when using one strategy or another.

The indicator colored in the AC/AO style with disabled zero bar. It is proposed not to display the forming bar of the indicator, but to show only a signal line of the bar being formed.

A version of indicators to detect Support/Resistance levels.

Building in the current window a ZigZag calculated on a larger timeframe.

Draft EA that works on H4, first entering on daily chart. It uses Ryan Jones' Fixed Ratio money management method and "reverse pyramid.

A test script with the functions that calculate the true value of a graphical object's Y coordinate. It is useful to watch the bar forming.

1...747576777879808182838485868788...102