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

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

GBPJPY 5M Only. Good luck.

This indicator is a small modification of classical Fractals Indicator. You can choose the number or left/right bars to have a new top or bottom as well a shift parameter.

popup tip: any bar's local time, with help of a verticle line.

This is a indicator to see if you can find a trend by drawing a graph with bars counted.

Taking a Closer Look at the Workings of the ZigZag Indicator.

liquidex is a HFT EA. It uses moving average and range to determine it's entries and exits.

Take screenshot in the original chart size with labels (instrument, timeframe)

Check out any MQL5 closed positions on a chart.

The EA will close all open orders across all charts corresponding to the EA chart symbol when Bid or Ask is equal to or crosses the Kijun Sen.

The EA will close all open orders across all charts corresponding to the EA chart symbol when Bid or Ask is equal to or crosses the MA.

A collection of predefined Scripts immediately available for use without having to key-in. Step-by-step instruction how to make your own Scripts from Scripts Collection.

The indicator draws support & resistance levels based on the last MN1, W1, D1, H4 and H1 fractals.

It Is placing stop loss and take profit at a given distance. Displays the current status of open orders. For closing of the order it is enough to select and move the label to the left.

Detects and displays the fixed value of Constant Range Bars/Candles.

Detects and displays the fixed size of Renko Bars/Candles on offline chart.

Value Chart as developed by David Stendhal. Value Chart was designed to show the valuation of the market.

ALGLIB math function library (v. 3.5.0) ported to MQL4.

Time indicator displays broker time and local computer time on the chart.

Example of working with OBJ_EDIT graphic object.

Weekly and Monthly Pivot shows resistance and support lines of pivots using classic formula

This isn't an operating EA, but profit management EA.

Draws label of the chart symbol and Period. Any text size, color and position on chart.

Shows the distance to assumed stop with two lines located at a predetermined distance from the current price.

Alerts on New Bar. Alert options - 1: Popup Alert, 2: Sound, 3: Email, 4: Push Notification for iOS and Android.

Triggerlines ported from NinjaTrader to be used with existing strategy and to help identify key buying and selling areas.

Draws a Weekly Open Horizontal Line and Horizontal Target Line above and below the Weekly Open Line.

Example of working with OBJ_LABEL graphic object.

It uses 3 fast MAs to determine entries and exits as well in an event of a crossover.

This is the Expert Advisor with Money Management and signal selection. You can add your own signals in this EA very easily by just adjusting the function signals.

EURX=34.38805726 x [(EURUSD x 0.3155) + (EURGBP x 0.3056) + (EURJPY x 0.1891) + (EURCHF x 0.1113) + (EURSEK x 0.0785)]

Coensio Swing Trader makes it possible to trade semi-automatically using manually pre-defined support/resistance or breakout levels.

Indicator measures the momentary USD currency strength, using combined data from the following four USD pairs: EURUSD, GBPUSD, AUDUSD and USDJPY.

Best used on monthly candlestick charts with four decimal points to a pip (use the JPY version for other pairs). This EA calculates the likelihood of your desired range of pips being hit based on two years of past trading ranges and a statistical forecast

TRYBASK= 1 x [(USDTRY x 0.50) + (EURTRY x 0.50)]

Candle Closing Time Remaining (CCTR) is an indicator which displays the remaining time for an open candle to be closed.

Shows the Max and Min levels of the previos day and today's open price. Change the "up" and "dn" parameters to see the day candle.

The indicator shows the current market conditions.

The indicator shows the remaining candle time.

This scripts uploads data of open and pending trades to a webserver and with additional webscripting saves it to a database for further processing. May be a good basic for providing signals in your site.

this sideway or trend...confuse?? use this indicator

1...232425262728293031323334353637...85