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

Submit your code

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

Fractals based on the iOBV indicator (On Balance Volume, OBV)

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

Histogram between price and indicator or between two indicators

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

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)

Candlestick chart without shadows

Slightly improved version of the previous one.

& moving average , two rsi filters.

Momentum deviation

iDeMarker (DeMarker, DeM) indicator smoothed with iMA (Moving Average, MA).

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

Takes trades based on ICT silverbullet and 2022 model with trailing stops and partials, also keeps entry according to OTE, and risk minimal. It works in a small time window of silver bullet especially NY session, and if no trade found, 2022 model and fibonacci OTE jumps in to get a trade. But entry is so only after confirmation with these models being there, hence trades will be less for minimal drawdown and high winrate. To know more about these strategies, you may visit Inner Circle Trader YouTube channel.

The 8 effective steps to build a robust day trading plan using Fibonacci retracement

Limit channels - with states

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.

Elegant oscillator

An exponential moving average of the true range and the offset of its average deviation

Strategy based on the 'DeMarker' indicator, working with pending orders

Building good trading habits by seeing things in terms of percentage not in terms of money.

1...181182183184185186187188189190191