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

Submit your code

Automatically detect Inside Bar patterns, draw projection rectangles, and receive real‑time alerts – all in one powerful indicator. Swing And Full Margin trader

BBandsPsar is a custom hybrid indicator that fuses Bollinger Bands’ volatility framework with the Parabolic SAR’s trend-following logic. By integrating these two methodologies, it effectively reconciles market volatility with emerging trend dynamics within a single, cohesive tool.

You never see like this indicator before. This indicator draw Dayly RSI Level on your chart like CAMERILLA and Pivot. The levels is very powerful and very matchful. Try it quickly.

The ADXm indicator, unlike the traditional one, allows to see the positive and negative waves of the trend. The method for working with this indicator is the same as with the traditional one.

Steve Nison 'three line break' strategy on chart.

Variant of stochastic indicator, which filters false signals automatically.

Displays a Histogram of Momentum, ATR, CCI or RSI indicators relative to a specified level.

The DJ Lines belongs to the Pivot group. All similar indicators operate on the principle - «Based on the values of the previous day (days) it is possible to calculate a point, passing which would mean a change in the trend».

Power of CAD indicator shows actual strength of currency CAD calculated of 7 pairs that contain CAD. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: USD CAD, AUD CAD, CAD JPY, EUR CAD, GBP CAD, NZD CAD, CAD CHF.

Th Expert will set the TP based on the SL manually set using the input multiplier. Using this you can set 2,3,4 etc times the SL set.

This EA scalps using the Relative Strength Index (RSI) Indicator, Stochastic Oscillator Indicator, and Bollinger Bands Indicator to identify trend or counter-trend opportunities. As a multi-pair EA, it scans multiple currency pairs for signals. This EA comes with a variety of features, including Trailing, Risk Management, Money Management, Restriction Mode, and more. With the right settings, it has the potential to generate significant profits.

MACD indicator with possibility to establish mode of moving average and applied price.

Shows you profit history in real time.

Simple library that allows sending requests via HTTP protocol from new MQL4

This indicator is based on the Money Management approach used by VP from nononsenseforex.com It uses ATR to calculate Stop Loss, Take Profit and Volume you should enter into a trade based on the percentage of your Equity you want to risk.

The history_data_analysis_v3 script checks the history for missing bars, determines the size of the holes, gaps and makes a list of them.

Indicator StepMA Stoch KV1.

Ещё одна разновидность Индикатора WcciPaterns, только в качестве осциллятора.

Indicator BAT ATR v1

The indicator draws the channel of regression by High and Low prices.

Scripts to Close Orders under various conditions

This indicator will write value degrees of the lastest position of price at the current timeframes, and when position and condition of trend status was changed, the indicator will give an alerts.

Most EAs tend to close orders in take profit based on the distance in pips from the purchase price. However, this MQL4 code is based mainly on the current profit.

i-Breakeven groups the open position by symbol and for the each of group shows: 1. The current equity level. 2. The estimated breakeven level.

The script downloads history for all timeframes and symbols in the Market Watch.

This is the standard Heiken Ashi, but with the option to spot Dojis and color them differently.

Shown all TF candle direction on Chart.

The indicator allows to control the Strategy Tester speed.

This Indicator shows the potential breakout/stop levels.

Changing the size of the chart window is important in my EA, but it may serve as inspiration for others.

Function library and Experts for trailing (11 types). Simple usage of complex algorithms.

Possible uses: Mark session open/close, mark time of regular news release, any other relevant time.

Interactive crosshair indicator with real-time candle analytics displayed in a single-line info bar.

Simple one click trade panel, typically useful for scalpers and day traders.

Trading and analysis dashboard which usually provides great trading opportunities during daytime.

Spearman's Rank Correlation is a non-parametric method used in order to make statistical studies of relations between phenomena. In this case, the factual degree of parallelism between two numeric sequences will be detected.

Indicator RBCI

The indicator shows levels of support/resistance.

Updating of version VIII.

Indicator LSMA AppliedPrice.

12345678910111213...105