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

Top MQL4 and MQL5 source codes based on user ratings - 101

Submit your code

ADXm experiment (metatrader 4 versions)

Detecting the start of a new bar or candle, in the OnTick() event handler of an expert advisor.

Checking the Cross of First Two lines of the Ichimoku Indicator

One more version of indicator J TPO.

Inercia Bars indicator.

The indicator draws the dollar index on the chart. The indicator is intended to simplify the charts analysis.

Advisor Probe.

The EA works with 4 symbols.

EA that opens a trade when a candlestick closes out of the specified level on a break through. An update to the graphical treminal. But the help in code further development is necessary.

A simple EA. It plays in the opposite direction on the specified difference between Bid and MA. It is considerably risky but it has own advantage.

Opens orders using moving average crosses.

Simple scalping system for m1-m5 timeframe.

Calculates pip difference between Current price and SL & TP price. Places Text labels at SL & TP lines: Order Type, Ticket number, SL & TP price, Pip calculation and Pip label.

This is a ADX crossover based Indicator.

MT4 Expert Advisor based on the CCI indicator

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

This Is Just A Normal Trailing Step Function.

a procedure that calculate most stats in one call: R-Squared and Linear Regression

Mean Reversion strategy works best on daily time frame major forex pairs .

DMH

Directional Movement using Hann windowing - metatrader 4 version

Time segmented volume (TSV) is a technical analysis indicator developed by Worden Brothers Inc. that segments a stock’s price and volume according to specific time intervals. The price and volume data is then compared to uncover periods of accumulation (buying) and distribution (selling). Time Segmented Volume was developed by Worden Brothers, Inc to be a leading indicator by comparing various time segments of both price and volume.

This code will give custom sound on alert on new bar.

Plot entry and exit as line objects from MQL5 signal CSV onto chart

Simple Slope Oscillator Normalized with symbol overlay for MT4

CCI of Moving Average with Dynamic Signal Lines

This indicator gives the Speed and Acceleration of the price for a given period. In order to make a smooth graph, can be used a procedure using the Hull Moving Average method

This EA, Ask you to Put price, whatever price you put, in "ZEN" field, you will get that price on all open orders either SL or TP value, that would help to close all orders at one price, and you can close all bulk orders in one shot. (works very well with large balance - i suggest cent / micro account for newbees. to be able to place large closure of orders. Openin random orders manually with ongoing trend is suitable for large order accounts.

This code identifies highest high and lowest low in the neighbourhood.

Converted ATR Bands by AlexanderTeaH from TradingView to MQL4

Building good trading habits by seeing things in terms of percentage not in terms of money.

macd divergence and rsi

Not sure if anyone need this. Just showing the angle of the MA of current and adjacent candle.

This is a multi timeframe dashboard scanner for RSI and Stochastic.

Simple stoploss script

Histogram of momentum

This code can be used to take screenshot from code itself at any particular desired time.

candle pattern

This Indicator will plot bullish and bearish candles in separate colors.

Larry Williams 'Greatest Swing Value' as an indicator

SmoothStep (metatrader 4 version)

1...949596979899100101102103104