Watch how to download trading robots for free
Find us on Twitter!
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 - 24

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

When assigned to a hotkey, the script allows to almost instantly open limit orders with the specified risk level (in the deposit currency) and take profit (so-called braces).

Rebound pipsing within a daily channel

Trading signals function. Based on the values of the CCI indicator.

Aggressiveness - the rate of price change. Volatility - the size of the channel

Calculation of the number of lots by Anton Trefolev.

Determination of the entry levels

Errors function. In Russian.

Based on the values of the OsMA indicator.

Parabolic plotted based on Lows and Highs of a moving average. Efficiently displays the trends on smaller timeframes, and allows to mostly eliminate frequent switches, inherent to the "Parabolic SAR" indicator.

Alternative grid

works on the movement continuation with position inversion after closure

Modification of the DeMarker indicator with additional color indication based on the histogram

Moving average

It can be used as a standalone EA or as a method of recovery from losses

Popularly demanded modification of the RSI indicator

Oscillator based on turnovers

The script visualizes the deals on the chart in a convenient way.

Variation of the DeMarker indicator

Excellent trailing expert. I have been using it for a long time - I recommend it!

The indicator is similar to 4Hour Vegas Model.

Another variation of the fractals.

Multi-timeframe PCCI indicator.

Another variation of the Macd. I do not remember it had already been published.

The indicator predicts (at least tries to) the RSI on a specified number of bars using the cluster analysis

Example of plotting a function spectrum using the FFT library

The MACD is not required to be present on the chart. However, if a standard MACD is attached, the divergence lines will be drawn both on the chart and in the indicator window, and the indicator will use the MACD settings.

Really helps in trading

Attempt to more or less fully automate the opening of Buy and Sell orders

Simple Expert Advisor that simultaneously opens two positions in different directions, provided that the stop loss of the losing position triggers 5 points earlier than the take profit of the profitable one.

Divergence based on a standard Stochastic with Alert and language selection.

It can be combined with any indicator to get an expert

The Expert Advisor uses a certain candlestick pattern and Stochastic.

The script allows to change the color of selected objects to specified one.

This EA considers an example of classifier usage. It can be applied to any other strategy.

This is a table of signals created based on the popular market indicators ... I think anyone can find it useful.

I had thought about selling it, but my conscience did not allow that. I had worked on it for more than 2 months.

Allows to get the signals for entering and exiting the market.

MA with a price.

Good EA, good optimization results. The unfailing EUR/USD pair and H1 timeframe.

The idea has existed for a long time - based on the "Conservative intraday scalping" strategy, but I could not find a suitable indicator in MT4... Integration of the custom indicator to the EA.

1...171819202122232425262728293031...102