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

Submit your code

Corrected Wilder's double smoothed ema - multi time frame version

QQE - on chart

Multi-asset cluster indicator taking all currencies as a sum of values forming a whole market, that is unity (1.0)

This script opens a buy or sell order randomly having equally spaced take-profit and stop-loss levels.

iWPR+ is an iWPR %Range function with a positive value.

Compute the daylight saving time changes (start/end of the summer time).

How to minimize bool parameters in a function signature?

An interface for creating an object that defers instantiation to subclasses. They decide which class to instantiate.

If you can't watch your statistics and your game plan at all time, your emotions will take control and you will start taking ENTRIES such as revenge trade especially when you lose it.

Convert the interface of a class into another expected interface; classes with incompatible interfaces can work together

Decouple an abstraction from its implementation so that the two can vary independently

Create an object tree which represents part-whole hierarchies, so that the client would treat objects and compositions of objects uniformly.

This strategy is the well known set & forget accompanied by the anti-martingale system. It is very useful if you are very busy in which you don't have time, you want to trade the London session while you are sleeping in USA, etc.

Given a language, define a represention for its grammar along with an interpreter that uses the representation to interpret sentences in the language

Define an object that encapsulates how a set of objects interact mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently

Indicator "The 2 Pole Butterworth Filter". was created by John Ehlers ("Cybernetic Analysis For Stocks And Futures", p. 192)

Doulble MA Cross Draw Histogram MT5

An implementation of the Relative Strength Index indicator by John Welles Wilder Jr. as described in his book—New Concepts in Technical Trading Systems [1978].

The code defines a function "RangeHighs" that calculates the highest price of a financial instrument within a specified time range (start and end time). The time range is defined by 4 input parameters (hour and minute of start and end time). The highest price is found using the "CopyHigh" function and stored in an array, from which the maximum value is returned.

US: This is a very simple code regarding an information panel. It doesn't use external files or anything like that! simply copy and paste it into your code the way the code was written. The dashboard displays; Active asset price Your position(Bought or sold) Maximum and minimum price of the asset Username open profit Balance PT-Br:Esse é um codigo bem simples a respeito de um painel de informações. Não utiliza arquivos externos ou algo do tipo! simplesmente, copie e cole no seu codigo da forma que o codigo foi escrito. O painel exibe; Ativo Preço do ativos Sua posição(Comprada ou vendida) Preço max e minimo do ativo Nome do usuario Lucro em aberto Saldo

VPS Trailing Stop Service

Explore the implementation of equity-based position closure in your trading bot, where positions are closed automatically when the equity reaches a certain percentage threshold.

Enables Programmers to create Martin Gale and Grid Trading strategies with ease.

A tool which refreshes the chart automatically and will make active indicators update if something stopped plotting on the chart.

Candle ZigZag is an indicator which changes its leg if a candlestick color changes

This is a basic library to create and manage grids.

The indicator calculates perfect market entry signals, which can be used for neural network training.

Hull Moving Average (HMA) that can change its color.

Opens a virtual hedge position in MetaTrader 5.

The Pivot levels indicator, the Pivot sublevels and the Camarilla levels drawing the indicator buffers and the horizontal lines

Volatility channel is a very interesting alternative to Bollinger Bands.

The oscillator that displays strengths of Buyers (Bulls) and Sellers (Bears) separately.

The script demonstrates the example of using the FileTell() function

Another zigzag version with a simple code that correctly determines peaks.

A Moving Average that includes price series processing by Gaussian filter.

Flight smiles.

The robot opens two positions, profits of which overlap each other, and waits for a profit.

Regression Channel with variable polynomial degree - indicator for MetaTrader 5.

ATR Stop Loss indicator

The iUSDx indicator uses the "MCM Control Panel" for multicurrency mode. It calculates the USD index.

1...93949596979899100101102103104105106107...183