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

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

Submit your code

Script interception of pressing keys or mouse buttons in the windows of MetaTrader 4. It can be helpful in writing controls.

Indicator BeginnerAlert. The code contains a highly detailed description.

A "cover" for the normalization of the indicator values.

The indicator draws the charts of the euqity and balance basing on the minute history. In such a manner you get more authentic picture of maximum rises and drawdowns.

PivotCustomTime Indicator.

BrainTrend1Sig Indicator.

Script opening orders with specified Magic Number

A tool to auto insert preset Take-Profit and Stop-Loss limits when an order is executed. Specially when doing scalping manually where you need quick setting of stop limits.

Zigzag with a simple, clear and natural principle of work. By the Close prices. Without redrawing.

Scripts of pending, market orders, placing and removing stops.

EA placing orders progressively and scalping on global profit.

This indicator will show the name of the pattern by placing point XABCD manually and also will search the next Potential Reversal Zone (PRZ) automatically.

Draw your preferred pivot formulas: Standard, Fibonacci, Camarilla, Woody’s and DeMark with 4 Support and Resistance lines.

Test ChartEvent is an example demonstrating the various types of ChartEvent: keyboard keys events, mouse click & move events, custom events. The source code works both in MetaTrader 4 and MetaTrader 5.

StochasticAlerts is base of the Indicator Stochastic Oscillator by MetaQuotes Software Corp. with alert and email alert and option to display trader info and signal.

Fractals - adjustable period and prices

ADR,AWR,AMR,Draws Average Range Lines

Move the stoploss as the trade moves in your direction at a specific distance.

The Range indicator displays the index of the range expansion and is an oscillator for the market calculation.

The FanSimple displays the correctness of reversal of the moving averages fan on different timeframes. The indicator includes four moving averages with the values 5, 21, 55, 233, that are displayed on the chart.

Indicator Intra Day.

Easy example working with object: object creation, modification properties, redraw chart.

One more version of the digital indicator.

Indicator Easy iCustom and Alerts.

Indicador Amir.

The indicator shows the price points of reference.

This indicator show you the trend type

Indicator Full Bar w Spread Shadow.

Modified LSMA_In_Color indicator. Added: usage of the applied price.

Two options of the calculation, which creates the Lagrange polynomial based on the reference points.

The indicator of trading sessions.

Indicator Color OsMA.

Adviser Universal MA Cross EA.

Adviser StrategyTester Ea.

Adviser OverHedgeV2.

Lot sizing library. 29 money management options.

Another version.

NRMA is the famous indicator by Konstantin Kopyrkin.

The indicator is based on CandlesticksBW. It colors the japanese candlesticks by B. Williams displaying the "black" and "white" candlesticks.

1...252627282930313233343536373839...104