Watch how to download trading robots for free
Find us on Twitter!
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 - 129

Submit your code

The EA is based on iMA (Moving Average, MA) indicator and analyzes the last six bars.

This indicator is a variation of a well known WPR (Williams Percent Range) indicator with 4 WPR values combined into "candles".

Compared to the original QQE indicator this version is adding fixed levels (to help further estimate the trend) and color changing histogram (based on those levels), and also using RSX (a smoother RSI without a lag) in order to further purify the signals.

CCI_Candle_Vol indicator with additional averaging of the resulting candles

Access to OnTradeTransaction data anywhere within an application

BullsBearsEyes oscillator displayed as a color histogram, using volumes

ATR adaptive Laguerre filter - levels

TMACD indicator

Indicator Heiken_Ashi_Smoothed with two color-filled channels built on mean-square deviations from the High and the Low of the indicator candles

Indicator XFisher_org_v2_Candle highlights the candles, the Close prices of which are closed within overbought/oversold zones

XFisher_org_v2_Candle indicator provides alerts, sends email and push notifications at the incoming trading signals. Possible signal options

Exp_XFisher_org_v1 Expert Advisor based on XFisher_org_v1 oscillator signals.

Now you can test the indicator and select the price type from the ENUM_APPLIED_PRICE enumeration

The indicator plots one vertical line per day in a specified moment of time once per week

Brief description

Two identical trading systems (for long and short positions) based on the signals of the Slow-Stoch indicator, which can be configured in different ways within one Expert Advisor

The Heiken_Ashi_Smoothed_VolatilityStep indicator with the ability to send alerts, emails and push notifications when the indicator breaks through the trigger level specified in the inputs.

Ilan based on indicator iMA (Moving Average, MA)

The code consists of lines created according to the opening, closing, low and high values of prices.

Rma MACD

If you only want to execute your code blocks "only once per bar" it's important to check if there is new bar arrived or not.

This Expert Advisor will simplify the manual trading. It supports the One-Click trading.

The script converts the time, represented as datetime variable into the year, month, day, hour, minutes and seconds.

The indicator consisting of two moving averages (Lead and its EMA smoothing) on one chart from John Ehlers' book "Cybernetic Analysis for Stocks and Futures: Cutting-Edge DSP Technology to Improve Your Trading".

ElliottWaveMaker 3.0 is Tool for Semi-Automatic Analysis of Elliott Waves and Andrew's Pitchforks, a logical extension of version 2.0 known as AutoElliottWaveMaker. In version 3.0 minor errors are corrected, the ability to draw Andrew's Pitchforks and a few additional functions are added.

The indicator of the star sky on the black chart

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

A simple indicator that calculates only the volatility of a financial asset

The indicator displays DiNapoli levels on the current chart using alerts.

Three Bollinger Bands with different timeframes with the same parameters on one chart.

Indicator Awesome_Signal with the timeframe selection option available in input parameters.

The indicator draws rectangle candlesticks of a higher timeframe based on the values of the BrainTrend1 indicator.

The Exp_ColorTSI-Oscillator EA is based on the signals generated by the ColorTSI-Oscillator oscillator.

The indicator is drawn as a colored cloud between the lines of a slow digital filter and the price.

BnB

The indicator shows the power of bulls and bears.

A MetaTrader 5 indicator of short-term, medium-term and log-term extreme points created based on the book of Larry Williams "Long-term secrets to short-term trading".

The Exp_BnB Expert Advisor is based on the signals of the trend indicator BnB.

The FiboBands indicator with the timeframe selection option available in the input parameters.

Semaphore signal indicator based on the XXRSX_StDev indicator values.

1...122123124125126127128129130131132133134135136...198