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

Submit your code

Scripts to modify stop loss in buy or sell opened orders on current chart.

Find the current winning / losing streak in MT4 based on filters

This script will place hedge trade of unbalanced type in MT4.

Close all multi currency open orders and cancel pending orders according to various scenarios. Slippage for open orders is calculated for each currency. Choose only one scenario per visit, the script processes the first menu item selected.

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

Multi buylimit and buystop orders are script files that enable traders to place multiple orders with ease. With just one command, traders can place multiple buylimit or buystop orders using either a target price or pips. 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. This setup includes stop-loss and take-profit levels, which can be adjusted based on the trader's preferences. Notably, these orders come with a level of flexibility that enables traders to fine-tune their trading strategies. For instance, a trader can opt to set the stop-loss level to zero if they do not use stop-loss.

Check out any MQL5 closed positions on a chart.

The script closes all charts for the specified symbol.

A set of scripts for quick drawing the Elliott waves.

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

This set of scripts has been designed to scale-in your trades as price action runs in your favor. This will maximize profits due to proper pyramiding, decrease the impact of unprofitable trading decisions and in general, make your life easier.

The script is designed for downloading history on all known currency pairs, metals, indices, CFD and for controlling "holes" in history.

The amplitude of price movement statistics in a text file. Quickly and comfortably.

The script sends SELL STOP pending order with expiration data and printing number of ticket.

Three scripts for quick preparation and manual placing of trade orders.

Unloading quotes from the selected period into an external file.

The script draws a set of up/down levels that are at a certain-percentage distance from the price of the bar selected by user.

The script moves the StopLoss at the Distance from the market.

A script for uploading the history by all known currency pairs, metals, indexes, CFD's and for controlling the "hole" in the history.

The script for simultaneous placing of several orders by different symbols.

Script for calculation average daily range for last agoYear-"calendar" years, last agoMonth - calendar months, ......

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

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

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.

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

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

Get all the Account and MarketInfo details for a currency pair at a glance.

This script plots MQL signal history on a MetaTrader 4 chart.

This script scans for open orders and sets a fixed stop loss and take profit to all of the relevant.

Example of working with objects: creating object, changing properties, redrawing the chart.

Simple csv-to-fxt Converter

Clear All StopLoss n TakeProfit on All Orders.

Use this script to make own nonstandard timeframes.

The script outputs the information on symbols to a CSV file: swaps, spreads, stops, contracts.

A set of scripts that are intended for the automation of some routine operations in the terminal.

An example of automatic running of the script when the timeframe or symbol is changed.

Drag & Drop the script at chart on point where StopLoss should stay. Script will compare desired StopLoss with the current price and determine the type of the order - Buy or Sell. The next step is calculating the volume according Free Margin and the Risk

Script closes all opened and pending positions.

All open trades must be of same symbol and type, e.g. all GBPUSD and all BUY. This script will close out your position using one large trade to hedge your position then using CloseBy() function to close all trades against the one large trade until all trades are closed. There can be a maximum of 500 open trades.

This script will plot Fibonacci golden spiral on the chart.

123456789