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 scripts for MetaTrader 5 based on user ratings - 6

Submit your code

When I start learning about trading, I remember the trading pioneer Shawn Lucas (founder of Apiary-fund) saying "trading is simple, you go from bound range market to breakout market and vice versa". I looked at few charts and he was right. So I told myself, I have to always eyeball ranging market and trending market but with the help of an indicator. There are plenty for indicator that help us eyeball these ranging/trending market and they work really well, but I like using Pivot Points.

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

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

Simple script with demonstration of use of the ChartNavigate() function.

The script demonstrates the example of using the FileIsEnding() function

Time Left To New Bar Watch

Simple risk management tool.

The script is designed for closing open positions.

The script is a simple example of using the FileFindFirst(), FileFindNext() and FileFindClose() functions

This example was created to see how long it takes to reach 100 ticks. So this indicator is a seconds / "centick" (centick = 100 ticks). It helps you trade orders flow.

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

The script removes old objects of the selected type from all charts, if the time coordinates of these objects are outside of the trigger level.

An example of using HistorySelectByPosition (based on the HistoryDealGetTicket use example).

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

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.

12345678