A collection of scripts for the trader
On this page we will lay out for free download different useful to the trader scripts used in the terminal MT4.
The collection will be constantly updated with new scripts, hope you too can help us in its completion ![]()
A little explanation about what the script and what requires scripts in the terminal MT4:
Script is a program written in MetaQuotes Language 4 ( MQL 4) and is designed for single execution of any actions. The script can perform both analytical and trading functions. Unlike advisers, scripts are executed on demand, rather than ticks. In other words, if the adviser works almost always, the script, having worked once, on their own ends.
Scripting involves:
Create a script
To create and compile the script uses built-in editor «MetaEditor». It is part of the client terminal is a convenient development environment MQL4-programs.
Configuring Scripts
Before you can use scripts to set them up first. Common to all the parameters of the script are set in the client terminal settings. In addition, each script has its own settings.
Run the script
To run a script to attach it to the chart. Immediately after this algorithm runs the script.
Removing the script
Completion of the script is when it is removed from the chart.
Collection of scripts:
1. Script "Close all Buy orders."| Script "Close all Buy orders!" (B) Downloads: 5057 Description: Script to close all orders Buy irrespective of profit on all the charts, not only on what is running the script. |
2. Script "Close all Sell orders."
| Script "Close all Sell orders!" (B) Downloads: 3210 Description: Script to close all orders, regardless of income Sell in all graphs, not only on what is running the script. |
3. Script "Close all profitable Buy orders."
| Script "Close all profitable Buy orders!" (B) Downloads: 2759 Description: Script to close all profitable orders Buy on all the charts, not only on what is running the script. |
4. Script "Close all profitable Sell Order."
| Script "Close all profitable Sell orders!". (B) Downloads: 122 Description: Script to close all profitable Sell order on all the charts, not only on what is running the script. |
5. Script "Close all orders."
| Script "Close all orders". (B) Downloads: 3828 Description: Script to close all orders Buy and Sell for all charts, whether profitable or not, not only on what is running the script. |
6. Script "Close all profitable orders."
| Script "Close all profitable orders!" (B) Downloads: 1575 Description: This script closes the orders Buy and Sell at a profit Profit points and above in all graphs, not only on what is running the script. |
7. Script "Tral".
| Script "Thrall!" (993B) Downloads: 2424 Description: The script begins to accompany your order with the given parameters you profit and Stop Loss . |
8. Script "Delete all pending orders."
| Script "Delete all pending orders!". (B) Downloads: 1623 Description: This script deletes all pending orders. |
9. Script "Open 5 Buy orders."
| Script "Open 5 Buy orders!". (B) Downloads: 2698 Description: This script opens 5 orders to buy at a price which is available at the time the script if the script in the process of price changes, then it opens up the remaining orders when the price returns to this value. Allows you to set the size of the lots. Convenient when strong price movements! |
10. Script "Open Sell Orders 5."
| Script "Open Sell Orders 5!". (B) Downloads: 1945 Description: This script opens 5 orders at a price which is available at the time the script if the script in the process of price changes, then it opens up the remaining orders when the price returns to this value. Allows you to set the size of the lots. Convenient when strong price movements! |
11. Script "Closing of unprofitable orders."
| Script "Closing all the lost orders"! (5.33KB) Downloads: 1517 Description: Script to close loss-making orders that loss, at the time of adding the script, more or equal to the external variable Min_Loss. Value Min_Loss - set in points. Script - a multi-ie closing orders, regardless of the currency pair. |
12. Script "Closing all orders to achieve the total loss."
| Script "Closing all orders to achieve total loss"! (5.71KB) Downloads: 1485 Description: Script to close all open orders, if the total loss (including swaps) is greater than or equal to the value of the external variable General_Loss. Value General_Loss - set in the currency of the deposit . |
13. Script "Closing all orders to achieve the total profit."
| Script "Closing all orders to achieve total profit"! (5.64KB) Downloads: 1973 Description: Script to close all open orders, if the total profit (including swaps) is greater than or equal to the value of the external variable General_Profit. Value General_Profit - set in the currency of the deposit . |
14. Script "Closing all the profitable orders for the current currency pair."
| Script "Closing all orders profitable at current currency pair"! (5.12KB) Downloads: 1496 Description: Script to close all profitable earnings order which, at the time of adding the script, greater than or equal to the value of the external variable Min_Profit. Value Min_Profit - set in points. The script works with orders for the current pair (ie pair, it is running). |
15. Script "Closing of unprofitable orders at the current currency pair."
| Script "Closing of unprofitable orders at the current currency pair" (5.11KB) Downloads: 1385 Description: Script to close loss-making orders that loss, at the time of adding the script, more or equal to the external variable Min_Loss. Value Min_Loss - set in points. The script works with orders for the current pair (ie pair, it is running). |
16. Script "The opening of the transaction on time."
|
Script "The opening of the transaction on time" (4.51KB) Downloads: 1742 Description: This script is intended to open the deal on time and easy to use. If you plan ahead and know the exact transaction time of its discovery, you must drag the chart script and the character and set the options. Outside: * OpenTime = 1970.01.01 00:00 - opening time of the transaction. To quickly change this setting, select and delete the default value, and then press Enter, the variable is filled with the current date, then change the date (time); * OpenOrderType - the type of transaction. Variable can take values sell or buy. Otherwise, you will receive an error; * OpenLot = 0.1 - Lot to open the deal; * StopLoss = 0 - stop-loss; * TakeProfit = 0 - take profit; * Slippage = 1 - the maximum deviation of prices at the opening of the transaction (in points). To install the script, copy the file to a folder OpenOrderAtTime.ex4 expertsscripts. |
16. Script "Closing the deal on time."
| Script "Closing of the transaction on time" (3.18KB) Downloads: 1526 Description: This script closes the deal with this ticket at a given time. If the deal is a pending order, it will be removed. Outside: * Ticket = 0 - open a ticket orders; * CloseTime = 1970.01.01 00:00 - opening time of the transaction. To quickly change this setting, select and delete the default value, and then press Enter, the variable is filled with the current date, then change the date (time). |
17. Script "Flips all available positions."
| Script "Flips all the positions". (580B) Downloads: 1509 Description: Will open in a losing trade position, ie if there is confidence in the continuation of market movement, at the level of stop-loss can be "reverse" position. |
18. Script "Putting the two opposite stop orders."
| Script "Putting the two opposite stop orders". (1.28KB) Downloads: 1861 Description: Opens two opposite positions on the Buy and Sell, respectively. |
19. Script "Level bezubytka."
| Script "Level bezubytka". (604B) Downloads: 1641 Description: This script shows the level of bezubytka. |
20. Expert "NachalniG."
| Download expert "NachalniG" (10.45KB) Downloads: 349 Description: Expert "NachalniG" available for free download for registered users only! |
21. Script "Delete all pending orders in your chosen currency pair."
| Script "Delete all pending orders in your chosen currency pair!" (B) Downloads: 100 Description: This script removes all pending orders in your chosen currency pair, ie if it runs on a chart of USD / JPY then it will remove all pending orders for this pair. |
22. Indicator «My_Signal_Time».
| Download My_Signal_Time indicator (10.77KB) Downloads: 412 Description: Sorry, the download is only available to registered users. |
23. Indicator «My_Signal_Price».
| Download My_Signal_Price indicator (6.67KB) Downloads: 333 Description: Sorry, the indicator is available for download for registered users only! |
Download all files in one archive! ()
Downloads: 2022
Description: Available downloading all the files in one archive!as of 19.01.2011 year.
WARNING: The Administration is not responsible for the consequences associated with incorrect use of data scripts!
RECOMMENDED WORK STUDY Each script on a demo account!
WARNING! The emergence of new scripts, advisors and indicators are now published in " Workshop MQL "
Share with your friends on social networks
Views: 26.503














For some reason Scripts "Opening of the transaction on time" and "closing the deal on time" is not skachivayutsya.Drugie downloaded, and when you click on this link to download a page on with some krakozyabrami?
When you open krakozyablikov, click in the browser "File" - "Save As"
Nuzhet script or counselor that can move the level of take-profit open transaction at certain points balance
As I understand it in this case, the profit target will never work (only possible if there is any sudden movements or EHS s), the order will be closed only by trawl, so it's easier to put obviously a big take-profit or no place.
Feel right, at least does not modify. Anyway, thank you!
Thank you!
And here is the really useful stuff!
Help me find a script to buy sat limit limit
More specific you can?
here is a good script but I need to buy and got a limit.
Set2StopOrders
all normal is?
Set2StopOrders-great script!, Thank you))), and can write this, ie the same but in order to trawl was modified and once those vystovlyal by 5 orders in each direction on the second adjustable distance from each other, they hold her )))))))))))........ .
By the way, here are laid out not only what I wrote, that is, Here are the tools that are written by other authors.
Good afternoon.
Is there a script like this:
Exhibited 2 pending orders (Buy stop and Sell stop) at the same time. Need a script that when you open a pending order, while another was closed pending order and the script to work regardless of whether or not Internet enabled.
Thank you.
Without an Internet connection in the terminal there is no tick, and therefore work without the Internet would not be a script.
Set2StopOrders - but he only expose otlozhki all.