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

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

EA with candle size filter and scale on loss

Arrow trends by iBearsPower and iBullsPower indicator for MT4.

A Price Time correlation model is used for Trend and Reversal trading

Indicator Bears and Bulls Power for MT4 together in one separate window.

TraderTool is a tool/panel that will help any trader to perform trades quickly and easily. The product has been developed with user-friendliness and ease of use in mind. It has the ability to manage multiple types of orders, either placed by an Expert Advisor or manually. It also allows you to place orders in a single click. For more informations, you can visit the product's page: https://www.mql5.com/en/market/product/9509

Volatility ratio

Virtual Robot

Three Moving Averages Convergence/Divergence - Indicator for MT4

The code consists of lines created according to the opening, closing, low and high values of prices.

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

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

Divides whole levels into Halfs and Quarters.

Trend indicator

This EA doesn't need any indicator, just moving price action is necessary to operate.

Expert adviser that use a custom modified Awesome Oscillator indicator

Shows what % the current ATR is relative to it's historical value.

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

"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, rounding, formatting and debugging of doubles (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)

1...67891011121314151617181920...101