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

Submit your code

The Mirror MA indicator features two mirrored moving averages in a separate chart window calculated based on a difference between two MAs with different calculation data, and one signal line calculated based on a direct moving average data.

Choppy market index - smoothed

Corrected JMA

MACD Flat Trend indicator

DSL synthetic super smoother momentum

Bollinger Bands Outside Candle Alert indicator

Perfect trend line

Double smoothed stochastic

Rsi of average (rsioma) on chart version

Self Advance Decline line - with floating levels

The script exports summary of closed trades grouped by each trading day to .csv file

Correlation phasor

A basic container for storing an ordered list of objects.

This is one of the important thing to consider in order to improve our strategy by calculating on average how much an asset moves, in which it will allow us to identify the best days to trade when the market moves the most as well as the worst days to trade in order to prevent trading during these days.

Envelopes beginner tutorial to learn how to code in MQL5

A zigzag based on the trend change of the parabolic sar

I share my code for expert advisor babi ngepet

The Force Index Indicator was developed by Alexander Elder. This index measures the Bulls Power at each increase, and the Bears Power at each decrease.

The Williams' A/D indicator is the accumulated sum of positive "accumulational" and negative "distributional" price movements. Divergences between the indicator and the price are a signals.

The indicator determines the bulls or bears prevail on the market and plots their strength.

The Expert Advisor is profitable only if the "Open prices" only or "1 minute OHLC" modes used in Strategy Tester.

When the chart symbol is changed, it will change symbols for all other charts.

Aroon Oscillator predicts price changes from trend to flat market conditions.

BrainTrend1Sig is an indicator for positions opening and closing. It indicates trend reversal points when a price reaches extreme values.

CStochasticOnArray class is designed for calculation of Stochastic indicator values on indicator buffers. The example of use of the class is provided.

HLR

The HighestLowestRange (HLR) determines the relative price position in range of the several X bars ago. If price located at range bottom (new low), the indicator is equal to 0, if price position at the top of the range (new high), the indicator is equal to 1 (or 100%).

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

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

Function Library for Working with Time Series: iTime, iOpen, iHigh, iLow, iClose, iHighest, iLowest, iBarshift. Short invocation version is available for all functions (with the current chart's symbol and period).

Analyzed copy of ATC2012 current champion JPAlonso's EA.

The ZigZag drawn using Heikin Ashi extremums

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

An example of how to create a multicurrency Expert Advisor that trades using the Bollinger Bands indicator.

Normalized oscillator that uses Fisher's transformation, drawn in the form of a color histogram.

An example of posting a message containing an image on the MQL5.com website using the WebRequest() function. This is an example of how to authorize using a login and a password, and to insert an image into a text message.

Robot that trades the open sentiment of the market.

Simplified version of the popular ZigZag indicator. The algorithm runs significantly faster, does not use intermediate calculation buffers, does not contain nested cycles and, therefore, does not redraw itself.

Averages indicator, which contains 18 types of averages available.

Envelopes using the Color_PEMA_Digit MA, with an indication of trend direction and display of the last values of channel borders.

A trend indicator of NRTR type using an MA and ATR.

1...262728293031323334353637383940...195