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

Submit your code

This script closes all windows of selected symbol or all windows of any symbol.

The script closes all positions of the current symbol.

Counting the number of series of bullish and bearish bars. Displaying the result as a chart. Saving the screenshot of the resulting chart. The script uses the CGraphic class.

The script exports historical data to HST format for its use in MetaTrader 4 client terminal. This file can be imported in MetaTrader 4 as historical data or you can open it as offline chart.

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

The scripts places multiple pending orders lower than the current price.

I used to suffer from unnecessary losses and/or cutting my profit short since I wasn't fast enough to modify my SL and/or TP. That is why I've wrote these scripts that will allow me to react fast when I must modify my Sl and/or TP especially when I have many open and/or pending trades. I know there are plenty of Metatraders who also suffer from this and that is why I would like to share these scripts with you, hopefully it will be beneficial. Do not forget to send you comments as well as rate these scripts. Happy trading!

This script will change the SL and TP of all open trades of the symbol to the price where the script is dropped off.

When the subject changes, it notifies and updates its observers, who know nothing about each other.

Script draws the Axel Rudolph levels

A script for placing two Buy Stop Limit and Sell Stop Limit orders at an equal distance.

Easier visual analysis of graphical objects created by the strategy tester.

This script opens randomly selected charts and applies user-defined template.

The script for manual trade: when achieving the limit price the script sets stop order and logs out

MPC is a script which measures (searches) the most frequently occurring candlesticks

How many buffers does your indicator use? What's it calculating? Is it efficient? If you want to know what's going on behind the scenes, you'll now be able to.

The script builds the Fibonacci Levels graphical object with the option of selecting the number of its segments

The script for searching the maximum, minimum and average values of candlestick size

When you drag this script onto the chart, it will calculate the price where you drop the script and use this price to figure out if a Buy Stop or Buy Limit pending order should be placed.

Symbol for downloading the history data for the current symbol with indication of progress.

The script gets contents from the Windows Clipboard.

The 'History Deals and Orders' script shows absolutely all properties of deals and orders from the trading history over a given time interval.

Simple script to see your current Profit Losses in Pips.

A simple script for switching basic timeframes. It allows to change a chart period using hot keys.

A script for placing two Buy and Sell Stop orders at an equal distance.

The script saves current chart settings to a template with the specified name.

HTML file converter for the economic calendar. The script parses a page downloaded from http://www.investing.com/economic-calendar, and forms a CSV file with the list of news.

This script allows a user to find out instance_id of the running MetaTrader instance/installation.

This is MQL5 project packer: assemble all source and resource files from dependencies into a single ZIP.

The script illustrates control of chart properties using the classes from the Standard Library (CChart).

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.

The script scans through the current chart for any available chart objects, Counts and delete them accordingly, And log the the names of the objects on the chart respectively.

This script exports indicator's values to CSV file.

Empirical mode decomposition of the current symbol.

When you drag this script onto the chart, it will calculate the price where you drop the script and use this price to figure out if a Sell Stop or Sell Limit pending order should be placed.

A script for placing a BuyStop Limit order.

A script for placing a SellStop Limit order.

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

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

This script helps to save the objects into a file and show the objects on a new chart.

12345678