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

MQL5 Source Code Library for MetaTrader 5 - 137

icon

This is the largest free source code library for MetaTrader 5 platform programs. Here you can find ready-made Expert Advisors, technical indicators, scripts and libraries. Use the code library when learning MQL5 language and develop your own automated trading applications based on the provided codes.

You can freely download and test published codes, as well as launch them in MetaTrader 5. The library is also available directly from MetaTrader 5 platform and MetaEditor development environment.

Submit your code

A colored cloud using two consecutive averages of the price series.

The indicator displays the information about the time and account properties.

The ATR_Normalize indicator with the timeframe selection option available in input parameters.

A normalized true range by Larry Williams.

The indicator colors candlesticks based on the highs and lows of previous bars.

BnB

The indicator shows the power of bulls and bears.

A multi-currency trading system, based on Bollinger Bands and trend catching technique. Capable of trading up to 6 currencies simultaneously. System has build in optimization parameter sharing.

Simple indicator that shows when market is open.

This code allows you to set a maximum percentage of equity risk.

FxTrend 25EMA is based on the difference of the EMA 25 value during two different moments.

Show the aspect of two planets, the declination of planets or just the Body position.

This CExpert subclass allows to open only long/short orders, showing its usage with an MACD example.

When you drag this script onto the chart, it will calculate the price where you drop the script and use this price to figure out if a Sell Stop or Sell Limit pending order should be placed.

When you drag this script onto the chart, it will calculate the price where you drop the script and use this price to figure out if a Buy Stop or Buy Limit pending order should be placed.

A simple script that allows you to open a Short position using the current price location with a specified Risk Percentage and Reward Ratio.

A simple script that allows you to open a long position using the current price location with a specified Risk Percentage and Reward Ratio.

This Expert can run on all Symbols and Time Frames and uses the crossover of two Linear Moving Averages as Signal and an Exponential Moving Average as Trailing Stop.

The InverseReaction indicator with the timeframe selection option available in input parameters.

The Range_Rider indicator with the timeframe selection option available in input parameters.

The indicator of relations between the two true ranges by Larry Williams.

The MFIWithFlat indicator with the timeframe selection option available in input parameters.

The RSIWithFlat indicator with the timeframe selection option available in input parameters.

The RVIWithFlat indicator with the timeframe selection option available in input parameters.

The CHOWithFlat indicator with the timeframe selection option available in input parameters.

Chaikin Oscillator with the market flat state detection option.

The indicator utilizes the idea of ​​finding possible resistance and support levels for a period defined in the indicator input parameters, similar to the use of GSV.

The indicator utilizes the idea of ​​finding possible resistance and support levels, similar to the use of GSV.

The RD-ForecastOsc indicator with the timeframe selection option available in input parameters.

The CCMx indicator with the timeframe selection option available in input parameters.

The indicator shows when the price goes beyond the volatility range.

A non-normalized indicator that uses MACD, CCI and ADX for calculations.

A non-normalized oscillator that uses Tilman's averaging, drawn in the form of a color cloud.

A TSI oscillator based on the values of the WPR technical indicator, implemented with its own signal line in the form of a colored cloud.

The indicator draws candlesticks of a higher timeframe based on the values of the HullTrend indicator.

The Exp_TSI_CCI Expert Advisor is based on the signals generated by the TSI_CCI oscillator.

The Exp_CronexRSI Expert Advisor is based on the signals generated by the TSI_MACD oscillator.

The Exp_HullTrend Expert Advisor is based on the signals of the trend indicator HullTrend.

Relative Strength Index with the market flat state detection option.

Money Flow Index with the market flat state detection option.

Relative Vigor Index with the market flat state detection option.

1...130131132133134135136137138139140141142143144...183