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

Submit your code

The indicator colors candlesticks depending on the position of these candlesticks in relation to the previous candlesticks.

RSI_Candle_Vol indicator with additional averaging of the resulting candles

The EA is based on iAO (Awesome Oscillator, AO) and RAVI (Range Action Verification Index) indicators.

XDeMarker_Histogram_Vol indicator shows direction of the histogram bars movement using colored icons on these bars

Average True Range Bands indicator

Breakout RSI indicator

Expert advisor uses the difference between bar closes and a close moving average to detect unusual activity, it will then buy arbitrary volatility spikes. This is a prototype that I will be expanding on in the future, at the moment the user can input an arbitrary level to buy at. In future developments I plan on building a neural network in the EA that detects and compares volatility levels.

Smoothed Momentum indicator

Indicator Mirror RSI

Simple oscillator

An indicator that shows buy and sell signals of three indicators (iSAR, iRSI, and iMA) on nine timeframes with full settings

The Intraday Intensity Open Form indicator

A trading system based on the Puria method.

The Donchian Oscillator indicator

The Stalin indicator with the ability to change the indicator timeframe using input parameters

Indicator Spread Oscillator

Zero mean normalized nonlinear Kalman filter - with floating levels

Smoother with self adjusting levels

RSI swings

The equation of the straight line from the school, it is y = bx + с. (Conversion from https://www.mql5.com/en/code/7883)

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.

Detrended Price Oscillator (MetaTrader indicator) — a version of the price oscillator based on the difference between the current price and the simple moving average shifted by (Period / 2) + 1 bars. Unlike the stochastic oscillator, this indicator aims to show the short-term trend changes (price waves inside the long-term trend). The indicator is displayed in the separate window of the chart. You can use this Detrended Price Oscillator (DPO) indicator in both MT4 and MT5 versions of the platform.

Spread MetaTrader indicator — displays current spread in the main window of the chart. You can modify the font parameters, indicator's position and the normalization of the spread value. The spread is redrawn after each tick, ensuring the most current and active spread value. This can be useful for brokers with variable spreads or with spreads that are widened often. You can also enable a spread label to be shown near the current Bid line. The indicator is available for both MT4 and MT5.

These are some #define statements that are useful to perform operations in your EA. You only need to assign the name of your variables at the beginning of the file, and then let the other #define statements do the work. In order to use this file, add #include <DEFINE_statements.mqh> to the first line in your EA file.

Bill William's accelerator (Accelerator Oscillator) which is drawn on the high and displayed on the low timeframe.

ATR MA Oscillator is the oscillator drawn on the basis of the difference between the ATR oscillator and its signal line.

The Aggressiveness indicator displays how many points the instrument runs on the average for one candlestick

A typical and sufficiently smooth oscillator which can apply all oscillator analytical instruments

The semaphore trend signal indicator

The volatility meter with the indication in the form of a colored cloud

SI

A non-normalized oscillator.

The indicator finds Doji candlesticks and highlights them on a chart using colored arrows.

The i-OneThird indicator draws candlesticks that correspond to the bullish and bearish patterns (in the style of Heiken Ashi).

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

The CronexAC_Signal indicator shows information on the current trend using the values of the CronexAC indicator with a fixed timeframe.

The Exp_TSI_DeMarker EA is based on the signals of the TSI_DeMarker trend indicator.

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

The popular Ilan 1.6 Dynamic belongs to the category of "averagers". Ilan uses advanced money management formulas and allows taking even losing positions to profit. Now Ilan 1.6 Dynamic is available as a source code for MetaTrader 5.

The NRatio_HTF_Signal indicator shows the trend direction or the signal based on the NRatioSign indicator.

Semaphore signal indicator triggering when the BinaryWave indicator changes direction.

1...154155156157158159160161162163164165166167168...191