Download MetaTrader 5

Scripts: CloseAll

To add comments, please log in or register
What is the best place to find a programmer? Freelance service!
Automated-Trading
Admin
99873
Automated-Trading 2014.07.30 11:07 

CloseAll:

A collection of scripts for closing various types of orders.
  • closeall_comment - closes all orders based on a specific comment
  • closeall_loss - closes all orders that whose profit/loss goes over a specific loss threshold value
  • closeall_loss - closes all orders that whose profit/loss goes over a specific profit threshold value
  • closeall_magic - closes all orders by order magic number
  • closeall_market - closes all market orders
  • closeall_pending - closes all pendingorders
  • closeall_complete - contains all the features of the 6 scripts + option for closing for symbol

Author: Enrico Lambino

PKTrading
7
PKTrading 2014.10.09 16:10  

Hi Enrico, can you please help me install the script I do not know how.

Enrico Lambino
4323
Enrico Lambino 2014.10.10 19:17  
PKTrading:

Hi Enrico, can you please help me install the script I do not know how.

Hi,

To use the install the software on your platform, you may use either by installing directly from MetaEditor (http://www.metatrader5.com/en/metaeditor/help/interface/toolbox/toolbox_codebase), or by manually downloading the source and header files. After installation, you will need to compile the main source file to be able to use it on the platform.

I am working on a market version for this script. I will let you know as soon as it gets published by MQ. That way, users can readily get the executable installed on their platforms. 

If you have any questions or suggestions, just let me know.

Regards,

Enrico

michael sedgley
477
michael sedgley 2014.10.20 21:03  
Hi If i can use this to close an open order, will it repeat with every open order that crosses a threshold, which will be a Moving Average line. How do i adapt the script to include the moving average. You can guess i`m still learning coding so excuse my lack of knowledge !
Enrico Lambino
4323
Enrico Lambino 2014.10.21 10:21  
Hi, if you use this as a script, no, it would not close it. The scripts self-terminate once their task is complete. However, if you are going to incorporate the code to an EA, it would largely depend on how you program the expert advisor on using the functions used by this script.
Mohammad Soubra
25014
Mohammad Soubra 2016.02.29 20:32  

Thanks

good collection

*****

5 stars 

To add comments, please log in or register