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

Submit your code

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.

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

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.

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.

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

1...180181182183184185186187188189