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

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
latest | best

"Broadening top" naked trading price action EA draws 2 mini Trend Lines with "Fractals" on chart and trades with Broadening top strategy, has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

"Reversals With Pin Bars" naked trading price action EA draws 2 mini Trend Lines with "Fractals" on chart and trades with the Reversals of Pin Bars,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

Improved version inspired by RSI_candles by © mladen 2018 https://www.mql5.com/en/code/20968

Trending Indicator MACD with coloured Histogram to detect trend and retracements in that trend.

The script exports summary of closed trades grouped by each trading day to .csv file

All ingenious is simple!

Support and Resistance lines are used with the Standard Deviation indicator for generating trade signals.

"Cryptocurrency Divergence" EA draws 2 mini Trend Lines with "Fractals" on chart and trades with Divergence\Convergence of RSI & MACD indicators ,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs, Crypto and stocks NASDAQ.

Advisor for a currency pair Gbp/Ghf. Algorithm - by opening the bar. Timeframe - H1.

"Crypto Scalper" EA uses MFI indicator as Overbought and oversold indicators ,has Trailing Stop Loss &Take Profit works with all time frame major forex pairs,Crypto and stocks NASDAQ.

The script downloads the historical quotes data of a single timeframe for all symbols in the market watch.

"Crypto Analysis" EA uses 2 different time frames BB&RSI as Overbought and oversold indicators ,has Trailing Stop Loss &Take Profit works with all time frame major forex pairs,Crypto and stocks NASDAQ.

"Crypto S&R" EA uses 2 different time frames and fractals as support & resistance ,has Trailing Stop Loss &Take Profit works with all time frame major forex pairs,Crypto and stocks NASDAQ.Short description.

Adaptive Moving Average - AMA

Handy functions for comparison and rounding of floating-point numbers (prices, lots and money).

This is useful if you want to earn and work on 5 min chart . it uses bb , ma 10, ma50 , Psar, slow s, one faster s and macd along with rsi to give a perfect view of market . if you need some help let me know in my email. rinkanrohitjena@live.com only works in mq4 language . just drag and drop on a five min chart

EA based on parameters of the BOOK of John Bollinger with Lot size calculator and position overlaping.

The script exports summary of closed trades grouped by each currency pair to .csv file

"Cryptocurrency " EA Trades with 4 Fibonacci MAs has Trailing Stop Loss &Take Profit can work on all time frames Cryptocurrency , major forex pairs, and stocks NASDAQ.

Variance calculated using no-loop method

Variance (Welford’s method for computing)

User may enter up to 50 symbols from their market watch in either a long or short basket for viewing. The symbols for the chart can be changed to any symbol in the display with a click on the symbol. Statistics including ATR for the chart period, points gained or lost from a weeks start and position gains or losses and lots exposure are displayed. The statistics week may be changed with simple clicks on the display, and the display may be dragged and dropped to different locations. The load on quote processing is kept low by simply posting an event that starts the processing for a display update.

Hull moving average (non-repainting version)

Do you rely on your analysis and just want help on position sizing and how and when to take profit ? Do you have a lot of open positions and you need to reduse your DD and release some margin?

Quick scripts to remove Equity from a demo account for a broker that does not support anyway to withdraw.

Simple decycler oscillator

Sell relative strength index (SRSi)

This Expert Advisor is a tool for managing orders. The expert can to add stop loss and take profit in each order, and then can manage it. For more information about the expert, you can visit the product's page: https://www.mql5.com/en/market/product/7387

This indicator is a tool to show history orders on the chart. Indicator show open time and price, close time and price and profit in pips on the chart. It helps the trader to see all history orders which are opened either manually or by an automated system on chart. For more information about the indicator, you can visit the product's page: https://www.mql5.com/en/market/product/33657

This expert is a tool to manage the level of profits or losses for each order without using stop loss or take profit. The expert applies virtual levels to close orders in profit or loss. You can use the expert to manage manually opened orders or manage orders opened by another EA. For more information about the expert, you can visit the product's page: https://www.mql5.com/en/market/product/27228

This indicator uses Bollinger Bands lines to detect markets trend. It's a very useful tool for manual trading. Furthermore, it is possible to use the indicator with ATR as a filter, as well as the option to pop up an alert when a reverse trend occurs. For more information about the indicator, you can visit the product's page: https://www.mql5.com/en/market/product/6333

This indicator uses Moving Average to detect markets trend. It's a very useful tool for manual trading. It's better to use it with other technics as a complete system. For more information about the indicator, you can visit the product's page: https://www.mql5.com/en/market/product/6420 Update v1.2: Added popup alert.

STOCH in MA is an indicator which applies the stochastic changes to the iMA. It can help to detect the trend of prices. For more information about the indicator, you can visit the product's page: https://www.mql5.com/en/market/product/26467

MACD in MA is an indicator to change color in iMA if iMACD is upper of zero (uptrend) or lower of zero (downtrend). It helps any trader to see the trend of pair. For more information about the indicator you can to visit the product's page: https://www.mql5.com/en/market/product/25084

RSI in MA is an indicator to change color in iMA if iRSI crosses level up (uptrend) or crosses level down (downtrend). For more information about the indicator you can to visit the product's page: https://www.mql5.com/en/market/product/6446

CCI in MA is an indicator to change color in iMA if iCCI crosses level up (uptrend) or crosses level down (downtrend). For more information, you can visit the product's page: https://www.mql5.com/en/market/product/6444

This expert is a tool which helps every trader to see the historical results by magic number or orders' comment. For more information for expert you can to visit the product's page: https://www.mql5.com/en/market/product/26008

It's an indicator to show some information about the account on the chart. For more information about indicator you can to visit the product's page https://www.mql5.com/en/market/product/7056

This expert is a tool to check broker execution and spread. For more information about the expert, you can visit the product's page: https://www.mql5.com/en/market/product/5791

This Expert Advisor closes all open positions and pending orders. It is possible to close only buy or sell orders, market or pending orders, positions with profit or loss. For more information about the expert/utility you can to visit the product's page: https://www.mql5.com/en/market/product/7010

1234567891011121314...95