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 OpenAfterExecute

The description of action:
     Script watching the order. It create a system consisting of two orders by a principle "to open the order after execution of event with the other order". The orders can be from different currency pairs. If the first order was removed, the script automatically finish the work. Should be attached to the chart of currency pair where it will open a new order.

Assignment:
     Allows to automate trading process. It is useful to those, who uses opening (or installation) order after closing (or executions) other order. Start a script, set its parameters and you should not watch the first order any more, the script itself will open the second order after execution of the first. Simultaneous use together with other scripts watching the order is supposed.

Parameters:
     Ticket = the unique identifier of the first order. It can be found in a column "Order" of the tab "Trade" of the terminal. When there will be a specified event with this order, the script will open the second order.

The following five parameters define events of the first order when open the second order; value true = to trace event, value false = to not trace event.
     Event_Market = the pending order was executed.
     Event_Delete = the pending order was deleted.
     Event_Close = the order was closed by current price.
     Event_StopLoss = the order was closed by level stop-loss.
     Event_TakeProfit = the order was closed by level take-profit.

The following of seven parameters define the order that will open.
     Order_BuyDirection = type of the order; value true - buy, value false - sell.
     Order_StopLoss = the level stop-loss of the order (amount pips). If this parameter is equal 0 then position will opened without a level stop-loss.
     Order_TakeProfit = the level take-profit of the order (amount pips). If this parameter is equal 0 then position will opened without a level take-profit.
     Order_Lots = the size of lots for order.
     Order_Pending = type of execution of the order; value false - to open a position at the current price, value true - to open the pending order.
     PendingOrder_OpenPrice = the open price of the pending order. This parameter is used only if parameter Order_Pending = true.
     PendingOrder_Expiration = date of the expiration for pending order. This parameter is used only if parameter Order_Pending = true.

     Slippage = slippage (amount pips).
     MagicNumber = magic number for order.
     ArrowColor = color for arrow on chart at open price of order.
     PlaySoundAtOpen = enable/disable play sound file at open order.
     PlaySoundAtOpen_FileName = the name of sound file that will played at open order. This parameter is used only if parameter PlaySoundAtOpen = true.
     HiddenLevels = enable/disable hidden levels s/l and t/p.

     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

See also these scripts:
OneCancelOther
- the system of two pending orders: "one cancels other".
SystemTwoOrders
- the universal system of two orders: "one closes other".
OpenAtTime
- open order at the specified time.


Frequently asked questions:
How I can run 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