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

Submit your code

The trading system based on Hans_Indicator_Cloud_System indicator signals with the possibility to set a fixed position holding time

Trading system based on XWPR_Histogram_Vol indicator signals

FanMA Avg indicator

The Expert Advisor is based on OHLC and three indicators: iMACD (Moving Average Convergence/Divergence, MACD), iStochastic (Stochastic Oscillator) and iRSI (Relative Strength Index, RSI)

Indicator FineTuningMACandle_Chl_Arr that additionally indicates the trend strength with colored dots, based on the standard deviation algorithm

Indicator FineTuningMACandle_Chl with the timeframe selection option available in its input parameters

TIA

The Trend Interruption Average indicator

The ROC indicator with signal Moving Average

The Super_Signals_Channel_V3 indicator with a colored filling of the channel and a middle line

Two identical trading systems (for long and short deals) based on the VortexIndicator indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

The Expert Advisor based on the BullsBearsEyesindicator custom indicator

The Expert Advisor operates using pending Buy limit and Sell limit orders. It uses High and Low of the D1 timeframe (bars #1 and #2)

The Expert Advisor uses Buy Stop and Sell Stop pending orders.

This is the trading signal of Bollinger Bands. The expert code for this strategy is automatically generated by the MQL 5 wizard.

TrendStrength of deviation scaled MA

Indicator RSI Rendiment

The EA uses two indicators iMA (Moving Average, MA), Fast and Slow, and one indicator iBands (Bollinger Bands, BB).

Sell Relative Strengt Index (SRSI)

Improved version based on RSI_candles by © mladen 2018 https://www.mql5.com/en/code/20968

Short description.

Rsi close/ mtf use

The purpose is to check whether new bar are generated This is a class file that can be used as a class or copied to EA or scripts for use

Now we will get the code with function and purpose as below: 1. How to call and using the bollinger band 2. How to call and using the volume tick 3. How to call and using the Moving average volume. 4. How to code using the Trailling & Check volume lot size

The Hodrick-Prescott Filter.

Trade signals based on "Dark Cloud Cover/Piercing Line" candlestick pattern, 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.

CMOOnArray class is designed for calculation of CMO (Chande Momentum Oscillator) values on indicator buffers. The example of use of the CMOOnArray class is presented.

PEMA - Pentuple Exponential Moving Average.

ATRNorm is the normalized version of АTR. Tick volume, standard divergence and other parameters can also be used instead of АТR. The indicator represents logical development of the script. ATRNorm has been created to detect flat areas.

The Exp_2pbIdealMA indicator is based on the crossing of two Moving Averages. A signal to perform a deal is formed at bar closing if there is crossing of a fast 2pbIdeal1MA Moving Average with a slow 2pbIdeal3MA Moving Average

The Expert Advisor is drawn on the Oracle redrawing indicator

The Exp_MAMA Expert Advisor drawn using the entry when crossing Moving Averages of the MAMA indicator

The Expert Advisor with the VortexIndicator indicator

The indicator gives Stop Loss value for open position on the basis of the XATR indicator.

The Expert Advisor is a profit calculator on the opening position for price movement to a price level fixed in the chart

The oscillator using T3 averaging.

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

Example of using IndicatorSetDouble() function. This is an indicator that turns upside down the maximum and minimum values ​​of the indicator window and values ​​of levels, on which the horizontal lines are placed.

The indicator "predicts" the color of the next bar with the probability specified in the settings. It is useful for the evaluation of strategies aimed at such a prediction when choosing trading instruments / timeframes for strategies. Caution: The indicator "looks into the future", so do not apply it in real life or in the strategy tester!

Four moving averages based on the averaged values ​​of Open, Low, High and Close of a candlestick chart.

The Exp_HullTrend Expert Advisor is based on the signals of the trend indicator HullTrend.

1...110111112113114115116117118119120121122123124...185