Watch how to download trading robots for free
Find us on Twitter!
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 - 81

Submit your code

I used to suffer from unnecessary losses and/or cutting my profit short since I wasn't fast enough to modify my SL and/or TP. That is why I've wrote these scripts that will allow me to react fast when I must modify my Sl and/or TP especially when I have many open and/or pending trades. I know there are plenty of Metatraders who also suffer from this and that is why I would like to share these scripts with you, hopefully it will be beneficial. Do not forget to send you comments as well as rate these scripts. Happy trading!

The Price Channel Indicator draws the price channel, its upper and lower boundaries are determined by maximal and minimal prices for a certain period.

The Relative Strength Index, applied to standard deviation of price.

It's an oscillator, similar to OsMA with Variable Index Dynamic Average.

The indicator shows the trend and allows to see a price range.

Trading signals of candlestick patterns with confirmation by Stochastic indicator.

Ergodic Mean Deviation Index (MDI) Oscillator by William Blau.

Schaff Trend Cycle indicator is a cyclical oscillator created by calculating the stochastic over MACD line using cycles. As a result, the developers managed to achieve more stable and reliable results of the indicator script operation.

Ease of Movement technical indicator is used to display the ratio between prices change rate and market volume.

Smoothed candlestick chart.

Hull Moving Average (HMA) that can change its color.

The indicator gives trading signals using colored arrows on a chart. The signals are based on the WPR (Williams’ Percent Range) and RSI (Relative Strength Index) technical indicators.

CRSIOnArray class is designed for calculation of RSI (Relative Strength Index, RSI) values on indicator buffers. The example of use of the class is presented.

BrainTrend_HTF_Signal displays trend directions from the last bars of the BrainTrend1 and BrainTrend2 as a sequence of graphical objects. The number of bars to be used is set in the input parameters.

Unnormalized symmetrical oscillator based on the linear regression algorithm with the simplest trend power indicator.

The sum of Bears Power and Bulls Power technical indicators values averaged using Laguerre algorithm.

Trading signals module for MQL5 Wizard. The moment, when PriceChannel_Stop indicator changes its color, indicates the time for market entry.

Smoothed Simple Trend Detector.

The GMMA Long indicator converted into a histogram for a better visualization.

The indicator allows predicting the trend reversal

The Keltner Channel indicator with the added flat area

The class is designed for calculation the technical indicator On Balance Volume (On Balance Volume, OBV) using the algorithm of the ring buffer.

The trend indicator drawn in the form of the color cloud

The script demonstrates the example of using the FileMove() function

The script demonstrates the example of using the FileWrite() function

SSL

A semaphore signal indicator that uses two Moving Averages in the form of NRTR

An example of the IndicatorSetInteger() function. A simple indicator that shows how to create a label, e.g. "Overbought level" for each horizontal level.

IREA is an automated trade algorithm based on the idea of that an unusual impact in price changes will be adjusted by an inverse movement.

A trend indicator that uses the oscillator analogue of RSI and its signal line. It is drawn as a colored cloud.

A semaphore signal indicator that uses the values of Accelerator Oscillator and Bill William's Awesome Oscillator.

The MACD histogram with a cropped display of flat areas.

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

Bill Williams' Awesome Oscillator with the possibility of fine-tuning and an additional signal line in the form of a colored cloud.

Bill Williams' Accelerator with the possibility of fine-tuning and an additional signal line in the form of a colored cloud.

A semaphore arrow signal indicator. The indicator puts colored dots at times when you can trade.

The indicator changes the bar color to the color of the current trend calculated based on the ADX technical indicator.

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

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

The MultiBlauSMStochasticx7Signal indicator shows information on active trends using the values of seven BlauSMStochastic indicators from different timeframes.

The ExVol calculates the difference between the total sum of bodies of growing and falling candlesticks on a given interval in points.

1...747576777879808182838485868788...188