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 - 80

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

Indicator Weekly_HILO. It represents HiGH and LOW prices.

This EA based on indicators: RSI, WPR%, Stochastic, Moving Average, deMarker. Only 15 MIN charts I recommend

10K Flipped to 666K Under 3 Months, 60.04 Profit Factor...Have Fun! Code Pushes 3 Lots(Maximum) at a Time.

A TS based on the kickback from intraday levels calculated by indicator Pivot is implemented.

A try to formalize three parameters of a candle - the upper, lower shadows and the body.

The indicator informs about that the price is approaching to support/resistance line in 3 positions.

Sell when Up >>> Buy when Down

It's a complete analog of indicator LSMA

TEMA and DEMA are next of kin

The MACD indicator is built on the basis of RSI that, in its turn, is built on MA.

Besides already fixed bars, the indicator shows the intermediate static positions of the ZigZag indicator. It will be helpful for those developing systems based on ZigZag.

An expanded version of the Normalized Volume indicator. Added means facilitating visual analysis of the indicator's values.

The indicator is build on the basis of moving averages. Its main feature is entering/leaving signal - the indicator's line is colored in a certain color signaling for the user to buy or to sell. The accuracy of the signal is very high.

Demo it First... $5000 Flipped To $243K in 3 Months. Coders Needed, Not Finished.

Trading on news.

Indicator Otcfx_b-clock modified V3.2. Another version of the recommended indicator.

Reversal indicator. It represents 3 lines of different colors showing the trend speed on the current, the nearest larger and the next larger timeframe (TF).

Another version of popular ZigZag.

An original indicator that shows buying/selling signals.

A standard indicator Fractals, that doesn't redraw the lasr fractal....

The pattern of the MACD trend continuation

TS on the break through of daily resistance/support levels of the Pivot indicator.

The standard linear regression channel and support/resistance levels.

Indicator Price and Volume Trend (PVT), like On Balance Volume (OBV), represents the cumulative sum of trade volumes calculated considering close price changes.

A 4-hour MACD FOREX strategy

Previously uploaded Expert Advisor Kloss specially revised for optimization

A set of function tools.

The indicator shows the trend. A code example for candlesticks colored in four different colors according to the trend strength.

Unloading quotes from the selected period into an external file.

Drawing all results from a strategy tester report file into a chart.

The indicator displays signals to buy/sell.

Indicator that predicts possible reversal points.

The indicator colors candlesticks.

The indicator colors bars.

A primitive Expert Advisor that learns from its own mistakes.

The Expert Advisor demonstrates the possibility to gain profits using the position opening strategy based on the "heads-or-tails" principle.

Indicator Tro_Range.

Very simple indicator PLdot. It's been even optimized.

A simple system without indicators.

Indicator of the normalized volume

1...737475767778798081828384858687...102