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

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

Another indicator showing recommendations for each currency pair and period.

Indicator Triggerlines Shift Modified.

We need two indicators: ADX and MA

A script tool for those who develop programs in MQL4. It allows to display the contents of any font in your chart.

Indicator colours prices of certain areas hh: mm_start before hh: mm_finish.

Indicator KDJ deactivates short-term fluctuations. It carries on a parameter to adjust and increase two new RSV index lines: close price of short-term volatility KDC: K-D difference, to determine the change of price trends and to open positions.

Draft daily trend-following EA that trades using ZIGZAG-FRACTALS on high/low of the preceding bar on a one-hour chart. TakeProfit is 13 points.

I supposed to use the EA for trailing, but added graphical order management to it while programming.

The indicator shows the volatility of a currency pair. This knowledge may be very helpful when using one strategy or another.

The indicator colored in the AC/AO style with disabled zero bar. It is proposed not to display the forming bar of the indicator, but to show only a signal line of the bar being formed.

A version of indicators to detect Support/Resistance levels.

Building in the current window a ZigZag calculated on a larger timeframe.

Draft EA that works on H4, first entering on daily chart. It uses Ryan Jones' Fixed Ratio money management method and "reverse pyramid.

A test script with the functions that calculate the true value of a graphical object's Y coordinate. It is useful to watch the bar forming.

Execution of orders by slanting lines. For the purposes of real trading and learning, graphical orders are implemented in Tester. The EA was evaluated on MQL4 Forum. Version_V5 considers all the suggestions and wishes.

Leading Edge trend estimator with bands.

It allows you to calculate profits, StopOuts, and margin, just moving in the chart three lines that correspond with the opening level, StopLoss and TakeProfit of the position.

The indicator shows in the chart the current time in different time zones.

Trading strategy named Fx-chaos is the result of integration of Bill Williams' Chaos Theory, A. Elders' trading strategy (triple choice), and Ryan Jones' Fixed Ratio money management method.

The indicator displays the ratio between the length of the current down-trend (in bars) and the total length of the period barsToProcess (of course, in bars, as well) where the down-trend is searched for.

The indicator represents the ratio between the length of the up-trend found and the length of the entire range where the indicator is searching for an up-trend.

The strategy is based on Moving Average with the periods of 5/20/40/60.

The indicator shows the trend on a daily chart(2) using indicator ZIGZAG-FRACTALS. It also shows the enter price for HIGH/LOW of the preceding bar on the current timeframe.

A fast oscillatorб also suited for scalping.

The indicator shows support/resistance levels calculated using the methods by V.B. Antonov (A_Vlad).

A system based on "round" numbers.

One more interpretation of the well-known ZigZag. The indicator is written to work according the trading system described here: http://forum.fibo-forex.ru/viewtopic.php?t=1368 The indicator works with ZigZag by Rosh (Zigzag2_R_).

A trading strategy that works with short-term trends.

This is an EA that increases the lot size after each profitable trade if it follows some losing trades.

A realization of the method described at http://www.tradejuice.com/forex/forex-1-2-3-methode-mm.htm. The author of the realization is not the author of the method, so I don't vouch for the realization correctness.

The indicator prints net positions for all currencies in the screen. This is a monitor of a multicurrency portfolio.

This indicator has already been placed here. This given modification is more visual.

Indicator OSC-MTF_CF_SYS-v1.1

Indicator Squize_MA.

Simple indicator BBflat_sw.

The indicator displays helpful information for the trader.

It draws a channel with recommendations.

Indicators Parabolic SAR and Exponential Moving Average are used in the system.

Indicator Impulse CD (Color) is a sequel of impulse approach. By users' requests, colors and signal line are added.

A toy script that demonstrate the way of displaying some text information in a chart.

1...757677787980818283848586878889...102