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

Submit your code

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

Script to apply my template to all charts opened.

Converts .set files from MT5 format to MT4 format.

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 simplest script to send instant PUSH-notifications to smartphone

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

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

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

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

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

VR Orders History MT5 Lite - a script for downloading trading history in the CSV format.

The script exports summary of closed trades grouped by each currency pair to .csv file

It is known that the market is mainly driven by two emotions: fear and greed. This should be seen as an attempt to implement these emotions in the form of a mathematical model.

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

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

The script finds on the chart all OBJ_TREND (trendline) objects and moves the line to the specified date with the specified price shift.

The script adds vertical lines on the chart at the news events.

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

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

Simplified Script to find signals based on user parameters

Display Binance quotes in real-time mode

This script is used to modify Stop Loss and Take Profit of position.

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 purpose is to export historical rates data to format, convenient for analysis in external programs.

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

1234567