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

Submit your code

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.

Candlestick Wick Imbalance

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

MQL5 version of geometric moving average.

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

The indicator shows inverted chart for better short trading.

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.

The indicator generates market entry signals based on the ADX indicator.

The indicator displays MACD histogram and price divergence on a chart.

CVHFOnArray class is designed for calculation of Vertical Horizontal Filter (VHF) values on indicator buffers.

The CPriceChannelOnArray class is intended for calculation of the price channel on indicator buffers.

The indicator that allows modifying color of the candles.

The Expert Advisor with which Alexander Prishchenko (Crucian) participated in Automated Trading Championship 2012

Smoother Relative Strength Index.

The semaphore signal indicator fixing moments of breakthrough of the zero level by the iCCI technical indicator and displaying these moments by color points

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

1...9596979899100101102103104105106107108109...184