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

Submit your code

A Simple Expert Advisor The EA opens a position of the specified type at the time specified in the EA parameters. The position is closed at the time specified in the appropriate parameter.

A trading system based on the account balance and the result of the last trade.

An oscillator indicator showing a difference between MA and the price.

BO

The Blast Off oscillator indicator

The ratio of bullish to bearish candlesticks over the selected period

Sine-Weighted Moving Average

A split Moving Average

An Expert Advisor based on three iMA (Moving Average, MA) indicators.

ADXm is a variation of a well known ADX indicator made to be multi timeframe capable.

A trading system based on detecting the market volatility.

Indicator EMAVFS with the timeframe selection option available in input parameters.

Expert Advisor "Previous Candle Breakdown."

APZ

Indicator APZ (Adaptive Price Zone) represents an adaptive price channel.

TEMA Jurik Volty Adaptive is using Jurik Volty for making the TEMA adaptive.

CMC

Indicator CMC (Clear Method Candles) displays colored candlesticks, based on the existing market trend. It is calculated by the "pure" method (without using any other indicators, only price) and has no configurable parameters. It is based on indicator Clear Method Histogram.

Indicator Ang_Zad_C_Hist with the timeframe selection option available in the input parameters

Two moving averages on the range of one-direction candlesticks

Hedging positions. Working on a new bar.

Stochastic - with normalized zones

JFatlCandle_Chl indicator with the timeframe selection option available in input parameters

Ahrens MACD

Zero Lag RSI indicator

An EA based on indicator iATR (Average True Range, ATR)

Hull levels

Stochastic RVI - levels

Recursive Median Oscillator

Adaptive Moving Average (AMA) smoothed RSI

RSI of AMA - floating levels

Asymmetric bands oscillator

Sharp modified MA

Bollinger bands - squeeze

The script exports summary of closed trades grouped by each currency pair to .csv file

Classic trading strategy based on RSI levels. Buys when RSI is oversold and sells when RSI is overbought. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

The EA uses large volume orders to partially close other orders, with this approach, the breakeven and profit price is much closer to the current price than if you use all orders in the terminal or their full volumes.

Sets of latin, russian characters, digits, punctuation, etc.

I want to share with you this story. When I started trading, I learnt the scalping strategy in a volatile market. I really loved scalping especially when I see the price is moving fast. However, scalping for a long period of time is exhausting to me especially in a volatile market; volatile market requires fast analysis, actions and reactions; that is why I always reach a point that I loss concentration, focus and I start making those really stupid mistakes. That is why I created this indicator that helped me to automatically identify these potential entries (based on the formation of candlesticks) instead of doing all the work myself. I know there are plenty of Metatraders who also suffer from this and that is why I would like to share this indicator with you, hopefully it will be beneficial. Do not forget to send you comments as well as rate these scripts. Happy trading!

Updated T3 floating levels

It is known that the market is mainly driven by two emotions: fear and greed. This should be seen as an attempt to implement these emotions in the form of a mathematical model.

CLS (ClearScreen) delets all object drawn on the chart with key press "C"

If you only want to execute your code blocks "only once per bar" it's important to check if there is new bar arrived or not.

1...111112113114115116117118119120121122123124125...183