Watch how to download trading robots for free
Find us on Facebook!
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 scripts for MetaTrader 5 based on user ratings - 7

Submit your code

This script displays useful information.

This script is to get the last deal history data, for example : profit, deal type, etc, and put the Comment on the chart.

The OpenSellPosition_X script is created to sell at fixed values of Stop Loss and Take Profit in points from the current price. Position volume is determined on the basis of the level of losses.

I find the lot calculation tedious so I just use this script and tell it the dollar amount to use. It then does the rest. This works for any currency.

Script for checking the LeadLagRelationship indicator (https://www.mql5.com/en/market/product/26229)

Trade Transmitter will Transmit Trades from MT5 Demo or Real accounts using CSV Files. Each trade request created manually or by other EAs on MT5 terminal will be automatically transmitted. Positions and orders summaries are also transmitted, so the receiver on the other platform can catch up, in case it misses any of the trade request transmissions. This Code will save your time if you are working on a bridge to copy trades between MT5 and any other platform.

The script removes from the chart a comment located in the upper left corner.

This is an informative script displaying data on the current trading account in the chart window.

A script for automatically drawing the levels of the intraday High/Low on the FORTS trading session. There is also an option to draw the levels of the night High/Low prices (if the latter ones are beyond the intraday ones)

The script calculates the average and weighted volatility of a symbol.

Placing pending orders with no need to calculate lot size. Script calculates the proper lot size and opens the pending order(s) for you.

The function can be useful to not overload the server with trade requests at times when the market is closed for trading

The script is developed for placing a BuyStop order with fixed trigger levels, Stop Loss and Take Profit levels in points from the current price.

These scripts are designed to buy with fixed values of Stop Loss and Take Profit in points from the current price

Convert MqlTick-s into minified structures to free RAM or store tick arrays in a compact files.

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

An example of counting the number of objects in the chart window.

This script highlights Forex sessions for Sydney, Tokyo, London and New York with colored rectangles, according to the user time definitions.

Calculation of slippages of the performed deals in account currency.

This script downloads bars and ticks from EURUSD as required for the correct execution of Kiss on Billions on EURUSD from Saeid Irani.

You learn how to subtract time, insert it manually in a string format, tick counter and see output on comment function.

The script is developed for selling with fixed Stop Loss and Take Profit values in points from the current price.

For day traders. 2 highly important indicators to turn strategies into extreme winning ones. The Win/Loss ratio and the Reward/Risk ratio will allow us to identify the best times and days our strategy works the best

The breakout strength meter is a trading tool that is used to identify which currencies are the strongest to breakout, and which currencies are the weakest to breakout

This script reads all opened position and calculates their exposure for each currency.

Simple code for Candle Cross above or below Conditions..

It is taken into account that there are 30 days in a month, 365 days in a year The script demonstrates the counter of time until the beginning of the new year

A simple include file to print out the values and names of variables.

A way of sub-classing more functional objects, dynamically.

Have you ever wondered how to safely return automatic objects with functions without memory leaks?

Calculates the average range of prices (in points) for intraday periods.

Trade with no need to calculate lot size! This script calculates the proper lot size and opens the position(s) for you.

I find the lot calculation tedious so I just use this script and tell it the dollar amount to use. It then does the rest. This works for any currency.

This script draws Fibonacci Expansion OBJ_EXPANSION with options to add your own custom values

The currency strength meter is a trading tool that is used to identify trending and consolidating markets based on the percentage rate of change in price from one period to the next.

Display the actual stored value of a floating-point number (float or double type), with very high precision up to 55 decimal digits. This helps to debug exact value of floating-point numbers for other MQL5 programs.

This is a simple script that Closes all Orders and Positions available

This script opens order with maximal amount of volume available.

Print info about a closed position by its position ticket or identifier.

Building good trading habits by seeing things in terms of percentage not in terms of money.

12345678