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

Submit your code

A trendless indicator (based on the book "Trading with DiNapoli Levels") made as a colored histogram.

The OsMA indicator implemented as a sequence of candlesticks.

This indicator is an example of smoothing the DeMarker indicator timeseries by filtering high-order harmonics.

A trading system based on the signals of the Heiken_Ashi_Smoothed indicator.

NRTR_HTF_Signal shows a trend direction or a signal for performing a deal generated by NRTR_Sign indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment.

The RSIdivCandle indicator. Colors the candles based on the RSI oscillator.

The Exp_PPO_Cloud EA is based on the signals generated by the PPO_Cloud oscillator.

Semaphore signal indicator based on the values of the Accelerator Oscillator and Awesome Oscillator indicators by Bill Williams, which features alerts, sending emails and push-notifications to mobile devices.

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

This is one more possible way of making MACD — as a candles, without the price and signal line.

The ZigZag based on the OsMACandle oscillator.

It shows the tick price history (Bid/Ask) within all visible bars.

This is a volume weighted Wilder's DMI (the real ADX).

This Expert Advisor closes all positions if the total loss/profit exceeds a predefined limit.

The Expert Advisor opens and closes at a certain time comparing two iMA indicators having different periods. A trade having a specified volume is opened at a specified symbol. Setting Stop Loss and Take Profit. Select position type: Buy or Sell.

The trading system based on crossing of the DI+ and DI- lines of the Fractal_ADX_Cloud indicator.

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

EMA_WMA - Expert Advisor for MetaTrader 5. Intersection of two iMA (MA).

CCI - very extended version of the "experiment".

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

Recursive (double) smoothed stochastic - allows calculating double smoothed stochastic up to depth 15.

Analysis of bars, if they contain N consecutive bars of the same type.

The NRTR_extr_ZigZag indicator with the timeframe selection option available in the input parameters

Analysis of OHLC on 0, 1, 2 and 3 bars.

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

Crossing of the two iMAs. Lot calculation based on the risk value as a percentage of margin.

The smoothed Simple Trend Detector with the color indication of overbought/oversold level breakouts and of the histogram direction.

Trading system based on the signals of the ThreeCandles indicator

EMA

Intersection of two Moving Averages. Take Profit and Stop Loss levels are virtual.

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

The Exp_Stochastic_Chaikins_Volatility Expert Advisor based on the Stochastic_Chaikins_Volatility indicator color change.

The RBVI indicator (Relative Broker Vigor Index) implemented as a colored histogram.

The trading system is based on the PercentageCrossoverChannel_System indicator signals.

The indicator draws a channel using the High and Low values of a candlestick of a higher timeframe specified in the indicator input parameters.

Closing all open positions with the specified profit percent.

The BarTimer indicator implemented using the classes of libraries that were described in detail in the article "Custom indicators and infographics in CCanvas", with the possibility to set a fixed timeframe, data from which the indicator displays in input parameters.

The indicator shows a text block with the values ​​of the user defined CCI oscillator period for each timeframe

The ZScore indicator shows relative price deviation from its average value.

Kurtosis is an indicator of market sentiment.

ChannelEA1 - an Expert Advisor working in a channel, using pending limit orders

1...313233343536373839404142434445...189