Watch how to download trading robots for free
Find us on Telegram!
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 - 45

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 Advisor template with Trailing Stop, autolots, candle scan, buy block sell, buystop / sellstop. Working ea example and many improvements in template!

This Expert Advisor is based on SMA, ADX and SAR indicators.

Advanced ADX indicator.

The spread_on_chart indicator shows the current values of spread, stop and freeze levels.

The oscillator for intraday trading.

Library to work with Skype.

The indicator shows entry points according to AC indicator.

MACD indicator.

Plot the STOPD Price Levels based on user specified timeframe.

The Expert Advisor shows the current values of World Stock Indices from Google Finance using WebRequest function.

The Expert Advisor shows the properties of the signals, allows to modify the signal copy settings and subscribe or unsubscribe to the selected trade signal.

Typical zigzag indicator

Step Up and Down Forex Indicator draws the price direction movement with single arrow Up or Down on the trading chart.

DailyLines Vertical lines starting new Day with above name of the DAY. Period Separators with options to choose different styles.

The purpose of the present code is to demonstrate how easy it is to create color scales, color gradients and heatmaps with the MQL4 language and functions.

3 Dimensional MACD Ribbon.

This is a percentage of the user set stop-loss or profit robot.

ProfitInfo is an indicator to show in one window opened buy and sell trades of defined symbols and systems.

Advisor exposes not visible to brokers levels StopLoss, TakeProfit, Breakeven, Traling stop

An indicator based on three moving averages.

The indicator loads as a Menu on the menu bar. Click the Symbol Menu to open or close the symbol list. Click a selected symbol to change the chart symbol.

This indicator combines Moving Average (MA) and Average True Range (ATR).

The indicator shows the channel.

This indicator draws three Donchian bands: up, middle and down bands based on which you can design your scalping system.

This indicator adds H3, H6, H8 and H12 time frames into your charts.

My first exad.....comment if any not modified and improve ment running..

Camarilla Level Pivots.

The EA opens transactions when RSI is Upper or Below 50

The gSpeak dll for MetaTrader Build 6xx

Multi timeframe fractal indicator with "Extend_Line" and "Show_Validation_Candle" functions (compatible with MT4 build 600 or later).

EA Crossing of 2 MA

Combine Candle sticks and Market Profile indicator.

Script Calling Library for MT4 build 600 and later

This indicator will write the price of Pivot Point on the trading chart, ranging from Price Support 6 to Price Resistance 6. When prices change or pass one of Pivot Price level, the indicator will be given alerts.

This EA just using a very simple formula, but according to my experience, the formula was accurate enough to make a profit.

Fibonacci Retracement Levels indicator draws Fibonacci Retracement Levels on the trading chart.

Scan for conditions in which you have an interest. Show where the condition arose historically on the current Symbol and timeframe. On a separate panel, show where the condition has currently arisen for any of your chosen symbols and timeframes.

This is my first Expert Advisor so please give feedback on how I can improve it to make the best possible EA. Thanks for the inputs in advance and happy trading.

This is a Class for the new MQL4 that parses JSON. It requires the Hash.mqh class.

This Expert Advisor is based on your human ability to predict medium and long term trends.

1...383940414243444546474849505152...102