• Overview
  • Reviews (1)
  • Comments (6)
  • What's new

Time to trade

The EA places pending orders at N-distance from a current price in prescribed time and weekday. You can choose a type of pending orders in the EA's settings: STOP or LIMIT. Orders are opened according to server time. An hour and a minute of opening must be specified. Set liftime of pending orders (expiration). Orders are removed upon the expiration of this time.

Pending orders can be modified by time upon expiration of which orders are moved at N-distance from the current time again retaining expiration time (lifetime of pending orders). This can be useful if you trade on news. It allows you to enter a position at a more favorable price and avoid false signals. Pending order modification timer is set in minutes. If TimerModifyOrder = 0, pending order modification is disabled.

There are functions of pending order removal. If CloseAfterOpen = true, an orders is removed if its opposite order triggers. If the EA works on several currency pairs with the same magic number and CloseAllAfterOpen = true, all unengaged pending orders are removed on all currency pairs of the EA, and further trading is performed on the currency pair of the opened position. If there are different magic numbers, the EA works on each currency pair separately. If an order triggers on one currency pair, pending orders of another pair are not removed.

Trades are executed by the market (Market Execution) - TakeProfit and StopLoss are placed after an order is executed and modified after a pending order triggers according the EA's settings.


  1. Ability to select a pending order type;
  2. Ability to modify orders by time according to a new price;
  3. Several types of trailing stop and moving trades to breakeven;
  4. Ability to remove unused orders for all symbols;
  5. Ability to set time and weekday for trading;


  • HourStarting - hour to place pending orders;
  • MinuteStarting - minutes to place pending orders;
  • TypeOrder - type of pending order placement;
  • DistanceOrder - indent from the price to place pending orders;
  • BalanceLot - calculating trading lot on the basis of the balance;
  • ManualLot - trading lot if BalanceLot = 0;
  • TakeProfit - take profit in points;
  • StopLoss - stop loss in points;
  • TimerModifyOrder - pending order modification in minutes;
  • ExpirationOrder - pending order lifetime in minutes;
  • Magic - magic number;
  • CloseAfterOpen - close opposite pending order if one of them triggers;
  • CloseAllAfterOpen - close all pending orders by symbols if one of them triggers;
  • Monday - enables trading on Mondays;
  • Tuesday - enables trading on Tuesdays;
  • Wednesday - enables trading on Wednesdays;
  • Thursday - enables trading on Thursdays;
  • Friday - enables trading on Fridays;
  • MaxAttempts - maximum number of attempts to open an order;
  • DelaySeconds - pause in seconds between attempts to open an order;
  • Slippage - maximum price slippage;
  • Breakeven - enable/disable breakeven function;
  • StartBreakeven - number of points to start breakeven;
  • StepBreakeven - number of points to move a position to breakeven;
  • Trailing - enable/disable trailing stop by points;
  • TrailingStart - the minimum number of points passed from the order open price for the trailing;
  • TrailingStop - the number of points to start trailing stop;
  • TrailingStep - the step of the trailing stop;
  • TrailingHiLow - enable/disable trailing stop by Hi-Low;
  • TimeFrame - timeframe to search for low/high price;
  • BarCount - number of bars to search for extrema;
  • IndentHiLow – indent from Hi-Low price to place stop loss.
  • ShowInfo - show/hide details;
  • TextColor - displayed data color.
Reviews 1
Виталий Олексюк
Виталий Олексюк 2015.05.15 12:32 

Давно искал такого помощника в торговле. Автору респект. Владимир, спасибо! Покупаю уже не первого вашего советника!

Виталий Олексюк
Виталий Олексюк 2015.05.15 12:32 

Давно искал такого помощника в торговле. Автору респект. Владимир, спасибо! Покупаю уже не первого вашего советника!

Version 1.3 2015.06.19
Fixed a bug with the modification of orders by timer.
Version 1.2 2015.05.27
Changed the function for opening orders by time. Added additional checks of execution, expiration, and order modification. Changed the function for calculating a trading lot based on the balance/free margin.
Version 1.1 2015.05.20
Added the ability to open a Buy or a Sell order at specified time and day of a week. Selection of the order type in the TypeOrder parameter.