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

Submit your code

Customizable Fibonacci Tool scripts to make these tools more informative on chart as per your needs.

Kijun Sen and Envelope.

Possible uses: Mark session open/close, mark time of regular news release, any other relevant time.

This EA scalps using the Relative Strength Index (RSI) Indicator, Stochastic Oscillator Indicator, and Bollinger Bands Indicator to identify trend or counter-trend opportunities. As a multi-pair EA, it scans multiple currency pairs for signals. This EA comes with a variety of features, including Trailing, Risk Management, Money Management, Restriction Mode, and more. With the right settings, it has the potential to generate significant profits.

Indicator Waddah_Attar_Explosion is very powerful. It alerts you to buy , sell , exit buy and exit sell.

This indicator will detect divergence between the price and OsMA indicator. It will give buy or sell signal according to the type of divergence that was detected.

Description of the FXT file header, functions of reading and writing of the header.

Zero values characterizes the Flat Trend. V-shaped pulse indicates the entrance to the opposite direction. U-shaped ilpuls - entry in the same direction.

Two modified COG indicators. Center of Gravity on Stochastic in sub window and enhanced On Chart COG.

Automatically draws Fibonacci Retracement, Arc, Fan, Time Zones, and Expansion based on detected swing points. Features a custom "Reverse-Scan" algorithm that never repaints - perfect for traders who need reliable anchor points.

Example of using wininet.dll for downloading a web page.

The ZZ_All Quotings 0-0050 script is designed for downloading history on all currency pairs, metals, known indices, CFD and for controlling "holes" in history.

This FX5_SelfAdjustingRSI idicator draws RSI self adjusting overbought-oversold that were suggested by David Sepiashvili.

Gann angles inscribed in ZigZag.

Indicator HiLo Activator.

The script is the calculator of the simple, complex, nominal and continuously charged percents.

The script visualizes the deals on the chart in a convenient way.

Close all trades after reaching defined profit or loss

Scripts to modify stop loss in buy or sell opened orders on current chart.

The indicator finds and draws linear channels using all timeframes from M1 minute to MN.

Candle Closing Time Remaining (CCTR) is an indicator which displays the remaining time for an open candle to be closed.

Taking a Closer Look at the Workings of the ZigZag Indicator.

The function will filter the trade positon. If the current time in the time you set, the function will return true.

Modified Nick Bilak's b-clock with spread (ask-bid) and font customization (font, color, size).

The indicator of divergences on 30 oscillators of choice.

Scans multiple symbols looking for when the price crosses a pivot point or when xxPoints Near or bounce off pivot then it alerts the trader.

Displays the gains and losses for all candles where the given threshold is surpassed. The values are calculated in points and percentage.

This script will place hedge trade of unbalanced type in MT4.

Backtesting Trade Assistant Panel

Just two timeframes — H1 and D1 — work synchronously to filter out the noise and capture only strong RSI reversals from overbought and oversold zones. No random entries, only a clear confirmation of the direction from the "big brother."

The TRIX indicator represents the rate-of-change percentage, smoothed by the exponential МА of the closing price.

Close all multi currency open orders and cancel pending orders according to various scenarios. Slippage for open orders is calculated for each currency. Choose only one scenario per visit, the script processes the first menu item selected.

This is indicators used divergence theory. Red arrow = sell signal and green arrow = buy signal.

Simple coding/decoding of entries in Base64.

It draws a channel with recommendations.

Set of functions for calculating optimization results.

automatically converts M1-data to M5/M15/M30/H1/H4/D1 in a single run

A trend following indicator that implements Dennis Gartman and Bill Eckhart trading system. Commonly known as "The Turtle Trader".

Connect your indicator to Telegram with 3 lines of code This sample code enables to connect your indicator to Ofir Blue, the first trading application for Telegram

Multi buylimit and buystop orders are script files that enable traders to place multiple orders with ease. With just one command, traders can place multiple buylimit or buystop orders using either a target price or pips. By default, the pips value is set to 400, which means the trade will be placed 400 pips away from the current market price for a 5-digit broker. This setup includes stop-loss and take-profit levels, which can be adjusted based on the trader's preferences. Notably, these orders come with a level of flexibility that enables traders to fine-tune their trading strategies. For instance, a trader can opt to set the stop-loss level to zero if they do not use stop-loss.

123456789101112131415...105