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

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

Channel Indicator using SMA

Mean Reversion strategy works best on daily time frame major forex pairs .

This EA will Close All your current running Trades when Applied.

A Simple Trade Management Script

This Script Closed All Open Orders At Once (Except Pending Orders)

Time segmented volume (TSV) is a technical analysis indicator developed by Worden Brothers Inc. that segments a stock’s price and volume according to specific time intervals. The price and volume data is then compared to uncover periods of accumulation (buying) and distribution (selling). Time Segmented Volume was developed by Worden Brothers, Inc to be a leading indicator by comparing various time segments of both price and volume.

Our newest Ai trading software! Enjoy investing in the safest way. Uplink Trade Hedge is using a safe hedging strategy which allows you to invest safely into the forex market. No quick profits but an investment opportunity. Invest for your future!

One code that works for both Mt4 and Mt5 combined. Salient features of the code: -Filter News by High, Low or Medium Volatility -Filter By currencies -Filter by News Keyword -Auto GMT offset check -Dashboard to show upcoming News (Can be enabled or disabled) -Lines on chart for all Upcoming events -Code can be easily modified to place trade at certain time before or after an event or to just stop trading during events.

Get notifications when hit price level

Draw trade history onto chart

Plot entry and exit as line objects from MQL5 signal CSV onto chart

Some call it as MCDx Smart Money Indicator. It's just modification from RSI indicator.

3LS

Converted 3 Line Strike by TheTrdFloor from TradingView to MQL4

Checking the Cross of First Two lines of the Ichimoku Indicator

Histogram of momentum

An Efficient EA to notify breakouts

Converted ATR Bands by AlexanderTeaH from TradingView to MQL4

Converted Trend Direction Force Index v2 - TDFI [wm] from TradingView to MQL4

Converted SSL Channel by MissTricky from TradingView to MQL4

Only successfully tested on INSTAFOREX broker, InstaForex-Europe.com server 5 digits, pair EURGBP daily, leverage 1:1000, with free swap account.

This Script is the example of using function LineNotify that use to send message to LINE APP via Line Notify service As the function LineNotify use webrequest to send HTTP request so it can be used in EA or Script program only , can't use in Indicator program

An exponential moving average of the true range and the offset of its average deviation

Indicator that shows higher timeframe candle on current timeframe.

Converted LazyBear Squeeze Momentum Indicator from TradingView to MQL4

This indicator gives the Speed and Acceleration of the price for a given period. In order to make a smooth graph, can be used a procedure using the Hull Moving Average method

a procedure that calculate most stats in one call: R-Squared and Linear Regression

Arrow Up and Down on each bar and other informations.

ScalpX is an indicator that uses Kalman filters to identify buy and sell opportunities whenever is indicated by the graph.

these two indicators have been coded well and they can be used for the purpose of market trend analysis for the purpose of increasing the accuracy in trading. The trend Analyser Dashboard will tell you the direction of the trend and whether to trade that particular trend for the moment or not. The perfect trend scanner will show you the direction of the trend also and blue histograms are for uptrend while red ones are for down trend. These two indicators have two different separate codes. The two indicators are already available on the market so the files codes provided here are only for demonstration of how the code looks like. Thank you

This indicator shows market highs and lows for any timeframe with period separators. You can see daily/weekly/monthly highs/lows on lower timeframes like H1/M30/M40. This is good for trading breakouts.

Kalman Speed oscillator... Just an experiment

a bit more EA frliendly version

Adaptive grid expert for mt4

CCI of Moving Average with Dynamic Signal Lines

A simple indicator plotting a channel with a constant range

Colors bars when their volume has exceeded more than a standard deviation, or a multiple of it. Volume is commonly used as confirmation for a break of a significant level.

Trade classes CTrade, CPositionInfo, COrderInfo, CSymbolInfo from MT5 rewritten for MT4

SmoothStep (generalized) - metatrader 4 version

SmoothStep (metatrader 4 version)