• 概述
  • 评论
  • 评论

OpenAtTime

The OpenAtTime tool opens orders at the required time. Position parameters and time are set in the settings.


Features

  1. Opening both market and pending orders (type and distance are set by the user). The number of opened orders is defined by the user.
  2. Position opening at a specified time every day according to the select days of the week. Order type is set separately for each day of the week.
  3. An option of closing previous orders when a new one is placed - OCO (Order Cancel Order) - mode.
  4. Various option: the fixed volume of orders or volume calculation by the money management function.
  5. Operation restriction based on the maximum size of spread.
  6. Auto-closing of orders at the required amount of profit/loss.


Input Parameters

  • OpenTime - position opening time. A string in the format "hh:mm:ss" (24 hour format).
  • SecondsForOpening - a time interval for order opening in seconds. If order opening failed within the set interval, then attempts to open the order will be stopped.
  • TypeOfOrder - the type of the order (0 - BUY, 1 - SELL, 2 - BUY LIMIT, 3 - SELL LIMIT, 4 - BUY STOP, 5 - SELL STOP).
  • OpenByDayOfWeek - turn on/off daily placing of orders in the specific days of the week.
  • TradeMonday - open an order on Monday (true - yes, false - no)
  • MondayType - the type of the order to be placed on Monday; the values are the same as for TypeOfOrder
  • TradeTuesday - open an order Tuesday (true - yes, false - no)
  • TuesdayType - the type of the order to be placed on Tuesday; the values are the same as for TypeOfOrder
  • TradeWednesday - open an order on Wednesday (true - yes, false - no)
  • WednesdayType - the type of the order to be placed on Wednesday; the values are the same as for TypeOfOrder
  • TradeThursday - open an order on Thursday (true - yes, false - no)
  • ThursdayType - the type of the order to be placed on Thursday; the values are the same as for TypeOfOrder
  • TradeFriday - open an order on Friday (true - yes, false - no)
  • FridayType - the type of the order to be placed on Friday; the values are the same as for TypeOfOrder
  • EnableOCO - enable/disable the OCO mode - Order Cancel Order. When enabled, placing of a new order automatically closes/deletes the previous orders.
  • MaximumOrders - maximum number of orders opened simultaneously
  • LimitDistance - the distance from the current price in the points for placing limit orders.
  • StopDistance - the distance from the current price in points for placing of stop orders.
  • UseMoneyManagement - use the money management function to calculate the position volume based on a specified percentage (RiskPercent) of the current account balance.
  • Lots - fixed order volume (if UseMoneyManagement = false).
  • RiskPercent - the percentage for calculating the volume of orders by using the money management.
  • StopLoss - the value of Stop Loss in points, if 0 - SL is disabled.
  • TakeProfit - the value of Take Profit in points, if 0 - TP is disabled.
  • MagicNumber - Magic number for orders.
  • Slippage - maximum allowable price deviation when closing positions.
  • AutoCloseProfit - value of the total profit of all opened positions at which all orders are automatically closed/deleted. If 0, the function is disabled.
  • AutoCloseDrawDawn - value of the total loss of all opened positions at which all orders are automatically closed/deleted. If 0, the function is disabled.
  • SpreadLimit - the maximum allowed spread in the points to open orders.

无评论