A collection of scripts for the trader
On this page we will upload for free download in a variety of useful scripts used for the trader at the terminal MT4.
The collection will be continually updated with new scripts, hope you too will help us in its completion ![]()
A little explanation about what the script and what do you want the scripts in the terminal MT4:
Script is a program written in MetaQuotes Language 4 (MQL 4) and is designed for single execution of any action. The script can perform both analytical and trading functions. In contrast to the councilors, the 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 exits.
Working with scripts includes:
Creating 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 of MQL4-programs.
Setup scripts
Before you can use scripts to set them up. Common to all the parameters of the script are set in the terminal settings. In addition, each script has its own settings.
Run the script
To run a script to attach it to the chart. Immediately thereafter, the algorithm runs the script.
Removing the script
Completion of the script is when it is removed from the chart.
Collection of scripts:
A. The script "Close all Buy orders."| The script "Close all Buy orders!" (B) Downloads: 5308 Description: Script close all orders Buy irrespective of the profit on all the charts, not only on what is running the script. |
Two. The script "Close all Sell orders."
| The script "Close all Sell orders!" (B) Downloads: 3295 Description: This script closes all the Sell order, regardless of profit on all the charts, not only on what is running the script. |
Three. The script "Close all profitable Buy orders."
| The script "Close all profitable orders Buy!" (B) Downloads: 2836 Description: This script will close all profitable Buy order on all the charts, not only on what is running the script. |
4. The script "Close all profitable Sell Order."
| The script "Close all profitable Sell orders!". (B) Downloads: 127 Description: This script will close all profitable Sell order on all the charts, not only on what is running the script. |
Five. The script "Close all orders."
| The script "Close all orders". (B) Downloads: 4136 Description: Script close all orders Buy and Sell for all charts, whether they are profitable or not, not only on what is running the script. |
6. The script "Close all profitable orders."
| The script "Close all profitable orders!" (B) Downloads: 1674 Description: This script closes the orders Buy and Sell items with a profit of Profit and above all on the charts, not only on what is running the script. |
7. The script "Tral".
| Script "Thrall!" (993B) Downloads: 2603 Description: The script begins to accompany your order with the given parameters of your profits and Stop Loss. |
Eight. The script "Delete all pending orders."
| The script "Delete all pending orders!". (B) Downloads: 1731 Description: This script deletes all pending orders. |
9. The script "Open 5 Buy orders."
|
Script "Open 5 Buy orders!". (B) Downloads: 2865 Description: This script opens a five warrants to purchase at a price which is available at the time the script if the script is in the process of price changes, 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. The script "Open Sell Orders 5."
| The script "Open Sell Orders 5!". (B) Downloads: 2065 Description: This script opens a five warrants at a price which is available at the time the script if the script is in the process of price changes, 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 of unprofitable orders"! (5.33KB) Downloads: 1587 Description: This script will close all unprofitable loss orders which, at the time of adding the script, is greater than or equal to the value of the external variable Min_Loss. The value of Min_Loss - set out in paragraphs. 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 a total loss"! (5.71KB) Downloads: 1572 Description: This script will close all open orders, if the total loss (including swaps) is greater than or equal to the external variable General_Loss. The value of 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 a total profit"! (5.64KB) Downloads: 2130 Description: This script will close all open orders, if the total profit (including swaps) is greater than or equal to the external variable General_Profit. The value of General_Profit - set in the currency of the deposit. |
14. Script "Closing all orders of profitable at current currency pair."
| Script "Closing all orders of profitable at current currency pair"! (5.12KB) Downloads: 1577 Description: Script close all orders lucrative profits of which, at the time of adding the script, is greater than or equal to the external variable Min_Profit. The value of Min_Profit - set out in paragraphs. 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: 1481 Description: This script will close all unprofitable loss orders which, at the time of adding the script, is greater than or equal to the value of the external variable Min_Loss. The value of Min_Loss - set out in paragraphs. 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: 1866 Description: This script is designed to open the transaction on time and easy to use. If you have pre-planned transaction and know the exact time of its discovery, you need to drag the script to the chart with the correct symbol and set the parameters. External options: * OpenTime = 1970.01.01 00:00 - the opening of the transaction. To quickly change this setting, select and delete the default value, and then press Enter, the value of the current date is filled, then change the date (time); * OpenOrderType - type of transaction. The variable can be set to sell or buy. Otherwise, you will receive an error; * OpenLot = 0.1 - item for the opening of the transaction; * StopLoss = 0 - stop-loss; * TakeProfit = 0 - take profit; * Slippage = 1 - the maximum deviation of the price at the opening of the transaction (in points). To install the script, copy the file to a folder OpenOrderAtTime.ex4 expertsscripts. |
16. Script "Closing time".
|
Script "Closing time" (3.18KB) Downloads: 1603 Description: This script closes the deal with this ticket at a given time. If the transaction is pending order, it will be removed. External options: * Ticket = 0 - open a ticket orders; * CloseTime = 1970.01.01 00:00 - the opening of the transaction. To quickly change this setting, select and delete the default value, and then press Enter, the value of the current date is filled, then change the date (time). |
17. The script "Flips all available positions."
| The script "Flips all the positions". (580B) Downloads: 1576 Description: Will open a position when loss-making trade, ie if there is confidence in the continuation of market movement, then at the stop-loss can be "reverse" position. |
18. Script "Putting the two opposite stop orders."
| Script "Putting the two opposite stop orders". (1.28KB) Downloads: 1989 Description: Opens two opposite positions on the Buy and Sell, respectively. |
19. The script "bezubytka level."
| Script "The level of bezubytka". (604B) Downloads: 1736 Description: This script shows the level of bezubytka. |
20. Expert "NachalniG."
| Download expert "NachalniG" (10.45KB) Downloads: 369 Description: Expert "NachalniG" is available for free download for registered users only! |
21. The script "Delete all pending orders in your chosen currency pair."
| The script "Delete all pending orders in your chosen currency pair!" (B) Downloads: 104 Description: This script deletes all pending orders in your chosen currency pair, ie If it runs on a chart of USD / JPY then it will delete all pending orders for this pair. |
22. Indicator «My_Signal_Time».
| Download My_Signal_Time indicator (10.77KB) Downloads: 439 Description: Sorry, the download is only available to registered users. |
23. Indicator «My_Signal_Price».
| Download My_Signal_Price indicator (6.67KB) Downloads: 349 Description: Sorry, the indicator is available for download for registered users only! |
24. The script "Translation of all orders to breakeven."
Download all files in one archive! ()
Downloads: 2207
Description: Available downloading all the files in one archive!as of 19.01.2011 year.
| A script to convert all the orders to breakeven (B) Downloads: 578 Description: This script translates to breakeven all open orders. |
WARNING: The site administration is not responsible for any consequences related to misuse of these scripts!
RECOMMENDED WORK STUDY Each script on a demo account!
WARNING! The emergence of new scripts, advisors and indicators are now being published in the " Workshop MQL "
Share in the social. networks
Views: 30.773








For some reason the script name "The opening of the transaction on time" and "Closing time" is not skachivayutsya.Drugie downloaded, and when you click on this link to download to a page with some krakozyabrami?
When you open krakozyablikov, click in the browser "File" - "Save As"
Nuzhet script or advisor that can move the level of take-profit open trade balance at a certain point
As I understand it in this case, take-profit is never going to work (only possible with a sudden movement or GEO-s), the order will only be closed by trawl, so it's easier to put obviously a big take-profit or no bet.
I feel right at least to modify the DC does not. Anyway, thank you!
Thank you!
And here is the really useful stuff!
Help me find a script to buy sat Limit Limit
Can be more specific?
that's a good script but I need to buy, and sat down limit.
Set2StopOrders
all is normal?
Set2StopOrders-a great script!, Thank you))), and can write this, that is, the same but in order to trawl was modified and once they vystovlyal 5 orders in each direction on the adjustable-th distance from each other, they hold it))))))))))) ........ .
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:
Exhibits 2 pending orders (Buy stop and Sell stop) simultaneously. We need a script that when you open a pending order, while the other was closed pending order, and that the script worked, regardless of whether or not Internet enabled.
Thank you.
Without an Internet connection in the terminal does not tick, and therefore work without the Internet would not be a script.
Set2StopOrders - but he only put up otlozhki all.