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

Submit your code

BrainTrend2Sig semaphore signal indicator features alerts, emails and push notifications.

You can choose if you wish to use a real volume or the ticks volume.

This Expert Advisor closes all positions if the total loss exceeds a predefined limit.

Short description.

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

ExpBuySellSide is a MetaTrader 5 Expert Advisor based on the ATRStops and StepUpDown indicators.

The script deletes all pending orders on all symbols at a time.

Two Boa_ZigZag indicators with different periods, which appear as arrows on one chart.

The indicator draws daily candlesticks with extended parameters. It only works on the D1 chart timeframe.

This version of Synthetic RSI is using Ehlers smoothed RSI in calculation instead of using "regular" RSI and that makes the resulting synthetic RSI even smoother.

The US dollar index against a basket of basic currencies.

CC

John Ehlers Cyclic Component Indicator.

A trading system based on the KWAN_RDP indicator signals.

Exponential moving average with a variable smoothing factor.

Moving averages on charts M5, M15, H1 are analyzed. The presence of the iMA (Moving Average, MA) "fan" is checked simultaneously on all three charts (M5, M15, and H1).

Trend Envelopes indicator made as histogram.

BB Stops using RSI for stops calculation.

The trading system based on Rj_SlidingRangeRj_Digit_System indicator signals with the possibility to set a fixed position holding time.

The trading system based on DEMA_Range_Channel indicator signals with the possibility to set a fixed position holding time.

The trading system based on the Wajdyss_Ichimoku_Candle indicator signals with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system.

WMA

The Wilder's Smoothing Average (WMA) indicator.

The Delta Oscillator indicator displays the difference in the Delta indicator lines as a histogram.

Step VHF adaptive VMA

Dynamic Trader Oscillator

This is a utility for beginning indicator programmers, or others, that want to have a look at values provided by OnCalculate and a few other functions. The indicator shows: 1) The most recent value provided with the most recent OnCalculate call. 2) The previous value from the previous OnCalculate call. 3) The first value from the first time onCalculate executed.

Smoothed Williams percent range

Trend indicator similar to Ichimoku Kinko Hyo, with a number of drawing options and calculation parameters.

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.

Fractals - adjustable period and prices for MT5

Six bulls or six bear continuous candles

A wick engulf candlestick pattern

Sec-WebSocket-Key Generator

Counter attack candlestick pattern

Here is a simple example that shows how to download page(file) from Internet using the library wininet.dll.

The indicator is based on the Elder's Impluse system.

This class provides methods for working with Windows *.ini files.

The library contains the following hash functions: adler32, CRC-32, MaHash8v64. Also it has functions for radix conversion of a number.

The script contains a class, that can be used to solve mathematical and logical expressions, defined as string.

Trade signals based on "Hammer/Hanging Man" candlestick pattern, confirmed by Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Fast Trend Line Momentum (FTLM) and Slow Trend Line Momentum SLTM) indicators show the rate of price change.

1...101112131415161718192021222324...189