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

Submit your code

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.

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

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

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.

This script exports indicator's values to CSV file.

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.

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

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

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 saves current chart settings to a template with the specified name.

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.

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!

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.

This strategy is the well known set & forget accompanied by the anti-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.

The code defines a function "RangeHighs" that calculates the highest price of a financial instrument within a specified time range (start and end time). The time range is defined by 4 input parameters (hour and minute of start and end time). The highest price is found using the "CopyHigh" function and stored in an array, from which the maximum value is returned.

VPS Trailing Stop Service

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

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

Searching Nearest Bar - searching for the nearest bar.

Opens random positions on marketwatch symbols.

The script removes from the current chart all objects of the user selected type

Export history of deals from MT5 retail hedging account selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software.

The script calculates Stop Out price (at this price position will be closed by broker) of the opened position and the price, at which Free Margin became negative (LockOut price).

1234567