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

Submit your code

The script exports summary of closed trades grouped by each currency pair to .csv file

Classic trading strategy based on RSI levels. Buys when RSI is oversold and sells when RSI is overbought. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

The EA uses large volume orders to partially close other orders, with this approach, the breakeven and profit price is much closer to the current price than if you use all orders in the terminal or their full volumes.

Sets of latin, russian characters, digits, punctuation, etc.

This MT5 indicator is to count down the remaining time of the current bar as the format HH:MM:SS

Discontinued signal line MACD

It is known that the market is mainly driven by two emotions: fear and greed. This should be seen as an attempt to implement these emotions in the form of a mathematical model.

CLS (ClearScreen) delets all object drawn on the chart with key press "C"

A tool which refreshes the chart automatically and will make active indicators update if something stopped plotting on the chart.

Current Candle To Close in x Time

Spread MetaTrader indicator — displays current spread in the main window of the chart. You can modify the font parameters, indicator's position and the normalization of the spread value. The spread is redrawn after each tick, ensuring the most current and active spread value. This can be useful for brokers with variable spreads or with spreads that are widened often. You can also enable a spread label to be shown near the current Bid line. The indicator is available for both MT4 and MT5.

A lightweight chart overlay that paints a smooth “daylight” gradient across Pacific, Asia, London, and New York sessions—plus optional session separators, event labels, and “sunray” highlights for scheduled news. Includes UTC/Broker/PC time modes and a manual DST shift.

Production-ready multi-timeframe RSI scanner with intelligent alert retry system. Monitors up to 7 timeframes simultaneously, highlights convergence zones when 3+ TFs align, and now auto-retries failed notifications to ensure you never miss critical overbought/oversold setups.

Smoothed ATR that uses color to show whether the trend strengthens or weakens.

The Exp_ColorBBCandles Expert Advisor based on the ColorBBCandles indicator.

The indicator displays the dominant force of market movement (bulls-bears) to the volume

Signals of entries and exits on the system "Friday effect"

The channel ZigZag

The indicator draws two trend lines for the closest price extremes

Advanced ADX indicator.

The MDAC indicator with bar coloring according to Elder.

X2MA_HTF_Signal_BG shows information about trend direction (based on the X2MA indicator data) as a graphic object with a colored indication of trend or deal direction and gives alerts or audio signals and sends push notifications to a smartphone.

A semaphore arrow indicator that shows trend change time based on the ADX indicator.

A non-normalized trend oscillator.

The GannZIGZAG indicator with the timeframe selection option available in input parameters.

The VolatilityPivot indicator with the timeframe selection option available in input parameters.

The RVIWithFlat indicator with the timeframe selection option available in input parameters.

The BvsB indicator with the timeframe selection option available in input parameters.

Range Expansion Index (REI) is a relative oscillator with the timeframe selection option available in the input parameters.

The WPRTrend_x10 indicator shows the WPR oscillator position from ten different timeframes.

The DEMA_RLH indicator with the timeframe selection option available in the input parameters.

Trading system based on the signals of the ColorBulls indicator.

The iCCI_NR with the timeframe selection option available in the input parameters.

Indicator of the oscillator type, which displays its values based on the XRSX technical indicator.

METRO_DeMarker_HTF_Signal shows a trend direction or a signal for performing a deal generated by METRO_DeMarker_Sign indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment.

The Notches indicator with the timeframe selection option available in input parameters.

Example of Buy Limit & Sell Limit pending orders with Bollinger Bands.

The ColorZerolagX10MA_StDev indicator with the timeframe selection option available in input parameters.

The ExVolV2 calculates the difference between the total sum of bodies of growing and falling candlesticks on a given interval.

The ZigZag based on the OsMA oscillator.

1...129130131132133134135136137138139140141142143...195