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

Submit your code

Highlights the Forex Market Sessions (Sydney, Tokyo, London, New York).

A multi timeframe version is available with colors for orientation, for developers or profitable traders for free. Offer under conditions. Other multi timeframe indicators are also available.

Class to access to the local time for the specified location, as well as time zone information and the local trading session hours.

The "Net Volume" indicator shows the volume taking into account the pressure of sellers and buyers

Linear regression line with an option to be applied to another indicators

main point is changing of MA curve to horizontal line and DPO curve shall represent to distance from close price to zero level or MA curve

This library simulates prop trading firm scenarios by resetting the account balance based on configurable profit and loss thresholds during backtesting, and logs reset results for analysis.

This code shows how you can create a dashboard to display all the relevant information on the chart

This code provides a simple function for sending push notifications to your mobile device whenever trades are opened or closed in MetaTrader 5. It's designed for netting accounts (where only one position per symbol is allowed).

Draw daily vertical lines plus the day of week labels on the chart.

This is an indicator that evaluates FVGs in the inputted "window_size" to detect momentum or trend strength.

An indicator which attempts to highlight a ranging market area

This is a simple mean reversion EA

With these classes you can create and test your signals runtime.

A Marubozo is a long-bodied candlestick with no shadow, from the Japanese word meaning "close-cropped". Candlestick charts look at the opening and closing price on a single day and are used by technical traders.

Hidden Engulfing Candlestick Pattern

This is a script to export rates and ticks of current chart's symbol into CSV-files compatible with MT5's export/import format.

Root Mean Square

High and Low Line Indicator

Alerts on trendline break

This service periodically checks swaps for predefined symbols and saves detected changes into CSV-files for further analysis and potential replay (not implemented here). Also it monitors and alerts swap changes of existing positions.

This EA is designed to automatically follow market trends using signals from the Moving Average and Stochastic Oscillator indicators. The EA detects buy and sell signals by utilizing MA crossovers and confirms the trend with Stochastic. Additionally, the EA includes automatic position management, such as setting Take Profit, Stop Loss, and lot size doubling to enhance trading effectiveness in trending markets.

Part 3 "Object Oriented Programming in MQL5" offers an immersion into the world of object-oriented programming (OOP) in the MQL5 language. Software development often involves the complexity related to the management of multiple entities, requiring advanced technology to improve programming convenience, productivity, and quality.

iRSI Very Simple A multi timeframe version is available with colors for orientation, for developers or profitable traders for free. Offer under conditions. Other multi timeframe indicators are also available.

ATR - Average True Range - beginner tutorial to learn how to code in MQL5

This indicator uses two moving averages to calculate the market trend and changes color depending on the trend direction.

This indicator calculates the range difference between the 'MACD and Signal lines' and also the range distance between 'the last two MACD bar'.

This is an indicator to calculate 14 types of moving averages based on close price.

Historical Strong S/Rs Levels

It will detect whether there's confluence between the current chart timeframe and two other timeframes.

This is an update of the "Simple Yet Effective Breakout Strategy". In this code, I have added some helper functions for prop firm challenges.

This EA is a demonstration of how you can implement your own Hedging strategy with the help of the include file.

Bollinger Bands with controllable outer band smoothing (pre smoothing)

Engulfing Bar Occurs below Ema moving Average that is rising - Buy Trade -

An MQL5 Expert Advisor that reacts to high-impact forex news events using the MQL5 Calendar. It identifies news related to inflation (CPI/PPI) and interest rate decisions, placing breakout trades with pending orders. Ideal for traders looking to automate news-based strategies. (This is just a starting point)

A zigzag indicator that uses a single input to adjust the step size for detecting wave direction changes

Zig Zag indicator that relies only on a minimum % of retracement to each previous wave , and optionally , being bigger than a specific size measured in atr units.

A zigzag based on the trend change of the parabolic sar

A logger with the ability to log specific modules or code sections

Synchronized custom crosshair indicator showing price and (server/local) time.

123456789...188