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

Submit your code

The simplest EA based on the fractal MFI.

The newest version of the Precision Trend Indicator.

The vertical version of the BarTimer indicator implemented using the classes of libraries that were described in detail in the article "Custom indicators and infographics in CCanvas", using current timeframe data and producing a sound alert when the bar changes.

Extended version of MSROC indicator.

This non-trading Expert Advisor is designed for the simple trailing of take profit orders of open positions.

The TTM (Trade The Markets) Trend is basically an easier way to look at candlesticks. It is the The Heikin-Ashi method. Literally translated Heikin is "average" or "balance,", while Ashi means "foot" or "bar." The TTM trend is a visual technique that eliminates the irregularities from a normal candlestick chart and offers a better picture of trends and consolidations.

This version of Stochastic Oscillator allows you to use any of the 4 basic types of averages (default is SMA, but you can use EMA, SMMA or LWMA too) - some are "faster" then the default version (like EMA and LWMA versions) and SMMA is a bit "slower" but this way you can fine tune the "speed" to signals ratio.

Chaos zone indicator that is a combination of two Bill Williams' indicators: Accelerator Oscillator and Awesome Oscillator.

The McGinley Dynamic indicator was developed by John McGinley and outlined in the Market Technicians Association's "Journal Of Technical Analysis" in 1991. The purpose of this indicator is to address flaws found in conventional moving averages, such as price separation and whipsaws. The result is a remarkable indicator that follows the average price of an instrument while adapting to current market speeds.

Indicator based on Hull Moving Average.

A trading system based on the Donchian Channel indicator.

A variation of linear regression.

Cluster indicator based on article https://www.mql5.com/en/articles/1464

Indicator Choppiness Index

KDJ

KDJ oscillator defines when it is necessary to search for market entry conditions.

Keltner Channel calculated as Perry Kaufman's Adaptive Moving Average (KAMA) +- ATR distance for the bands.

Super SAR is a signal indicator based on SuperTrend and iSAR.

ATR-based ZigZag implementation.

Phase change index - JMA

Step chart of stochastic

JMACandle indicator with two colored channels based on standard deviations from High and Low of the indicator candles

Indicator RJTX_Matches_Smoothed in the main chart window

Three standard deviation channels using indicator buffers based on the number of bars defined in the indicator inputs

The indicator plots support/resistance levels and areas

Volatility quality - zero line and ATR based

Slope Direction Line / Moving Average confirmation bars indicator

Smoothed Standard Deviation

Ehlers Fisher transform (as originally described in the book)

Displaying the latest closed values of indicator Float_Pivot_Digit with colored rectangles and background filling

Indicator Multi timeframe Dynamic Trend

Indicator Market Session

Indicator Thrust Bar

EMA to SMA MACD - on chart

Bandpass filter

This script will change the SL and TP of all open trades of the symbol to the price where the script is dropped off.

Random number generation using the 32-bit PCG generator.

When the subject changes, it notifies and updates its observers, who know nothing about each other.

Discontinued signal line CCI using average of price for filtering signals

The code above is a "Hammer" indicator that detects candlestick hammer formations (bullish and bearish) and inverted hammer formations (bullish and bearish) on a MetaTrader 5 chart. This indicator identifies price reversal patterns by calculating the size and ratio of the candlestick wicks based on adjustable parameters: MaxRatioShortWick, MinRatioLongWick, and MinCandleSize. When a pattern is detected, the indicator displays a colored arrow near the candle’s lowest or highest price according to the pattern’s direction. The code also includes functions to create and delete objects automatically when the indicator is initialized or stopped.

The Stochastic of all oscillator-like indicators, included in MetaTrader 5 client terminal.

1...596061626364656667686970717273...195