Watch how to download trading robots for free
Find us on Twitter!
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

The script is developed for reversing open positions with fixed Stop Loss and Take Profit values in points from the current price and the volume depending on the reversed position.

This indi will draw OBJ_ARROW_BUY/OBJ_ARROW_SELL when find signals on Arrow Indi Buffers.

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

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

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 script highlights Forex sessions for Sydney, Tokyo, London and New York with colored rectangles, according to the user time definitions.

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.

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.

These are some #define statements that are useful to perform operations in your EA. You only need to assign the name of your variables at the beginning of the file, and then let the other #define statements do the work. In order to use this file, add #include <DEFINE_statements.mqh> to the first line in your EA file.

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.

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.

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.

12345678