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

Submit your code

Envelopes using the Color_QEMA_Digit MA, with an indication of trend direction and display of the last values of channel borders.

If a trade is closed by Stop loss, the volume is doubled; if by Take profit the minimum volume is used. OnTradeTransaction is used to determine whether a trade was performed after the activation of Stop loss or Take profit.

The Expert Advisor trades in a channel. When a flat channel is found or when the market slows down, the EA places a pending order expecting the channel breakout.

Counting the number of series of bullish and bearish bars. Displaying the result as a chart. Saving the screenshot of the resulting chart. The script uses the CGraphic class.

Trading in a channel based on a Moving Average with the period of 220 and three Envelopes with the periods of 220 and different heights. Position trailing.

Balance of Power, introduced by Igor Livshin, attempts to measure the strength of buyers vs. sellers by assessing the ability of each to push price to an extreme level. Livshin published this indicator in the August 2001 issue of Stocks and Commodities Magazine. This version of indicator calculates the BOP exactly as it is described in the article where it was published.

UI

Ulcer Index (UI) - the volatility decrease index.

The RSI bands indicator helps in multiple ways, but mainly in visualizing on the main chart what price change would trigger the expected overbought or oversold signals.

As a logical step to filter out more the possible false signals, this variation of Schaff TCD RSI is using RSX (which is a smoother RSI than the "regular" RSI) to produce a smoother result.

The EA compares the opening prices of the zeroth and the second bar. It moves positions to a breakeven and/or enables trailing.

Trading on indicator Heiken Ashi Smoothed Oscillator. Settings for placing Stop Loss, Take Profit, and Trailing the positions.

TVI

TVI (Trade Volume Index).

Two indicators AbsolutelyNoLagLwma from different timeframes, the area between lines being filled with a cloud, the color of which corresponds with the trend direction on the market

Moving average AbsolutelyNoLagLwma displaying the most recent values as a price label, with the possibility to round the indicator levels to a required number of digits.

Super Trend indicator is probably one of the most known for MetaTrader 4. This version is for MetaTrader 5.

BB Stops indicator of smoothed WPR.

Indicator Choppiness Index Histogram

The Silence indicator displays aggressiveness (price change rate, the blue line) and volatility (the red line) in a separate window.

The TriggerLines trend indicator draws two moving average lines colored in accordance with the trend direction: green for upward and red for downward.

This version of Trend Envelopes RSI indicator differs in one significant point: instead of using fixed value (5) for envelopes calculation, standard deviation (adjusted by multiplier) of the calculated RSI is used for envelopes calculation.

XRSI_Candle_Vol indicator showing a breakthrough of its zero line using candles, color labels and audio signals

MFI smoothed

Trading the trend - histogram

The channel formed on an open price of an hour set in the settings

Simple Decycler indicator

Time Averaged MA indicator

JMACandle_Chl indicator with the timeframe selection option available in input parameters

XBullsBearsEyes_Vol_Direct indicator with the timeframe selection option available in input parameters

Indicator Sylvain Vervoort rainbow moving average

Indicators iCCI (Commodity Channel Index, CCI) and two iMAs (Moving Average, MA) are used.

Super trend - simple

SR-RateIndicator indicator provides alerts, sends email and push notifications when overbought/oversold levels are broken through by the histogram.

Key Reversal indicator

The indicator shows Buy and Sell signals of three indicators (iSAR, iMFI и iTEMA) located in nine timeframes, with full settings

Multi Time Frame Power Weighted Moving Average

A moving ColorPEMA_Digit with the limitation of the computer resources used for its calculations on the entire chart and on the current bar

Two identical trading systems (for long and short deals) based on the ColorPEMA indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Schaff trend cycle CCI

RSI of Adaptive Moving Average - AMA

RSI with on chart SR levels

1...505152535455565758596061626364...191