MQL5 Source Code Library for MetaTrader 5 - 16
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.
Trading based on preset candlestick combinations (patterns) Candlesticks are marked as "1" (bullish) and "0" (bearish). TakeProfit, StopLoss
The indicator displays the candlestick size (High-Low) and its direction in the form of a colored histogram.
The script calculates the maximum lot size that can be used to open a position using the entire free margin available on the deposit.
Ten 'Parabolic Stop and Reverse system' indicators in one window
The Expert Advisor calculates the maximum lot size that can be used to open a position using the entire free margin available on the deposit.
A script for placing two Buy Stop Limit and Sell Stop Limit orders at an equal distance.
A script for placing a SellStop Limit order.
A script for placing a BuyStop Limit order.
The Exp_Stochastic_Chaikins_Volatility Expert Advisor based on the Stochastic_Chaikins_Volatility indicator color change.
The Stochastic_Chaikins_Volatility indicator with the timeframe selection option available in its input parameters.
The script allows to quickly remove indicators from charts.
Bollinger bands at extended Fibonacci levels.
A semi-automated Expert Advisor which signals of breakouts of specified horizontal levels.
The EA searches for N identical candlesticks in a row. If the found candlesticks are bullish, it buys. I they are bearish, the EA sells.
The script removes from the chart a comment located in the upper left corner.
The Chaikin volatility indicator modified to have a stochastiс view, and implemented in the form of a signal cloud.
The indicator displays the price pivot point.
The script removes old objects of the selected type from all charts, if the time coordinates of these objects are outside of the trigger level.
The script removes all objects of the type selected by the trader in input parameters from all charts of the client terminal.
The script removes from the current chart all objects of the user selected type
The Expert Advisor trades inside a channel, reversing positions at the channel borders.
Trades based on the previous candlestick.
A list of all positions. An example of working with CPositionInfo.
Original mathematical functions taken from different places, which either do not have analogues or perform much faster than alternative implementations
A script for placing two Buy and Sell Stop orders at an equal distance.
A script for placing two Buy and Sell Limit orders at an equal distance.
A script for placing a SellStop order
A script for placing a BuyStop order
A script for placing a SellLimit order
A script for placing a BuyLimit order
A simple trend indicator based on the smoothed Average Directional Movement Index drawn in the main chart window.
A trend indicator based on the intersections of Parabolic Sar and a moving average.
The ThreeCandles indicator with the timeframe selection option available in its input parameters.
A simple trend indicator based on the smoothed Average Directional Movement Index.
The indicator draws colored candlesticks of a larger timeframe as color filled rectangles using DRAW_FILLING buffers. Rectangles are color filled in accordance with the colors of the StreamСCandles indicator candlesticks, if there are any.
The script closes all positions of the current symbol.
The script closes all open positions on the current account.
The StrangeIndicator indicator with the timeframe selection option available in its input parameters.
The Expert Advisor is based on the indicator with the same name. Lot is calculated based on the risk value as a percentage of free margin.
The indicator finds candlesticks with a minimum or maximum shadow size. Limitation on the size of the candlestick body.