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

Submit your code

The indicator displays the 'Ask' line -> a spread is added to the 'Close' price

Dynamic pivots - any time frame

'Momentum' indicator and 'Momentum' indicator smoothed with 'Moving Average

A simple trading system using the custom indicator "WPR Custom Cloud"

The Expert Advisor is a joke: the position is opened randomly. Now there is a Stop Loss, Take Profit and much more

This a library for a quick and easy encryption and decryption using base64. The usage is very simple and can be done in a few lines of code. <<< The return value of a method is the required output. <<< Feel free to use this library at your convenience.If it is helpful, please reward me by rating this item on mql5 site. >>From a developer, for developers.<<

On chart stochastic (like)

Strategy based on the signals of the custom indicator 'RSI_MAonRSI_Dual'

Standard MA + Hull MA + DEMA + TEMA

Allows you to determine the occurrence of a new bar event in a multicurrency Expert Advisor

Rsi oversold bought , Moving average

Buy Sell on your price, Choose Market order, Pending Limit order or Pending Stop Order

"The Fisher Stochastic Center Of Gravity" was created by John Ehlers (УCybernetic Analysis For Stocks And FuturesФ , pg.95)

Colored Stochastic smoothed with iMA (Moving Average, MA)

Candlestick chart without shadows

Slightly improved version of the previous one.

& moving average , two rsi filters.

Momentum deviation

This MT5 Expert Advisor opens multiple buy and sell orders based on user input, featuring a simple interface with Buy and Sell buttons. The EA calculates lot size, checks the spread against slippage, and places orders accordingly. It is essential to test this EA in a demo account before using it in live trading.

An (optional) include file to enhance error code handling experience.

Rates Version of a script https://www.mql5.com/en/code/30791

iCCI (Commodity Channel Index, CCI) indicator as a colored line

Limit channels - with states

The Leading Indicator was created by John Ehlers (Cybernetic Analysis For Stocks And Futures pg 235)

Shows your position size through a comment from any symbol chart based on a risk percent on daily ATR, you can use either balance or equity.

Just a very simple expert that execute orders from a text file.

Simple EA on 'iVIDyA' indicator

DMH

Directional Movement using Hann windowing

ZigZag Color Indicator for Line Charts which works on Close prices rather than High low This indicator has only one input parameter which is ExtDepth and its optimized for performance

I search Moving Average that can be hide and shown with button, just like in Trading View, but I cannot found it. Then I try to modify example of Moving Average code from MQL5 Metaeditor Help, and do some add for button and logic for toggleable the button to show or hide Moving Average. Just like in Trading View. For those who need this, please feel free to use or modify for your own requirement.

Detecting the start of a new bar or candle, in the OnTick() event handler of an expert advisor.

SmoothStep (generalized)

Two indicator series ('Two MA Color N Bars' and 'Square') in one code

The Predictive Moving Average was created by John Ehlers (“Rocket Science For Traders”, pg.212″).

Volume Colored Candlestick with Bollinger Bands as the Standard Deviation

The HighPass - LowPass Roofing Filter was created by John Ehlers (Cycle Analytics For Traders pg.78)

An automated trading system with a data panel in form of the OBJ_LABEL objects.

The indicator shows signals ('Arrow' objects) of the 'Moving Average' indicator crossings. The peculiarity of the indicator: if there was an intersection of 'MAs' (on bar #0), and then the intersection disappeared, the signal remains on the chart

The ZigZagExtremaOnArray is an mqh include file which contains the calculation function of MetaQuotes' Examples ZigZag, BUT you can use it on any buffer that contains curves or histograms, similarly to the MovingAverages.mqh from include. The idea was to get highs and lows of an indicator curve quickly with the help of an "onBuffer" function.

This EA started off as a job to trail equity. I then added the function of managing individual trades. Thereafter I added the facility of manually putting the price of when it can send a grid of pending order's. This EA does not have condition set in it to open trades. You have to determine that if market moves to an area you believe you would open a grid of orders if you were by your computer watching the market. No what this EA helps is you wake up in the morning you see the area you a grid to open. PUT THE PRICE FOR THE EA TO OPEN A GRID OF PENDING ORDERS. If the market reaches the area price you have set. The EA will send the grid and will manage those trades putting Stop Loss (if you set it) trailing(if you set it). Today 13 Sep 2022 the EA generates has NO ERROR when compiled

1...183184185186187188189190191192193