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

Submit your code

Intitial position is opened according to signals of the indicator.(there are six variants). If position becomes unprofitable, its volume is increased

bts

Comparing the speed of a binary or a ternary search

NRTR is Nick Rypock Trailing Reverse indicator.

A script to place straddle orders around current price level to catch price spikes around announcements.

The Exp_wlxBWWiseMan-2 Expert Advisor is designed using the semaphore signal indicator wlxBWWiseMan-2.

Support\resistance levels, trend direction — bullish\bearish.

Trades on PERIOD_M1 (M1). Calculates bullish and bearish candlesticks.

MetaTrader 5 allows creating synthetic instruments. The price of such instruments can depend on the current values of a number of financial instruments. In trading, such symbols allow spotting the beginning and end of global market movements at an early stage. In this example we create synthetic instruments to analyze the strength of Forex currencies EUR, USD, GBP, JPY and CHF.

Price momentum oscillator

The Gann High Low Activator Indicator was described by Robert Krausz in a 1998 issue of Stocks & Commodities Magazine. It is a simple moving average SMA of the previous n period's highs or lows.

Classic Pivot Point indicator paints pivot point and three resistance and support levels for all data points.

The script is assigned to a hot key for quick change of charts around in a circle.

Trader's simple assistant. The MQL5 Spread indicator shows the current spread of the currency pair on a chart.

Very popular but dangerous strategy which doubles the stakes after each loosing trade. Finally, if there is enough margin it will reverse into the direction of the current price move and will eventually close in profit. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

Classic strategy based on Parabolic SAR indicator. With Auto Lot options and Trailing Stop. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

Something for those who wants to try out new Strategy Tester and don't have any EA.

It searches for tops or bottoms of price movement.

The Hodrick-Prescott Filter.

The oscillator, based on Ichimoku indicator.

The DRAW_COLOR_HISTOGRAM drawing style is used to plot color histograms.

Stochastic Momentum Oscillator by William Blau.

T3

T3 Moving Average is based on multiple exponential smoothing of price.

ATR Channels create price movement channels considering ATR (Average True Range).

Positive Volume Index (PVI) draws a connection between the volume rise and financial instrument price change.

Stochastic CG Oscillator is a stochastic oscillator, the values of which are calculated based not on a price series, but on CG Oscillator indicator values.

StepMA is executed as a moving average.

The hybrid of the universal moving average and NRTR indicator. In this indicator the values of the moving average are corrected with the help of NRTR algorithm (Nick Rypock Trailing Reverse).

This oscillator displays its values considering RSI (Relative Strength Index) technical indicator.

Vertical time grid with one year step.

Vertical time grid with three hours step.

SpreadInfo displays current spread, its average value and their ratio in one of the chart corners.

The indicator is based on the description given in Joe DiNapoli book "Trading with DiNapoli Levels". It is designed to evaluate the actual market overbought/oversold states.

ZigZag based on the fractals of a larger timeframe considering VininI_FractalsTrend indicator data.

This version of the DinapoliTargets_Full indicator is convenient with its capability to be draw for any bar of a chart, what allows seeing the whole picture of the market behavior relative to the indicator levels on each bar. Apparently this indicator can be most useful when analyzing a strategy in the offline mode.

FisherTransform_HTF_Signal shows a trend direction as a graphical object with colored trend indication and gives alerts or audio signals in case of a trend change.

The simplest signal indicator for specifying trend power and direction.

The Expert Advisor based on the AMkA indicator

The Expert Advisor based on signal entry taken from the AroonSignal signal indicator

The Expert Advisor operating based on the SAR and ADX indicators where the permitted trade direction is selected based on trade results.

The trading system based on the signals taken from the ColorBullsBearsEyes oscillator

1...9899100101102103104105106107108109110111112...194