Voodoo Trading Russian Language
Main page Scripts Indicators Experts

The list of scripts:


AutoSL_TP
Close&DeleteALL
CloseALL
CloseAtTimeOrder
CloseAtTimeALLOrders
CloseBy
DeleteALL
DrawHistoryOrders
EventsOfOrders
ExitMartingale
ExportMarketInfo to CSV
FindHoles
HiddenPendingOrder
HiddenStopLoss
LimiteTimeOrder
LimiteTimeALLOrder
LotsOptimizedLoss
LotsOptimizedMargin
MoveToBE
OneCancelOther
OpenAfterExecute
OpenAtTime
OpenBUY
OpenSELL
SystemTwoOrders
TrailingStopMA
TrailingStopPeak

Script LimiteTimeALLOrders

The description of action:
     Script watching all orders. It limits the maximal duration of all open positions on time. If the position is open longer the specified restriction the script will close it at the current price. If the pending order the script waits for its execution, and only is open then watches duration of an open position. Can be attached to any chart.

Assignment:
     The script allows to automate trade. It is useful to those who limits duration of an open position on time. Start a script and you should not watch positions any more, the script will watch all opened positions. 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.
     delay = frequency of a check up status of orders. 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. For example, if restriction is specified to several hours for decrease of loading this parameter can appropriate value 60000 (time one minute).
     Global variable "Duration in Minutes" = the maximal duration of an open position in minutes; value should be more than 0.
     At the first start of a script global variable will be created. For change of its value press F3 in a window of the terminal.

The status: Free-of-charge, it is possible to download the full version.

Platform: MetaTrader 4.

To download the full version

See also these scripts:
LimiteTimeOrder
- limit duration of an open position.
CloseAtTimeALLOrders
- at the specified time, closes all open positions and deletes all pending orders.
OpenAtTime
- open order at the specified time.


Frequently asked questions:
How I can stop execution of a script ?
How I can determine that the script works ?
Why the script does not trade ?

At occurrence of questions or offers write on Serega.Lykov@gmail.com, Sergey Lykov.
I can create the scripts, indicators and advisers of "MetaTrader 4" for a payment.
The partial or full reprint is supposed only referring to a source.
The site is designed and created by Sergey Lykov, Copyright © 2008-2024.

Hosted by uCoz