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

Submit your code

This script counts the number of pending buy stop orders for each symbol and returns the value.

The OpenBuyPosition_X script is designed to buy 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.

Most traders keep losing money because they focus on money rather than planning their trades based on Percentage risk.

The script removes all objects of the type selected by the trader in input parameters from all charts of the client terminal.

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

This is a Script and Class for creating, evaluating and adding accounts to an encrypted license file for licensing an MQL EA or Indicator.

The script closes all open positions on the current account.

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 8 effective steps to build a robust day trading plan using Fibonacci retracement

This Script will Refresh All Open Charts in MT5, Usually custom symbols in MT5 needs to be Refresh sometime so this script will help to refresh all open chart at once. We can also use this Script anywhere where we need to refresh all open charts.

Generates, creates and stores passwords for your account.

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.

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

Multi Selllimit and Sellstop orders are script files that enable traders to place multiple orders with ease. These orders allow traders to enter the market at a specific price level, or at a specified number of pips away from the current market price, with stop-loss and take-profit levels. By default, the pips value is set to 400, which means the trade will be placed 400 pips away from the current market price for a 5-digit broker. Moreover, the multi Selllimit and Sellstop orders offer traders the flexibility to customize their trading strategies. Traders can set the stop-loss level to zero if they do not use stop-loss, and can choose between a target price or a pip-based entry. This level of flexibility allows traders to tailor their trading strategies to their specific needs, which can result in better trading outcomes.

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

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

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

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.

1234567