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

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

Use on 1M charts. Manually choose Only Long, Only Short or Short and Long depending on market direction. Close open orders moving in the opposite direction.

Program for logging of non-market quotations from brokerage companies with MetaTrader platform. ADDED: Added ability to run your own script automatically in case of non-market quotations have place.

Many people asks to post a simple expert advisor. Here is it.

It works without losses. It uses the market inefficiency for the arbitrage.

The strategy is based on breakthrough of the maximum and minimum price values of the previous trading day.

It shows Stochastics for several timeframes in a single chart, also it calculates the average value.

A finer resolution channel made of three bar fractals.

It opens and closes positions using the crossing of the movable lines.

It shows a brief information about all of the positions opened. It can be useful, if yours expert advisor trades many positions simultaneously.

It reduces a lot of false signals using sensitivity tuning.

Just Close - Parabolic SAR

Record the performance of individual strategies real time in offline charts.

This indicator for show most information about your account like : number , name , company , leverage , etc .

Creates a synthetic Hedge for any open position that you select. Use it only if are you completely understand synthetic derivatives or triangular arbitrage.

Modified version of Murrey_Math_Line v2

The trading strategy presented here is based on breakthrough strategy using FOREX time sessions characteristics.

This code will get the current time , wait until a certain amount of Seconds has passed and then continue processing.

It shows two MACD with lines on the price chart.

New Design - New Opportunities.

expert can make 10000usd monthly or may be less but it always profitable

It looks for the strongest and for the weakest currency pairs using Cluster analysis

This expert advisor uses an only one МА(55) PRICE_MEDIAN !!!

The indicator shows current balance and positions on the chart

EA based on MACD and STOCH. It will be helpful, if you test this EA with other currencies and report me, thx.

It's an instrument for spread monitoring for a real and synthetic currency pairs.

Graphic displaying of the statement, carring of a data from the *.htm table to the graph, for the convenience of analysis.

Indicator shows color lines between two MA crosses

Classical MACD with Impulse System.

An Expert Advisor uses the Candlestick Models for trading: Blending Candlesticks (Engulfing) and Hammer(inverted Hammer)/Shooting Star models

Indicator shows entry and exit points for all deals and account statistics on the chart. It is very useful for trade analysis.

Indicator shows a different Forex sessions and the market hours of the exchanges.

Indicator shows vertical lines at last week bar.

It calculates and shows Stop Loss levels (for Buy and Sell positions) using the method described by Bill Williams in his book "Trading Chaos". A new feature has added: now all it can be analysed in history.

It shows a trend table for a several timeframes in the bottom left corner of the chart.

Alfa Release English

A EURGBP/GBPUSD non-scalper robot

I've modified the "Next price predictor" posted by gpwr to allow any developer to create its own BPNN predictor easily, even without understanding how a neural network works. So easy even beginners can do it. Included: MA predictor and RSI predictor.

This oscillator is based on Ehlers' Two Pole Super Smoother, converted as an oscillator, and smoothed using Ehlers' Instantaneous trendline.

When the price is approaching to the Signal Lines, the indicator sends Alert.

The library contain several functions to get an additional information about the symbols, loaded into the client terminal. ATTENTION: Undocummented solution, it may not work in the other versions of MetaTrader

1...565758596061626364656667686970...102