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

Submit your code

This indicator acts by PRICE ACTION to find the strongest trend each day.

Plays sound alerts when the price reaches certain levels, specified by trader.

The Expert Advisor is based on the operation of its predecessor — Forex Fraus (for M1), but using the Envelopes indicator.

Pending Order is an order that will be executed if the price touches a point that we specify, in other words open pending order means ordering to open a position at a certain price level. So if price hits a predetermined level, then automatically we have an open trading positions.

The Expert Advisor is designed for placing managing grids.

"Hedg System" EA trades with hedging strategy two trades at any given time: Buy and Sell ,works best on 1D time frames major forex pairs .

Let's say we have 20 open orders on one symbol and want to set takeprofit or stoploss for all of them at the same level(price) .The script selects all open orders of the symbol and can modify stoploss or takeprofit or both at the desired level (price). If the input parameters are left to zero , the stop or the takeprofit are left unchanged .

Simple oscillator with a histogram.

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

in raw form for currency pairs and indices.

Sharing this trend indicator made by me. Called "Timeframe Flow". It will draw a user defined higher time-frame candle on every shift on your current time-frame. Meaning you can have H4, H12 or D1 candles on every shift of your H1 Charts. Or you can have D2, D3 or D5 candles on every shift of your Daily Charts. Combined with the current time-frame ATR Bands, you have a trend indicator with some filter. You may also use the Mid Line crosses as exit( Calculated using Higher timeframe candles displayed in the indicator(Close + Open)/2 ).

The "Camarilla Pivots" indicator. The ideal indicator for those who like to work "by levels". It clearly shows the reversal level, support/resistance levels for the current day.

The indicator finds Doji candlesticks and highlights them on the chart.

Almost classical TS based on the intersection of two MA.

Like MA cross but this indicator shows more valid signal. Buy and Sell Signal appears when it cross each others.

The EA is based on the indicator TREND_alexcud Something goes wrong with it

Draft daily trend-following EA that trades using ZIGZAG-FRACTALS on high/low of the preceding bar on a one-hour chart. TakeProfit is 13 points.

The EA uses the method of Burg's linear prediction that was taken from my indicator Extrapolator.mq4.

This EA works in hangseng futures.

Automatically sets a pre set take profit and stop loss for you.

See http://forum.mql4.com/54660 for getting a connection between highs and a connection between lows. I made a zigzag this way.

Specific support and resistance indicator is based on indicators MW_ZigZag.ex4 and High_Low v2.ex4.

The Expert Advisor is based on the exponential moving averages of the same period.

This Expert Advisor trades on the principle of the Martingale: if the order is closed by Stop Loss, the next order will be the opposite type with a lot size increased by a certain rate.

The function closes all locked orders. This really saves money on the spread.

The indicator displays the moving average for the selected timeframe.

"Ichimoku Rretracement" EA Trades when there is a retracement from "ICHIMOKU" levels has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

555 Scalper EA trades with two 5 period exponential moving averages has Trailing Stop Loss &Take Profit works on 5 minute time frame major forex pairs and stocks NASDAQ.

"Gann Grid" EA draws Gann Grid lines on chart and trades with price breakthrough,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

RSI with Bollinger Bands calculated on it

Independent Chart Indicator for MT4

This strategy is the well known set & forget accompanied by the anti-martingale system. It is very useful if you are very busy in which you don't have time, you want to trade the London session while you are sleeping in USA, etc.

When MaxBand > MA of MaxBnd => SMART-ZONE HIGH When MA of MinBnd > MinBand => SMART-ZONE LOW You can set the bandperiod of Max/MIN Band, and the period and the method of M Aof Max/Min Band With different parameters, the indicator gives us the pivotal areas or the trend areas

The Wss_trader EA. People recommend setting the trading hours to 7-17, trailing to 60, metrics to 36 and to look back to 2 months.

I modified the original MACD. This resulted in such an interesting indicator.

MTF Macd X indicator.

An indicator that is to be placed on the Ichimoku allows to trade both in the trend and in the flat playing mode.

It shows the speed of the trend on the current, closest larger and the next TF.

Lot = 0.2, you can change into 0.1 or set whatever value you want

An expert advisor that makes a decision on the basis of the indistinc logic (so-called Fuzzy logic). The A. Nedosekin's (http://sedok.narod.ru/scoring_USA.html) materials were used during the development of the classificator and the resultant for ranks.

1...616263646566676869707172737475...102