Script HiddenPendingOrder
The description of actions:
The script to open an order when price reach the specified value. Should be attached to the chart of currency pair at that will be opened order.
Assignment:
The script allows to automate trade. It is useful to those, who uses pending orders, but don't want that broker know an open-price of order. Start a script, set parameters of the order and you should not watch price any more.
Parameters:
The following a six parameters define the opened order.
Order_BuyDirection = type of the order; value true - buy, value false - sell.
Order_OpenPrice = the open price of the pending order.
Order_StopLoss = the level stop-loss of the order (in 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 (in 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_Expiration = date of the expiration for pending order (time of broker).
Slippage = slippage (in 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.
ShowLineAtOpenPrice = enable/disable drawing horizontal line at open-price of order. Then you can modify open-price of order if move line by mouse.
ShowLineAtOpenPrice_Color = color for horizontal line that show an open-price of order. This parameter is used only if parameter ShowLineAtOpenPrice = true.
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:
![OpenAtTime](images/ot1.gif)
- open order at the specified time.
![LimiteTimeOrder](images/lt1.gif)
- limit duration of an open position.
![MoveToBE](images/mtb1.gif)
- when it will be achieved specified profit, will move a level stoploss to opening price.
Frequently asked questions:
How I can run a script ?
How I can determine that the script works ?
Why the script does not trade ?
|