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

MQL4 Source Codes of Scripts for MetaTrader 4 - 6

icon

Scripts are small applications that perform one-time actions. For example, you can delete all objects from a chart or place a set of orders for an open position. Find here hundreds of applications that can automate small analytical or trading functions.

Scripts are free to download and run in MetaTrader 4.

Submit your code
latest | best

Review the results of the work of your strategy (in history) by the hour.

This is a script to view a myfxbook's CSV statements file in MT4.

This is a "conceptual" script that uses the WinINet functions to load a HTTP page directly from mql4, without a C++ dll

Rewrites JForex csv data without the weekend candles and the seconds.

WatchDog sends an e-mail when things go wrong, an order has opened or closed, on requotes, on log errors, on server shut down... Just drag the script in a chart window.

Exports your history into a .csv file which can be read by excel or similar. You can sort your trades and see easily how much a certain EA won or lost.

These scripts will record and file a picture of the chart at the time of each trade executed with them.

This script is useful when you drop lines on chart and want to see the distance to current market price. You can drag line and see the distance in pips.

Just a simple script , that reads the HTML file a report , or detailed report , and draws a transaction from it on the chart

This script reads your unread GMail messages.

The script prints the week day and time.

Reads all available instruments and their characteristics and generates an HTML report. Positive Swaps are highlighted.

This script uses the Windows API to modify the "From:" and "To:" fields within the strategy tester according to user input. For this script the strategy tester should already be open. Tested on Windows 7 64 bit. If you are using another version of win

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

This script will set your stoploss at the fractal level of your choosing. Money management built in helping take some of the guess work out of your trading.

Creates a report in HTML about all pairs and symbols, for example how many days ago a cross moving average appeard. Pairs with a last recent cross moving average at daily timeframe have a chance for a trend reversal which may be traded.

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

The script quickly open warrants Market Execution/Instant Execution with a choice lot at risk%

Check a MetaQuotes Language 4 program for basic syntax errors like unbalanced braces, parentheses, brackets,.sin....

Check a MetaQuotes Language 4 program for basic syntax errors like unbalanced braces, parentheses, brackets,.single and double quote, and multi line comment symbol pairs.

Script closes all opened and pending positions.

TakeAllProfit

Plots price level and open positions from the IFR trading pages provided via the FXNews program offered to accounts registered with OANDA's FXTrade and FXGame platforms.

Drop Level Lines with the level value inserted above or below the line and the color changing automatically for bottom level or top level.

Draw several resistance and support lines as a "little segment line", differentiating the color of both types of line

Draws several resistance and support lines differentiating the color of both types of line by Drag and Drop a simple script.

Calculating the difference between the High and Low price to see the price range for every hour.

Script opening orders with specified Magic Number

Load history form server Set the option at 1.

This script allow you to modify the price, the Stop Loss or take profit or a pending order by just point and drop a script

Select the pending order you want to delete when you have severals pending orders on a same chart by point and drop over the price of the pending order you want to delete.

This script opens a pending sell order by just point and drop the script in the place you want.

This script opens a pending buy order by just point and drop the script in the place you want. The script will automatically place a "limit buy order" if you point and drop below actual bid. The script will automatically place a "stop buy order" if you

3 Scripts to simplify scalper operations. The scripts puts new OrderBuy, new OrderSell or CloseAllPositiveOrder.

The script make TakeProfit and StopLoss on price, where total profit for all of the opened positions will have non-negative.

automatically converts M1-data to M5/M15/M30/H1/H4/D1 in a single run

The script allows to use MetaTrader4 as netting platform. It has some advantages compared with MetaTrader5.

It saves the current expert parameters for all the experts attached to charts.

It's easy to use, just input your lotsize, stoploss and take profit values (in points) and trade.

The script shows the price level, where total profit for all of the opened positions will be non-negative (without loss level, or break-even price level).

123456789