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 4 based on user ratings - 5

Submit your code

Graphic displaying of the statement, carring of a data from the *.htm table to the graph, for the convenience of analysis.

Quickly close open orders by dragging and dropping this expert on chart. Will ask for confirmation to close each order within 2 pips of the drop.

with some shortcuts i can operate with multiple objects very quickly, this script change the size, the color of line

This script creates a .CSV file of your order history so you can import it into Excel and analyse it using the calculated heat map slots and other calculated values. All trading attributes are extracted from the history and output to the .CSV file. Updated version 1.03 (about 27KB) has NetProfit, OpenDay, OpenHour, OpenSlot, CloseDay, CloseHour, CloseSlot, DurationMinutes, PotentialWinPips, PotentialLossPips and others. The file is tab delimited for easier conversion from text to columns in Excel. Times are server time. Handles 4 and 5 digit brokers and 2/3 and 4/5 point value pairs, e.g. JPY correctly.

This script is used to convert history data from M1 to M5, M15, M30, H1, H3, D1, W1, MN.

This script removes all instruments with spread higher than the specified maximum requested and it also removes all non-trade enabled instruments from Market Watch, which allows you to concentrate on items you may want to trade without all the clutter.

A script for visualization of trades on the chart. It is useful when you change the account/PC.

Drawing all results from a strategy tester report file into a chart.

Buy Sell Customized With RefreshRates and Lots Manager

This script lists current open orders with profit.

A DLL to manage and exchange data between MT4 and MS Excel. OLE is used. The description of the DLL functions is given in the attached example. The example is a script that sends quotes to Excel and builds the diagram of daily price changes. At exiting,

A script for valuation of trades history that is uploaded to the client terminal. The valuation is performed in points.

Placing two pending stop orders for breaking through some trade range, for example, before the important news are published.

Script interception of pressing keys or mouse buttons in the windows of MetaTrader 4. It can be helpful in writing controls.

Script opening orders with specified Magic Number

Scripts of pending, market orders, placing and removing stops.

Easy example working with object: object creation, modification properties, redraw chart.

The script demonstrates a simple and quick way to calculate the Euler number.

A collection of predefined Scripts immediately available for use without having to key-in. Step-by-step instruction how to make your own Scripts from Scripts Collection.

The script performs the calculation of the average volatility of the symbol on the specified interval.

This script provides quick work with a large number of pending orders in the market and contains functions for placing, changing, and deleting of orders within the your price range.

The Lines_Create script creates 2 horizontal lines on the chart with the names UP_LEVEL and DOWN_LEVEL. The Lines_Delete deletes the lines created by the Lines_Create script from the chart. The Lines_RASST script is an addition to the Lines_Create script.

A step-by-step passing of historical data for manual testing of trading.

The script allows to change the color of selected objects to specified one.

The script recognizes and shows peaks and valleys of certain period.

The script swaps out all the symbols available in the Market Watch window into a csv file.

Uploading of history of all symbols from the Market Watch window by all TF. The recording to a file of names and trading condtions by all symbols from the Market Watch window.

2 SCRIPS TO AUTOMATE OPENING MULTIPLE POSITIONS SIMULTAINIOUSLY

English version of AllAmplitude.mq4 The original script was posted here: http://codebase.mql4.com/3852 . The output file will be stored in the MetaTrader 4\experts\files\ directory. The file name contains following information: "Symbol_Period---da

You can send pending order on closed market between StartTime and EndTime at specific minumum and maximum price.

The script closes all opened Buy and Sell positions in the active window.

A simple script to close multiple market orders.

The script tests the computer in 45 performance tests. It is possible to compare the performance of VPS/VDS servers.

Drop the script on your chart to send a screenshot to twitpic with or without a message

popup tip: any bar's local time, with help of a verticle line.

Convert historical data from M1 to M1, M5, M15, M30, H1, H4, D1, W1 and MN, specifying the start date.

This tiny script visually demonstrates the identity of two common Moving Averages

The indicator of trading signals based on the divergence of the RSI and CCI values

Script that closes orders and (or) deletes pending orders.

Close - script closing first market order if it is first in the list.

123456789