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

Submit your code

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

Open Pending order After Position Get StopLoss

Displays direction of volatility and volume

Get notifications when hit price level

Ichimoku is one of the excellent indicator which can work lonely or with other indicators. With Alerting indicator which send notification to your cell phone whenever Tenkan-sen Cross Kijun-sen you can have an opportunity to enter or exit market at right time .

This code use detect economic calendar and put pending order before released news time

ZigZag NK Sound Alerts notifies you with Sound alert, Push Notification or Popup Notification on terminal when Zigzag changes its bar.

Candle close above/below BB & Envelopes

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

Modify to allow direct specification of the starting point of the Parabolic SAR.

Trading strategy based on the custom indicator 'MA on Momentum'

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

Fir filters

The Laguerre Filter was created by John Ehlers ("Cybernetic Analysis For Stocks And Futures", pg 216)

Trend Direction And Force Index with Alert derived from Mladen Rakic's version https://www.mql5.com/en/code/21869

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.

Rsi oversold bought , Moving average

Very simplified code: intersection of two custom indicators 'MA Other TimeFrame Correct'. There is no Stop Loss, Take Profit or Trailing.

Candlestick chart without shadows

Expert is a joke! The position is opened at random!

This EA collects information about the spread and shows the statistics on the chart. When the EA ends its working, it prints all statistics to the Journal, which can be useful for the Strategy Tester.

This EA collects information about the spreads and Shows the number of spreads in the specified range based on the ticks that occur each year.

This simple quick & dirty script code will output a CSV file of all the Signals' properties as reported by the MQL5 Trade Signals functionality.

Colored Stochastic smoothed with iMA (Moving Average, MA)

Add Popup or Push Alert notification on manually placed horizontal lines, The lines are deleted and reset itself as soon as price touches these lines

This EA can Calculate each trade volume base on received TP and SL Prices and Risk percent of account in each trade.

trending breakout

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

3 fibo levels.

Recursive Moving Average calls itself a number of times in order to reach the appropriate smoothing. For instance DEMA and TEMA indicators are recursive exponential moving averages. The goal is to remove the loop limit while still running fast. In addition a trigger line provides the trading signal.

The indicator is an equivalent \"Chart Window\" version of MACD.

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

SymbolInfo example script lacks margin and leverage data wich are nowhere to be found explicitely in Metatrader, the trader must search thoroughly into the broker site in order to find them. The aim of this script is to provide a remedy to it from a standard tool.

he script estimates the bar's High-Low-Close, based on the stream similarity.

This is a simple EA test code I made for adapting Candlepatterns.mqh

This Function will retrieve the Assets next Opening Time and Closing Times, either following the current time or following a given time.

Volatility/volume indicator based on price deviations anomaly.

Add High and Low lines based on number of previous bars defined in input field

The color indicator shows in a separate window the moment if the intersection of two iMA (MOving Average, MA) was on the current bar

1...179180181182183184185186187188