Watch how to download trading robots for free

Find us on Facebook!
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 - 36

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.

To post a new code, please log in or register
latest|best

disturbed EA wich open a long and a short position at the same time.

This indicator watches the major currency pairs to find the status of the current candle (Bullish or Bearish) of USD, EUR, and GBP compared to other currencies such as EUR, JPY, GBP, CHF, AUD, and CAD.

This indicator use in cross ( es. EURAUD, GBPAUD, EURGBP, ect) depends of correlation of currency. Usually I use with timaframe Daily. But I think can to use in another timeframe. Important can use in commodity and stocks.

Calculates pips between Order Execution price and and Stoploss or/and Takeprofit price.

My first trading System using simple pattern.

The InsideBars indicators can be used for trading with breakout Strategies.

This Expert Advisor is based on 3_Level_ZZ_Semafor indicators.

Oscillatior indicator that counts Up bars (Close-Open) and Down bars (Open-Close).

Expert Advisor EUR/USD (1H) +78% win.

Based on two MA.

Displays the trades from the history as visible lines on the chart

Exports your history into a .csv file which can be read by excel or similar. You can sort your trades and see easily how much a certain EA won or lost.

yesterday market close european market or NYSE close price

Two modified COG indicators. Center of Gravity on Stochastic in sub window and enhanced On Chart COG.

This is the Figurelli RSI automatic gain version, so input parameters is the same as original Welles Wilder RSI (i.e. period setup). The indicator figures out the gain value based in minimal and maximal values inside the sample and period programmed.

EA achieved best results on Renko Chart. Renko Chart is not mine but I used it to write EA on it. EA can trade every pair but I got best results on GBP/USD and EUR/JPY. I'll appreciate any comments.

The indicator is similar to Bollinger Bands (this same idea), but it uses GruchaAvarage instead of MA for counting.

Opens sell, buy or both orders at a specified time.

Based on MACD.

In my opinion, Welles Wilder RSI (Relative Strength Index) is a great momentum oscillator that works fine for small periods values (from 2 to 20). So I did some changes to it performe as good for greater periods, like 120, introducing a gain variable.

This EA implements a trailing stop buy and a trailing stop sell. It places an order above the price and below the price. The sell stop order will fall with the price, the stop sell order will rise.

Price levels Call / Put the lines of support / resistance.

Many consecutive Heiken Ashi candles of the same color often indicate a soon and harsh trend reversal. This indicator shows the number of consecutive same color candles. So you can see overbought and oversold situation at first glance.

Average Directional Movement Index with Standard Deviation

Индикатор показывает дивергеницию на стандартном стохастике.

The system of multiple strategies "in the same package," with a virtual trading system to determine the rankings for each of the strategies (before open market order) and the library management of investment-capital.

Trailing orders (in person) and the total profit.

On a way to Grail!...

Strategy is based on simple rules. It can work on any currency pair. Best results are obtained with the lowest set TS. The strategy works with any broker, but works better with brokers who allow you to set the low TS.

Shows 4 sessions: Pacific, Asian, European, American.

Trades using two moving average crosses.

Opens and closes orders using parabolic sar signals.

One more step to perfect.

EA trades on a large market movements, and does not uses any indicators.

This is my own best EA, in the main lines can be setted up many things.

Very simple scalping EA, no Indicators. Logic is based on very fast price movements.

Based on Zigzag Indicator.

These scripts will record and file a picture of the chart at the time of each trade executed with them.

Envelopes with MaOnArray and Average True Range.

Just like internet speed test can tell you your internet speed, SpreadProbe can measure ask/bid spreads on the go.

1...293031323334353637383940414243...85