Watch how to download trading robots for free
Find us on Twitter!
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 - 189

Submit your code

The Fisher Transform Indicator was created John Ehlers "Cybernetic Analysis For Stocks And Futures".

ATR based limit channels

Strategy based on the custom indicator 'RSI_MAonRSI_Filling'. The minimum step is set between positions

Finalization of previous version. Now, when opening a 'SELL' position, we immediately close all 'BUY' positions and vice versa: when opening a 'BUY' position, we immediately close all 'SELL' positions

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.

Checks if Metatrader5 Terminal is connected to Internet or not. The expert will Print a message for the connectivity status

SmoothStep

'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.

The currency strength meter is a trading tool that is used to identify trending and consolidating markets based on the percentage rate of change in price from one period to the next.

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

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.

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)

The Restoring Pull Indicator was created by John Ehlers (Stocks & Commodities V.11:10 (395-400))

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.

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.

1...182183184185186187188189190191