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

Submit your code

The Expert Advisor checks the direction in which the price has been moving for the last 10 seconds, and opens a position in accordance with the movement. The EA sets Stop Loss and Take Profit.

BB stops of MACD with multiple stops

I want to share with you this story. When I started trading, I learnt the scalping strategy in a volatile market. I really loved scalping especially when I see the price is moving fast. However, scalping for a long period of time is exhausting to me especially in a volatile market; volatile market requires fast analysis, actions and reactions; that is why I always reach a point that I loss concentration, focus and I start making those really stupid mistakes. That is why I created this indicator that helped me to automatically identify these potential entries (based on the formation of candlesticks) instead of doing all the work myself. I know there are plenty of Metatraders who also suffer from this and that is why I would like to share this indicator with you, hopefully it will be beneficial. Do not forget to send you comments as well as rate these scripts. Happy trading!

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 chart of (three) linear breakthrough in a separate subwindow

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

The RoundLevels indicator draws two closest "round" levels above the current price and two more below it

The Momentum oscillator with a triple averaging and a signal line.

MA

A very simple EA based on the crossover of two Moving Average.

The indicator displays the support and resistance levels calculated on daily prices.

A set of target support/resistance levels for the predicted price movement.

The MultiSlow-Stochx7Signal indicator shows information on active trends using the values of seven Slow-Stoch indicators from different timeframes.<

This trading system uses the ColorJJRSX oscillator.

An oscillator from an averaged difference between the FATL digital filter and the Close price.

The MACD Indicator, in which the price series is replaced by the series of values of the Chaikin Oscillator technical indicator. It is drawn in the form of a colored cloud.

The indicator utilizes the idea of ​​finding possible resistance and support levels for a period defined in the indicator input parameters, similar to the use of GSV.

RegressionPolynomial is a trend indicator calculating values of polynomial regression on each bar.

PriceChannel_Stop indicator displays the most recent value as a price label with the the possibility to round the channel levels up to a required number of digits.

Searching Nearest Bar - searching for the nearest bar.

The New Martin Expert Advisor opens two opposite positions upon start. OnTradeTransaction handling. When Take Profit triggers, it opens a position (one position) in the same direction. The intersection of two MA indicators is a signal to open a position of a larger lot.

The library allows to automatically assign 'magic' to an Expert Advisor on any symbol and any timeframe. It allows having up to 65535 magic numbers in one Expert Advisor.

A trading system using the SSL indicator.

Intraday volatility breakthrough system. The Parabolic SAR indicator is used.

Trades based on the previous candlestick.

Trading based on preset candlestick combinations (patterns) Candlesticks are marked as "1" (bullish) and "0" (bearish). TakeProfit, StopLoss

This assistant tool sets Stop Loss and Take Profit for all open orders. Symbol settings, position type, Stop Loss and Take Profit are specified in an external file.

A library for working with chart subwindows.

The expert advisor moves stop loss of position at user-defined breakeven.

Martingale based Expert Advisor specially designed for small deposits.

Laguerre RSI - without using the gamma parameter

The Expert Advisor counts the number of bullish and bearish bars in a row.

Brief description

1...103104105106107108109110111112113114115116117...188