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

Submit your code

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

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

The script is designed to place orders at the time when it is not possible, for example, when the market is closed.

The script allows you to try regular expressions in MetaTrader 4.

The 8 effective steps to build a robust day trading plan using Fibonacci retracement

Drawdowns are calculated, too.

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

Simple strategy - MM % volatility

When assigned to a hotkey, the script allows to almost instantly open limit orders with the specified risk level (in the deposit currency) and take profit (so-called braces).

Simple code to close all opened orders.

Attempt to more or less fully automate the opening of Buy and Sell orders

The script analyzes the market based on two criteria: the moving averages and the support and resistance levels.

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

This script is designed for obtaining various statistical data on the chart candlesticks on the selected timeframe.

Trade - script sending BUY order and printing selected order data to the log.

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

The script modifies all orders (market and pending) on the symbol with specified Take Profit and Stop Loss.

Change the timeframe for all opened charts simultaneously.

Basket offline chart creator script using geometric mean method.

Execute Script only one time and it will delete all pending orders i.e Limits and Stops by this script at once. No Need to run script for each order separately.

The script is designed for opening trades on binary options via the MetaTrader 4 terminal, if your broker supports this feature.

This is useful if you want to earn and work on 5 min chart . it uses bb , ma 10, ma50 , Psar, slow s, one faster s and macd along with rsi to give a perfect view of market . if you need some help let me know in my email. rinkanrohitjena@live.com only works in mq4 language . just drag and drop on a five min chart

This is one of the important thing to consider in order to improve our strategy by calculating on average how much an asset moves, in which it will allow us to identify the best days to trade when the market moves the most as well as the worst days to trade in order to prevent trading during these days.

Automatic Trailing Stop for all open positions. Attach to one chart only.

Are you tired and lost when it comes to creating an attractive market watch list ? You always see pro traders creating an attractive market watch list in which they draw support/resistance and create all possible scenario ? Well we will guide you step by step to create your own attractive market watch list for potential entries.

A toy script that demonstrate the way of displaying some text information in a chart.

Calculation of the number of lots by Anton Trefolev.

After back testing, we usually need to analyze the testing result on a new chart which we have loaded our template,in this case we need to copy the objects on the testing chart to the new chart. This script helps to save the objects into a file and show the objects on a new chart.

Set all opened charts to use auto scaling or fixed scaling simultaneously.

Let's say we have 20 open orders on one symbol and want to set takeprofit or stoploss for all of them at the same level(price) .The script selects all open orders of the symbol and can modify stoploss or takeprofit or both at the desired level (price). If the input parameters are left to zero , the stop or the takeprofit are left unchanged .

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.

This script is used to calculate lot rebate.

This script was developed in order to help us detect if a chart is actually trending or going nowhere.

Opens a BUY position with the size of a percentage of the maximum allowed size.

The script creates an ellipse on window drop.

The script places stop orders. The orders are placed for the market/pending orders specified in custom variables High (variable Hi) and Low (variable Lo).

Immediately deletes the SL/TP of all positions.

Open orders / positions in MT4 with absolute control of the risk / reward ratio, automatically calculating the lot size.

Can be used for hedging or trading breakout systems.

Execute pending order(s) according to lines in the chart you have drawn before.

123456789