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

Submit your code

Lentz Volatility indicator

Heiken ashi smoothed - zone trade

RSI adaptive double smoothed EMA

Weighted deviation

Script gets information about input and output tensors of onnx-model, their types and shapes

To assist traders who wish to open multiple sell orders quickly, a script file has been developed that allows them to execute a large number of trades with just one command. The default take profit and stop loss values are set in 5-digit broker format, but for traders using a 4-digit broker, the default must be TP=40 and SL=20. Num_of_Sell is the number of trades to execute. This script file can be extremely useful for traders who want to take advantage of market conditions quickly and efficiently. By simplifying the process of opening multiple sell orders, it can save traders valuable time and allow them to focus on other aspects of their trading

Custom Hammer and Inverted Hammer

This Fibonacci Bollinger Bands indicator is a conversion from Pine Script (by Rashad) to the MQL5 language.

The Bollinger Bands ® Indicator (BB) is similar to Envelopes. The only difference is that the bands of Envelopes are plotted a fixed distance (%) away from the moving average, while the Bollinger Bands are plotted a certain number of standard deviations away from it.

Commodity Channel Index (CCI) measures the deviation of the commodity price from its average statistical price.

Indicator for Woodie’s CCI trading strategy.

This indicator draws pivot points, resistances and supports.

The indicator shows recalculated ("broken") highs/lows of the standard ZigZag indicator.

Stochastic indicator, can be applied to any timeframe (higher or lower than the current chart's timeframe).

Trade signals based on crossover of main and signal lines of MACD indicator (CSignalMACD from MQL5 Standard Library) is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Trade signals based on "Bullish/Bearish Meeting Lines" candlestick pattern, confirmed by RSI (Relative Strength Index) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Trade signals based on "Morning Star/Evening Star" candlestick patterns, confirmed by Relative Strength Index (RSI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The DRAW_ZIGZAG drawing style allow to draw sections using the values of two indicator buffers. It looks like DRAW_SECTION, but it allows to draw vertical sections inside one bar.

Standard Commodity Channel Index with the standard average deviation formula and the possibility to select smoothing algorithm and dynamically changing oversold/overbought levels.

CStdDevOnArray class is designed for calculation of Standard Deviation (StdDev) on indicator buffers. The example of use of the class is provided.

The CTemaOnArray class is intended for calculation of TEMA (Triple Exponential Moving Average) on an indicator buffer.

The indicator draws a grid of possible future levels of price.

Normalized oscillator displayed as a histogram.

Trading signals module for MQL5 Wizard. SilverTrend_Signal indicator's color dot serves as a market entry signal.

This Expert Advisor illustrates the usage of the IndicatorParameters() function to get the information about the number of input parameters, their type and values.

The alternative indicator for trend definition based on the breakthrough bars and distance from extremums.

A Moving Average with double smoothing

Delta ZigZag defines the reversal on a minimal height of the swing and also identifies trend on breakthrough of local minimum/maximum levels and colors zigzag sections in current trend color

The class is designed for calculation of the technical indicator Adaptive Moving Average (Adaptive Moving Average, AMA) using the algorithm of the ring buffer.

Example of getting world index quotes from Google Finance.

The indicator uses the least squares method for the construction of the "most suitable" straight line through a series of points of price values​​.

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

The ChandelierStops_v1Trend_x10 indicator shows the ChandelierStops_v1 trend indicator position from ten different timeframes.

The Expert Advisor enables and disables the "AutoTrading" button at a certain time and closes all opened positions on the account once the specified period of time expires.

Adds period separators to your window, at a time of your choice.

The ZZ Fibo Trader is a simple illustration of the use of the Simple ZZ Fibo, which plots Fibonacci lines on long impulse waves of the ZigZag. In addition, the algorithm illustrates operation of the parabolic system for moving the stop loss.

The Balance of Power (BOP) indicator as a color histogram of strength and direction of the current trend.

Arithmetic and geometric moving averages.

The idea of this one is simple: it should "imitate" as much other moving averages as it can.

The version of well known Woodies CCI with correct implementation of trend changing rules

1...171819202122232425262728293031...190