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

Submit your code

This script will plot Fibonacci golden spiral on the chart.

In classical literature, the relative strength index is described as the "price-following oscillator that ranges between 0 and 100, and signals the market sentiment to change the trend at high (close to 100%) or low (close to 0%)...

The Price Channel indicator calculates the highest high and lowest low of the trailing number of bars specified by the input Length.

Another version of popular ZigZag.

An indicator by the Natuseko Protrader 4H Strategy

It's an instrument for spread monitoring for a real and synthetic currency pairs.

A brand-new version of Channel ZZ indicator

Many developers face the same problem - how to get to the trading terminal sandbox without using unsafe DLLs. One of the easiest and safest method is to use standard Named Pipes that work as normal file operations.

Support and Resistance levels using the psar logic.

This indicator adds H3, H6, H8 and H12 time frames into your charts.

Library to work with Skype.

EA for Automatic StopLoss, Take Profit, Profit Lock, and Trailing Stop (With Special Methods). SL and TP could be hidden.

Trade using Renko Boxes in MetaTrader 4.

The indicator shows the High, Close and Low of the previous day, week or month with time shift.

The OandaX OrderBook Chart indicator is designed for displaying the history histogram of orders or positions history on the instrument with reference to the chart scale.

This robot optimizes the values it uses for overbought and oversold based on what would have been profitable during the Optimization periods(bars) back. Using the strategy of selling when the index indicator crosses below overbought and buying when the index indicator crosses above oversold.

This indicator paints the candlestick chart color according to the Elder Impulse System

Commodity Channel Index using exponential moving averages.

Original ZigZag MT4 with added automatic fibonacci

There are some scripts in the zip archive which could be very usefull in intraday trading. With them you can respond on market changes very quickly.

Indicator Hull_O_H_L_C.

The indicator shows support/resistance levels calculated using the methods by V.B. Antonov (A_Vlad).

An original indicator that shows buying/selling signals.

The indicator is intended for searching the correlations between different symbols. It allows to overlay one chart with another to visually detect how do different symbols correlate between each other.

Indicator SSL fast sBar_mtf

Two CCI indicators with different periods in a single subwindow.

Regression Channel Indicator and Expert Advisor

The indicator of price levels fractals.

The library contain several functions to get an additional information about the symbols, loaded into the client terminal. ATTENTION: Undocummented solution, it may not work in the other versions of MetaTrader

The script deletes objects from the chart.

A day Hi Lo

Cloud indicator based on 2 Moving Averages.

Adds account information to chart: Profit, Balance, Equity, Free Margin, Margin and Margin Level %. On chart click hide/show account information. Show Profit only option.

This script will calculate the total active and closed orders based on order types

The PrevDayLines.mq4 script is a tool for MetaTrader 4 that automatically draws three critical price levels from the previous trading day on your chart. These levels include the highest price (Max), the lowest price (Min), and the average price (Avg), providing traders with a clear visual reference for key support and resistance points.

A new interface library has been developed to simplify converting MT4 indicators and Expert Advisors (EAs) to MT5. This library supports most of the MetaTrader 4 functions, offering developers a unified solution for cross-platform compatibility.

The indicator plots levels based on the previous days.

Modify pending order - script choosing first in list pending order, printing selected pending order data, modifying pending order and printing pending order data after modification.

FiboPiv_v2 indicator.

Indicator of the normalized volume

1...8910111213141516171819202122...106