Script CloseAtTimeALLOrders
The description of actions:
Script watching all orders. Closes all open positions and deletes all pending orders at the specified time. Can be attached to any chart.
Assignment:
The script allows to automate trade. It is useful to those who stops trading activity in certain time. Start a script and you should not watch time any more, at the specified time the script closes all orders. Simultaneous use together with other scripts watching the order is supposed.
Parameters:
always_works = define a mode of work a script. Value true - a script is always work and finished only by the user manually, value false - if is not present open positions or the pending orders the script automatically finishes work.
used_local_time = define timezone; true - is use local time (time "Windows"), false - is use time of the terminal.
time_of_close = the time, when the all orders should be closed; here should be a string such as "hour:minutes".
delay = frequency of a check up current time. It is set in milliseconds, for example value 5000 means periodicity of 5 seconds. It is necessary to remember, that too often periodicity can brake the terminal.
The status: Free-of-charge, it is possible to download the full version.
Platform: MetaTrader 4.
![To download the full version](images/edl1.gif)
See also these scripts:
![CloseAtTimeOrder](images/cto1.gif)
- at the specified time, closes open position or deletes pending order.
![OpenAtTime](images/ot1.gif)
- open order at the specified time.
![LimiteTimeALLOrder](images/lta1.gif)
- limit duration of all open positions.
Frequently asked questions:
How I can run a script ?
How I can determine that the script works ?
Why the script does not trade ?
|