The script was developed to set orders at the time, when it is impossible to do it, for example, when the market is closed.

You need to specify direction of your trades (Buy or Sell trades), lot size and settings of stop-orders in the script inputs. As soon as the market opens, the order will be set. Moreover, the script will manage the order, until it is closed. You can specify all the trailing settings at once so that the order is managed by a trailing stop after it is opened.

The script has one more feature – virtual stop-orders. If stop-loss or take-profit levels are less than a stop-level allowed by your broker, then the script will control these stop-loss and take-profit orders virtually and close them by itself by the parameters specified in the orders.

If the price gap occurs after you have installed the script on chart, then the script will try to open an order at the first available price.

You can also set a start of operation time of the script so that an order is set not at the market open, but at a specified time.

2015-12-21_12h09_29

Script inputs:

input t        O                    = L;      //торговая операция (покупка или продажа)
extern double  Lot                  = 0.1;    //лот
extern int     Stoploss             = 0,      //стоплосс, 0 - откл
               Takeprofit           = 40;     //тейкпрофит, 0 - откл
extern int     TrailingStop         = 15;     //длинна трала, если 0 то нет тралла
extern int     TrailingStart        = 0;      //минимальная прибыль установки трала, например после достижения 40 п прибыли
extern int     TrailingStep         = 1;      //шаг трала
extern string  TimeStart            = "00:01";//время выставления ордера
extern int     Magic                = 0;      //магик
Pending Order Exhibited By Hand
Pending Order Exhibited By Hand
pending_order_exhibited_by_hand.rar
2.1 KiB
1147 Downloads
Details