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

Submit your code

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.

Gann swingchart and hybrid ZigZag implementation.

RSI that is based on Directional Movement with added filtering and PSAR

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.

PDFma — average using probability density function for average calculation.

Elliot oscillator indicator.

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.

Usually most brokers do not provide M1 data over 3 months in MetaTrader 4, but they provide M1 data over 3 years in MT5. So we can use this tool to obtain the M1 data in MetaTrader 5 tester and save the data into .hst file for MetaTrader 4 backtesting.

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

Volume Profile + Range v6.0 (former TPO).

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.

Adaptive ATR channel

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

Counter attack candlestick pattern

Price increase Indicator

Intelligent position protection with one-hedge-per-position logic. Features magic number separation, cooldown timer, and max hedges limit. Prevents infinite hedging loops. Free MIT license.

A stripped-down (signal line only) version of Metaquotes' MACD indicator from the MT5==>Indicators==>Examples folder.

The Momentum Technical Indicator measures the amount that a security’s price has changed over a given time period.

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

1...202122232425262728293031323334...200