MetaTrader MT5 Script Source Code Downloads

Showing 351 results

MetaTrader MT5 Script Source Code Downloads

Browse free MetaTrader MT5 Script source code downloads including ready-to-use trading tools, algorithmic strategies, and MQL programming resources. This section is designed for traders and developers looking to study, modify, or build custom automated trading systems for MetaTrader 4 and MetaTrader 5.

All Script listings include downloadable source code, allowing you to analyze how each trading system works internally and adapt it to your own trading strategy. These tools are used for education, strategy development, and algorithmic trading research.

Whether you are building Expert Advisors, custom indicators, scripts, or reusable MQL libraries, this collection provides structured access to MetaTrader 5 development resources used by retail traders and algorithmic developers worldwide.

Portfolio Correlation Analyzer script MT5
MetaTrader 5 script

Portfolio Correlation Analyzer

The idea is to measure the combined risk of multiple Expert Advisors (EAs) on one account. The number that matters is not how much each EA earns, but how much of their combined ris...
Risk of Ruin Auditor for Trading Strategies script MT5
MetaTrader 5 script

Risk of Ruin Auditor for Trading Strategies

A high win rate and a smooth equity curve cannot tell you whether a strategy is quietly escalating position size after losses or averaging into a losing move. This script answers t...
Cost and Slippage Sensitivity Analyzer script MT5
MetaTrader 5 script

Cost and Slippage Sensitivity Analyzer

A backtest charges only the costs you assume. Net profit and profit factor are measured at that cost, so they never show how close the edge sits to the cost line. This tool answers...
Trade Journal Exporter: Closed Positions to CSV script MT5
MetaTrader 5 script

Trade Journal Exporter: Closed Positions to CSV

A trading journal provides a significant competitive advantage at no cost. This script exports your raw trading data from the terminal in a single operation.The tool selects accoun...
Real Cost XAU Session Cost Snapshot MT5 script MT5
MetaTrader 5 script

Real Cost XAU Session Cost Snapshot MT5

Real Cost XAU Session Cost Snapshot MT5 is a small open-source MetaTrader 5 script for checking the current chart symbol before trusting a backtest. It is useful for XAUUSD, GOLD, ...
Drawdown DNA Analyzer script MT5
MetaTrader 5 script

Drawdown DNA Analyzer

Most traders judge a strategy's risk by a single number: its maximum drawdown. That figure tells you how far equity fell from its peak, but it says nothing about how often declines...
Profit Concentration Analyzer script MT5
MetaTrader 5 script

Profit Concentration Analyzer

Net profit and win rate tell you how much a strategy made, not where that profit came from. A system can show a strong net result while a few lucky trades, or one explosive day, ca...
symbol summary viewer script MT5
MetaTrader 5 script

symbol summary viewer

main features- separate viewer window inside mt5- resizable window- vertical and horizontal text scrolling- built-in control buttons inside the viewer- russian and english report v...
symbol summary viewer script MT5
MetaTrader 5 script

symbol summary viewer

symbol summary viewerimplementation featuresthe symbol summary viewer operates within a dedicated window inside the mt5 terminal.this service can remain active, continuously monito...
tick value compare script MT5
MetaTrader 5 script

tick value compare

diagnose differences between tick values, loss, and profit calculations in metatrader 5.this script compares symbol_trade_tick_value, symbol_trade_tick_value_loss, and symbol_trade...
l1 trend filter demonstration script MT5
MetaTrader 5 script

l1 trend filter demonstration

the l1 trend filter allows for the extraction of piecewise-linear trends. this method effectively preserves key market structure while minimizing price noise.this script illustrate...
asq trading journal export script MT5
MetaTrader 5 script

asq trading journal export

asq trading journal export is a powerful tool for traders, offering a seamless way to export and analyze trade history.with a single click, this script transforms your metatrader 5...
neuropro verbalisation converter for mql5 script MT5
MetaTrader 5 script

neuropro verbalisation converter for mql5

this script automates the transfer of neural networks from the neuropro analytical package (2026 release) to metatrader 4/5 terminals, addressing syntax, arithmetic, and encoding i...
export historical data script MT5
MetaTrader 5 script

export historical data

this script exports historical rates data to a format suitable for analysis in external software, such as mathcad. the output file contains historical price data (bars) for the spe...
clipboard script MT5
MetaTrader 5 script

clipboard

the script retrieves data from the windows clipboard....
wininet_test script MT5
MetaTrader 5 script

wininet_test

the wininet_test.mq5 script is a modified version of a script published in mql4.codebase in 2026. it demonstrates how to download a page or file from the internet using the wininet...
charts synchro scroll script MT5
MetaTrader 5 script

charts synchro scroll

the script enables synchronous scrolling across all charts opened in the client terminal.prior to executing the script, ensure the chart shift feature is enabled from the right par...
obj chart sample script MT5
MetaTrader 5 script

obj chart sample

the script objchartsample.mql5 demonstrates the manipulation of chart properties through the utilization of classes from the standard library (cchart)....
sphere sample script MT5
MetaTrader 5 script

sphere sample

the spheresample.mq5 script demonstrates the manipulation of graphic objects utilizing classes from the standard library (base class of objects array carrayobj, cchartobjecttext).t...
mw download history script MT5
MetaTrader 5 script

mw download history

this script enables the user to download all available ohlc data from their terminal to a file in the commons folder. this data can be utilized to create custom symbols. if a file ...
show trade lines service script MT5
MetaTrader 5 script

show trade lines service

the service enhances the visual representation of open positions and related transactions on charts, offering a more intuitive view compared to the default terminal display. it all...
project template generator for metatrader 5 script MT5
MetaTrader 5 script

project template generator for metatrader 5

technical overview projecttemplategen.mq5 is an innovative metatrader 5 script utility designed to streamline the development process by automating the creation of standardized exp...
percentage risk lot calculator script MT5
MetaTrader 5 script

percentage risk lot calculator

this script calculates the number of lots to trade based on a specified percentage of risk funds.the calculation ensures that the trade size aligns with the defined risk tolerance....
last pink event date script MT5
MetaTrader 5 script

last pink event date

since build 344 of the client terminal, the display of economic calendar news using special graphical objects (obj_event) has been added.this script demonstrates the economic calen...
create csv history file from mt5 for mt4 script MT5
MetaTrader 5 script

create csv history file from mt5 for mt4

when using the history quotes data from metatrader 4 client terminal, it was found that some brokers do not have the full history. the quality of the historical bar data is better ...
trade history overview script MT5
MetaTrader 5 script

trade history overview

the script allows you to place the deals history on the chart using the graphic objects.trade history displaythe trade history is displayed on the chart, providing a visual represe...
mql5 self-generating script script MT5
MetaTrader 5 script

mql5 self-generating script

this script generates a file with its own source code, providing a solution to the classical program in mql5.overviewthis tool can be useful for studying programming and algorithms...
synchronized chart scrolling script MT5
MetaTrader 5 script

synchronized chart scrolling

to synchronize the scrolling of multiple charts, simply attach the script to one chart and it will be applied to all charts.chart synchronization featuresthe script allows you to c...
exporting indicator values to csv files script MT5
MetaTrader 5 script

exporting indicator values to csv files

this script allows users to export indicator values to csv files along with date and time.the function parameters can be changed to export different indicators.the script has been ...
create custom bitmap image script script MT5
MetaTrader 5 script

create custom bitmap image script

the graphic object of type allows to show the .bmp images on the chart.unzip the mql5_logo.bmp to terminal_data_folder\mql5\images\ folderit's possible to draw the image as backgro...
chart navigation demo script MT5
MetaTrader 5 script

chart navigation demo

this is a simple script that demonstrates the use of various chart functions.it utilizes several key functions, including:- getting the handle of the chart where the script is laun...
mt5 history downloader script MT5
MetaTrader 5 script

mt5 history downloader

this script downloads historical data for the current symbol, as available from the trade server. the download progress is visualized using the cprogressbar class. in the "expert...
Time Variable Conversion Utility script MT5
MetaTrader 5 script

Time Variable Conversion Utility

This script converts time, represented as a variable, into its constituent components: year, month, day, hour, minutes, and seconds.It does not utilize MQL5 built-in time functions...
Exposure Calculator script MT5
MetaTrader 5 script

Exposure Calculator

This is a tool to calculate the summary assets of each currency.Introduction to Exposure CalculatorThe Exposure Calculator is designed to provide a summary of assets for each curre...
Save History to HST File script MT5
MetaTrader 5 script

Save History to HST File

This script allows you to create a binary *.hst file, supported by MetaTrader 4. This file can be imported in MetaTrader 4 as historical data or you can open it as an offline chart...
Clear Chart Script script MT5
MetaTrader 5 script

Clear Chart Script

This script deletes all graphical objects from a chart. It can be useful in case the chart is overcrowded by objects that are not needed anymore.Video: ...
Synchronized Chart Scrolling Script script MT5
MetaTrader 5 script

Synchronized Chart Scrolling Script

This script enables simultaneous scrolling across multiple charts.When the script is active on one chart, scrolling any of the associated charts will automatically shift the others...
Stop Out Price Indicator script MT5
MetaTrader 5 script

Stop Out Price Indicator

This indicator calculates the stop-out price for an open position, indicating the price at which the broker will close the position.Additionally, it determines the lockout price, w...
OpenCL Test script MT5
MetaTrader 5 script

OpenCL Test

Starting from 2026, the native support of the OpenCL interface has been added for utilizing GPU capabilities.This is a simple demonstration of the Mandelbrot fractal calculation us...
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.