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

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.

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.

Get commission of an active position in mt5 , its easy to use function.

This script counts the number of pending buy stop orders for each symbol and returns the value.

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.

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.

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).

Script to apply my template to all charts opened.

When run on the price chart, the script modifies stop loss or take profit of all open orders for the current instrument.

Since Terminal build 344 added display of economic calendar news using special graphical objects (OBJ_EVENT). A script that outputs as a demonstration of the Economic Calendar with current economic data, the date of the last major (Pink) event.

The script imitates the One Cancel Other function for orders. When one order is triggered, the others are deleted.

The script converts the time, represented as datetime variable into the year, month, day, hour, minutes and seconds.

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

Generates, creates and stores passwords for your account.

The script calculates the number of lots to trade using the specified percentage of risk funds.

Modified scripts to change Charts(next,previous) and Timeframes(higher,lower) of all charts quickly by hotkeys.

A script to close all market positions and/or pending orders.

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.

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

12345678