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


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 RoundLevels draws two "round" nearest levels above and below the current price level. Short English comments are in the MQ4 file.

I modified the original MACD. This resulted in such an interesting indicator.

Indicator StochCandles. Paints candles on the basis of stochastic.

Indicator Stoch Crossing is a modification of EMA-Crossover_Signal based on Stochastic Oscillator.

Indicator Traders Dynamic Index, helps traders to supervise the market.

Indicator MTF_4TF_Supertrend_BarM. Works together with SuperTrend and uses signals CCI.

Percentage Price Oscillator displays more precise signals of divergences between prices and the value of the oscillator. It also emphasizes price extremums more precisely, it moves faster.

Indicator ToR_1.20. The indicator shows development of a currency pair.

Indicator MTF Stochastic Standard. Shows 4 stochastic on one.

One more version of indicator ChandelierStops. Works together with indicator ChandelierStops_v1.

A modified parabolic. It readjusts the entering/leaving points according to the situation on the market.

Indicator Hull_O_H_L_C.

Indicator OnChart Stochastic.

All data of this indicator is contained in the coordinates and names of graphical objects. Trade alerts are extracted from the graphical objects generated by the indicator.

Indicator SAR Color.

Indiactor IFish.

Indicator KaufWMAcross. Works with indicator Kaufma.

Indicator TZ-Pivot. Gives the recommendation on a time interval. See in a code.

A multi-timeframe indicator. It shows the trend direction for the charts of several timeframes in a separate window.

Modified Heiken Ashi

Modified indicator AvgRangeM.

One more version of the indicator Range.

Indicator OnChart Rsi.

Indicator FX5_SelfAdjustingRSI.

Indicator BB-Squeeze. The modified version. For work the indicator bbsqueeze is necessary.

Indicator FFS CrossTiming. Shows a trend of all cros'ов, connected with the considered pair. Further see in a code of the indicator.

Indicator EMA Prediction.

Indicator BAT ATR v1

Indicator RSI-TC.

I'm waiting for your opinions.

Indicator Filter over WPR. It is based on indicator Stochastic.

One more version of an indicator to calculate support/resistance levels.


An indicator for viewing turning shapes.

A trend-following indicator. It's simple as a coign.

Indicator Trix is used in determining of the overbought/oversold market conditions. You can also use it as an impulse indicator.

Indicator MTF Alligator+T3.

Indicator MTF MACD_Bars.

Indicators MTF Heiken_Ashi and MTF Heiken_Ashi_[sw]. Work with indicator Heiken Ashi.

Indicator Aroon_Horn_Oscillator_v1.

Indicator ang_AZad_Css[cw].