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

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

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

Three mooving average of WPR indicator, you can set the indicator period, the mooving average period and the mooving average method.

This strategy is the well known set & forget accompanied by the martingale system. It is very useful if you are very busy in which you don't have time, you want to trade the London session while you are sleeping in USA, etc.

This strategy is the well known set & forget accompanied by the anti-martingale system. It is very useful if you are very busy in which you don't have time, you want to trade the London session while you are sleeping in USA, etc.

in raw form for currency pairs and indices.

Hull moving average (ema based)

This expert shows the maximum profit level that touched by price line for your first position on chart window. the expert don't need any variable or specified timeframe. Please vote this program to help know this program how much helpful. Thanks for your vote stars.

ATR adaptive SMA (Simple Moving Average)

Fully customizable: Period, TimeFrame, Color, and Price. Above 0: Chartreuse Below 0: Red Above 100: Marron Below -100: Dark Green

This indicator draws a trend-line directly on a chart. It uses the Theil Sen Estimation method to calculate the slope of the trend-line. Theil–Sen estimation is a method for robustly fitting a line to sample points in the plane (simple linear regression) by choosing the median of the slopes of all lines through pairs of points.

Indicator DXYvsEXY is the USDX vs EURX with Awesome Oscillator Indicator for MT4.

Synchronous change of a trading instrument in all charts

This Expert Advisor based on Envelopes indicator from MT4, my best TimeFrame is 5 Minutes on GBPUSD.

Manage risk like No Nonsense Forex easily in MT4

This Expert Advisor based on Relative Strenght Index, Commodity Channel Index and Moving Averages MT4 Indicator for Signal. Please test in Demo Account first. Regards.

"Currency Strength" EA finds the strongest\weakest currency from 8 major currencies and trades with moving averages, has Trailing Stop Loss &Take Profit works on all time frames major Forex pairs.

Short description: This Script will draw a line from the open to the close for each order in you account history. please show all history in account history before using this script.

An oscillator that duplicates the chart of a selected asset in a separate window in three ways: line, bars and candles. This is essentially an indicator Bollinger bands, displayed in a separate window. In my opinion, it will be useful for beginners as a way to look at various technical signals from a different angle. This indicator helped me in an adviser for filtering unfavorable moments for trades.

Power of USD indicator shows actual strength of currency USD calculated of 7 pairs that contain USD. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR USD, AUD USD, NZD USD, GBP USD, USD JPY, USD CAD, USD CHF.

Power of NZD indicator shows actual strength of currency NZD calculated of 7 pairs that contain NZD. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR NZD, GBP NZD, AUD NZD, NZD USD, NZD CAD, NZD JPY, NZD CHF.

Power of JPY indicator shows actual strength of currency JPY calculated of 7 pairs that contain JPY. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: USD JPY, EUR JPY, GBP JPY, AUD JPY, CAD JPY, NZD JPY, CHF JPY.

Power of CHF indicator shows actual strength of currency CHF calculated of 7 pairs that contain CHF. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR CHF, USD CHF, GBP CHF, CAD CHF, AUD CHF, NZD CHF, CHF JPY.

Power of GBP indicator shows actual strength of currency GBP calculated of 7 pairs that contain GBP. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR GBP, GBP USD, GBP JPY, GBP AUD, GBP CAD, GBP NZD, GBP CHF.

Power of EUR indicator shows actual strength of currency EUR calculated of 7 pairs that contain EUR. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR USD, EUR GBP, EUR JPY, EUR AUD, EUR CHF, EUR CAD, EUR NZD.

Power of CAD indicator shows actual strength of currency CAD calculated of 7 pairs that contain CAD. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: USD CAD, AUD CAD, CAD JPY, EUR CAD, GBP CAD, NZD CAD, CAD CHF.

1...34567891011121314151617...102