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

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.

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.

This will display the Account Trading Report for real trade.

To assist traders who wish to open multiple buy orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. Num_of_Buy is the number trades the trader wish to open instantly. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple buy orders, it can save traders valuable time and allow them to focus on other aspects of their trading strategy.

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.

One-click trading.

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.

1...91011121314151617181920212223...188