Script CloseAtTimeOrder
The description of actions:
Script watching the order. Closes an open position (or deletes the pending order) at the specified time. If the order was closed or deleted, the script automatically finished the work. Can be attached to any chart.
Assignment:
The script allows to automate trade. It is useful to those who closes positions at certain time. Open a position or pending order, start a script and you should not watch time any more. Simultaneous use together with other scripts watching the order is supposed.
Parameters:
ticket = the unique identifier of the order. It can be found in a column "Order" of the tab "Trade" of the terminal.
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 order should be closed (or deleted); 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.
See also these scripts:
- at the specified time, closes all open positions and deletes all pending orders.
- open order at the specified time.
- limit duration of an open position.
Frequently asked questions:
How I can run a script ?
How I can determine that the script works ?
Why the script does not trade ?
|