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

Submit your code

Displays direction of volatility and volume

Double smoothed EMA - floating levels

This program lists and shows information about calendar events between specified date range.

The simple trading panel is a trading tool that is very interesting because it will allow you to predefine your StopLoss and your TakeProfit in term of pips.

The EA works on the signals of the custom indicator 'PriceChannel_Signal_v2' ( https://www.mql5.com/en/forum/173249/page132#comment_15924070 )

The indicator shows the position of two indicators (iMA and iStochastic)

Moving Average Bands Width

Moving Average Bands

Very simple indicator to plot the values of the spread[] data as reported by the OnCalculate event handler.

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)

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)

1...184185186187188189190191192193194