MetaTrader Source Code Library (10,000+ MT4 & MT5 Experts, Indicators & Scripts)

Showing 835 results

MetaTrader Source Code Library

Discover one of the largest collections of MetaTrader Expert Advisors, Indicators, Scripts, and Libraries for MT4 and MT5. This library is designed for traders, developers, and algorithmic trading enthusiasts looking for ready-made MQL source code.

All tools are structured for educational use, strategy development, and automation research. You can download, modify, and study each MetaTrader trading system to understand how algorithmic trading strategies are built.

Whether you are working on forex robots, custom indicators, or trading scripts, this resource helps accelerate development and improve your MetaTrader programming skills.

Close All Positions and Pending Orders script MT5
MetaTrader 5 script

Close All Positions and Pending Orders

This script closes all open positions with one click and can also delete pending orders. Useful when you need to exit the market fast, for example before news or at the end of the ...
Swap Markup Scanner for MT4/MT5 script MT5
MetaTrader 5 script

Swap Markup Scanner for MT4/MT5

Swap Markup Scanner A swap has two parts that MetaTrader shows as one number: - Carry: the interest-rate difference. It is positive in one direction and negative in the other. - ...
Market Information Script for MetaTrader 5 script MT5
MetaTrader 5 script

Market Information Script for MetaTrader 5

MarketInfo is a utility script for MetaTrader 5 designed to display essential information about the current trading instrument.This script gathers and logs key data, including curr...
Trend Finder Scanner for MT4/MT5 script MT5
MetaTrader 5 script

Trend Finder Scanner for MT4/MT5

Trend Finder ScannerScanner Logic:The scanner retrieves all financial instruments available in the 'Market Watch' window.R² Trend Smoothness Filter:It calculates a linear regressio...
Server Clock Synchronization for MetaTrader script MT5
MetaTrader 5 script

Server Clock Synchronization for MetaTrader

MetaTrader's time-based functions, TimeTradeServer() and TimeLocal(), rely on your computer's clock.If your system clock deviates, all time-sensitive rules in your Expert Advisor (...
Watchlist Chart Opener script MT5
MetaTrader 5 script

Watchlist Chart Opener

Watchlist Chart Opener saves the time spent opening charts one by one.Run the script once and it opens a chart for every symbol in Market Watch, or for a list of symbols you type i...
Watchlist Chart Opener MT4 script MT4
MetaTrader 4 script

Watchlist Chart Opener MT4

Watchlist Chart Opener saves the time spent opening charts one by one.Run the script once and it opens a chart for every symbol in Market Watch, or for a list of symbols you type i...
Closed Trades Exporter: MAE & MFE Analysis script MT5
MetaTrader 5 script

Closed Trades Exporter: MAE & MFE Analysis

Closed Trades Exporter saves your closed trades to a CSV file that opens in Excel, Google Sheets or any spreadsheet program.Besides the usual trade details, it calculates two value...
Preventing Log Line Loss with Safe Logger script MT5
MetaTrader 5 script

Preventing Log Line Loss with Safe Logger

Safe Logger is a solution to prevent log line loss when multiple EAs share the same file.Overview of Safe LoggerThe Safe Logger appends one line to a shared file without losing any...
Risk-Based Position Sizing Calculator script MT5
MetaTrader 5 script

Risk-Based Position Sizing Calculator

The Risk-Based Position Sizing Calculator is a lightweight MQL5 script designed to simplify position sizing. Instead of manually calculating trade volumes, users input a risk perce...
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.