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

Submit your code

Correlation angle

Class for comparing two floating point variables.

McGinley dynamic (official version - as described by John R. McGinley)

This Script will Refresh All Open Charts in MT5, Usually custom symbols in MT5 needs to be Refresh sometime so this script will help to refresh all open chart at once. We can also use this Script anywhere where we need to refresh all open charts.

This code block loops through all opened position and do trailing based on Ask and Bid prices.

Callback interface for timer

Spread MetaTrader indicator — displays current spread in the main window of the chart. You can modify the font parameters, indicator's position and the normalization of the spread value. The spread is redrawn after each tick, ensuring the most current and active spread value. This can be useful for brokers with variable spreads or with spreads that are widened often. You can also enable a spread label to be shown near the current Bid line. The indicator is available for both MT4 and MT5.

This is the exact conversion from pine script code by LonesomeTheBlue.

Arrows&Curves shows signals to open and close positions.

The fan based on the five T3 moving averages for trend indication.

ZigZag allowing to build Fibo fans on the last two ZigZags.

The indicator allows to work with changing in real time and mirror reversed (1/X) trading instrument.

The indicator creates areas of preferable stop-losses location for long and short positions at any time.

Empirical mode decomposition of the current symbol.

The class is designed for calculation the technical indicator Momentum (Momentum) using the algorithm of the ring buffer.

The SchaffTrendCycle oscillator performed as a color histogram.

When you drag this script onto the chart, it will calculate the price where you drop the script and use this price to figure out if a Sell Stop or Sell Limit pending order should be placed.

The indicator allows to use a special background color for marking the price chart in the period of day selected in the input parameters.

The MultiT3_TRIXx7Signal indicator shows information on active trends using the values of seven T3_TRIX indicators from different timeframes.

A set of support and resistance levels built on the last tops of ZigZagOnParabolic_HTF with an option of fixing the timeframe, on which the zigzag is calculated.

The i-BB-Width indicator with the timeframe selection option available in the input parameters.

The Exp_Instantaneous_TrendFilter Expert Advisor enters the market when the Instantaneous_TrendFilter indicator cloud changes its color.

The channel_breakout_entry indicator with the timeframe selection option available in the input parameters.

The ColorMETRO_DeMarker indicator with the timeframe selection option available in the input parameters.

The idea of this moving average indicator is in giving the bar with a greater volume a greater weight in averaging.

The indicator displays the total number of deals by symbol in real time.

Real time indicator designed for scalping on FORTS.

A script for placing a BuyStop Limit order.

A script for placing a SellStop Limit order.

A moving average with the five-fold EMA averaging, with a real period and the possibility to shift the indicator horizontally or vertically.

Crossover of three iMAs (Moving Average, MA). Alert, sound notification and email notification of the first crossover. Arrows mark the crossover.

A complete Renko chart indicator with wicks. Configure using Tick Size, Pip Size, Points or R. Now with Asymetric Reversals!

Balance of Market Power combined with DSL (Discontinued Signal Line) it can be used both for trending and scalping mode.

This version of Hull Moving Average makes the lag even lesser and still keeps the smoothing of the Hull Average thus making it even "faster".

Step chart of RSI

JMA Z-score

Wilson Relative Price Channel - modification

Simultaneous opening of oppositely directed positions

T3 Price Overlay indicator

Three indicators from different timeframes: iMACD (Moving Average Convergence/Divergence, MACD), iAlligator (Alligator), and iRSI (Relative Strength Index, RSI)

1...737475767778798081828384858687...188