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

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

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)

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.

This indicator is a tool to show history orders on the chart.

This expert is a tool to manage the level of profits or losses for each order without using stop loss or take profit.

This indicator uses Bollinger Bands lines to detect markets trend.

This indicator uses Moving Average to detect markets trend.

STOCH in MA is an indicator which applies the stochastic changes to the iMA.

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.

RSI in MA is an indicator to change color in iMA if iRSI crosses level up (uptrend) or crosses level down (downtrend).

CCI in MA is an indicator to change color in iMA if iCCI crosses level up (uptrend) or crosses level down (downtrend).

This expert is a tool which helps every trader to see the historical results by magic number or orders' comment.

1...91011121314151617181920212223...104