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

Submit your code

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.

The script creates the Fibonacci levels graphic object with a large number of settings.

This strategy is the well known set & forget accompanied by the martingale system. It is very useful if you are very busy in which you don't have time, you want to trade the London session while you are sleeping in USA, etc.

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.

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

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

For day traders, this is one of the important thing to consider in order to improve our strategy by calculating on average how much an asset moves, in which it will allow us to identify the best TIME during the day to trade when the market moves the most as well

Time Left To New Bar Watch

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

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

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

The script MinMargins.mq5 is designed to help traders quickly calculate and document the minimum amount of money required to open a position with the smallest lot size for all symbols available in the Market Watch. This data is saved to a CSV file for easy review and analysis.

This script generates a file with its source code (solution of the classical program in MQL5). It may be useful to study programming and algorithms.

The example of chart background image, created using the object of OBJ_BITMAP type.

The script has three independent functions for determining the current FORTS futures.

Simple script to randomize all colors of your chart. Just click on it and see results yourself!

The simplest script to send instant PUSH-notifications to smartphone

This script attempts to demonstrate the power of using support vector machines in solving classification style problems.

A simple script that allows you to open a long position using the current price location with a specified Risk Percentage and Reward Ratio.

The script calculates the maximum lot size that can be used to open a position using the entire free margin available on the deposit.

The script provides a synchronous scrolling for all charts opened in the client terminal.

bts

Comparing the speed of a binary or a ternary search

A script to place straddle orders around current price level to catch price spikes around announcements.

The script is assigned to a hot key for quick change of charts around in a circle.

The CSV file was written to write economic news but there was a problem that the Terminal does not distinguish lines, exactly their number when working with the CSV file. That is why I decided to share my solution of this problem.

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

The script displays the number of bullish and bearish candlesticks.

The script closes all pending orders on the current symbol.

This script opens a buy or sell order randomly having equally spaced take-profit and stop-loss levels.

12345678