Daily Breakdown Strategy for MetaTrader 4: Automate Your Trading

Mike 2011.02.28 18:54 25 0 0
Attachments

Description:

Each day, at the time set in the TimeSet variable, this system places pending orders to take advantage of market movements.

Once a pending order is executed, the other order is automatically canceled.

The Buy Stop pending order is set at a price equal to the previous day's High plus a specified Delta (in points). It includes Stop Loss and Take Profit levels defined in the SL and TP input variables. Conversely, the Sell Stop pending order is positioned at the previous day's Low minus the Delta (in points), also including the specified SL and TP levels.



Input Variables:

  • TimeSet: "07:32"; // This is the time to place orders. If set to "00:00", the EA will operate based on the previous day's breakdown.
  • Delta: Price shift (in points)
  • SL: Stop Loss (in points)
  • TP: Take Profit (in points)
  • risk: If set to 0, a fixed lot size is used.
  • NoLoss: If set to 0, this activates the "zero" setting.
  • trailing: If set to 0, trailing stops are disabled.
  • Lot: Used only when risk = 0.
  • Expose OpenStop: Displays stop orders at the open order.



List
Comments 0