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

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

The 8 effective steps to build a robust day trading plan using Fibonacci retracement

Clarity index is a purely volume based indicator which is constructed on basis of volume, range and positive/negative candle count. It reflects the strength of trend with respect to volume.

MultiVote On Balance Indicator displays a higher resolution of trading volume activity to the regular On Balance Volume calculation.

This is just a framework for building a simple EA

New fisher to catch trend with indication UP and DN

Stock trading indicators. BIAS.

A simple but fully functional program that demonstrate how a martingale can work for you. Just change the entry analyis using your own scalping strategy and your personal money management style, then optimize.

ADR,AWR,AMR,Draws Average Range Lines

This script was developed in order to help us detect if a chart is actually trending or going nowhere.

The Stochastic RSI indicator (Stoch RSI) is essentially an indicator of an indicator. It is used in technical analysis to provide a stochastic calculation to the RSI indicator. This means that it is a measure of RSI relative to its own high/low range over a user defined period of time. The Stochastic RSI is an oscillator that calculates a value between 0 and 1 which is then plotted as a line. This indicator is primarily used for identifying overbought and oversold conditions.

The 8 effective steps to build a robust day trading plan using Fibonacci retracement

Use the intersection of two moving average lines to draw a vertical line

Visual multi-timeframe trend indicator.

Example how to use file write function

Draw Fibo Expansion

It only demonstrates the possibilities of the multiplier.

This strategy is the well known set & forget with the ALERTING system. It is very useful on different trading scenarios. I urge you guys to always use trading tools that will make your live easier. So instead of watching the charts and the time and all day long, you can use this indicator that will watch the charts for you.

This is a straightforward script for strategically managing open trades and pending orders.

Catching the extreme change on candle.

Three-layer indicator Fibo Bars 2 by Ivan Kornilov

Identifies over-extensions in price

For day traders. 2 highly important indicators to turn strategies into extreme winning ones. The Win/Loss ratio and the Reward/Risk ratio will allow us to identify the best times and days our strategy works the best

Draw the Camarilla pivot point levels

View price in MACD

I am sharing this pyramid. It is not perfect but works for me.

For day traders, this is one of the important thing to consider in order to improve our strategy by calculating on average how much an asset moves, in which it will allow us to identify the best TIME during the day to trade when the market moves the most as well

Any account type,leverage and deposit

On all MT4 market execution accounts (ECN, ECN Zero and Pro), preset stoploss/takeprofit price levels are not permitted. If a client wishes to specify stoploss/takeprofit values for an order, the client must modify the existing position after the order is opened. This EA helps a client effortlessly ensure that an on order is modified to desired stoploss/takeprofit values a short while after a trade position is opened This is especially helpful for scalpers who want to avoid the trouble of manually editing trade properties every-time a position is taken on a financial instrument. EA by Maduagwuna E.I

DXYvsEXY_e1 is an optimized version of DXYvsEXY. Original code here: https://www.mql5.com/en/code/30714

This is one of the important thing to consider in order to improve our strategy by calculating on average how much an asset moves, in which it will allow us to identify the best days to trade when the market moves the most as well as the worst days to trade in order to prevent trading during these days.

The power of Evelopes with trailing stop.

A logging library similar to Log4j but for MQL.

Visualization of 3 previous daily bars with alarm.

The source code is only a guide for the development of your EA.

Expert Advisor in MQL4 with 4 signals based on 6 Indicators. Works at any stock. If anybody wants to translate it to MQL5, it would be great. I still do not know MQL5. If you do, please, let me know.

Most traders keep losing money because they focus on money rather than planning their trades based on Percentage risk.

Are you tired and lost when it comes to creating an attractive market watch list ? You always see pro traders creating an attractive market watch list in which they draw support/resistance and create all possible scenario ? Well we will guide you step by step to create your own attractive market watch list for potential entries.

An indicator that draws a Risk/ZReward Box Automatically on your chart

When MaxBand > MA of MaxBnd => SMART-ZONE HIGH When MA of MinBnd > MinBand => SMART-ZONE LOW You can set the bandperiod of Max/MIN Band, and the period and the method of M Aof Max/Min Band With different parameters, the indicator gives us the pivotal areas or the trend areas

123456789...95