"

[email protected] – expert for MetaTrader 4

by Dr.Hamdi Boukamcha

[email protected] – expert for MetaTrader 4

Jan Kafka | English

Files:

Description

[email protected] is an EA that close orders after defined profit or loss.

You can define if to close only trades on current symbol or to close all orders on all symbols, to close only opened trades or also delete pending orders.

Based on Close at Profit idea from Matus German but including Commissions, Swaps and changes in UI.

Input variables

  • UseProfitToClose = true; – if it is true the EA will close trades when the profit is greater than defined profit to close
  • ProfitToClose = 100; – the defined profit in account currency, when close trades
  • UseLossToClose = false; – if it is true the EA will close trades when the loss is greater than defined loss to close
  • LossToClose = 100; – the defined loss in account currency, when close trades
  • AllSymbols = true; – if it is true the EA closes trades on all symbols, if false- only on current symbol where EA is attached
  • PendingOrders = true; – if it is true the EA closes also pending orders, on all symbols or current symbol depends on AllSymbols setting
  • MaxSlippage = 3; – maximal allowed slippage in pip
  • LegendColor = White; – color of label text
  • VariablesColor = Gold; – color of variables
  • FontSize = 8; – Font size

 Close@Profit - expert for MetaTrader 4

Last comments | Go to discussion (1)
 Close@Profit - expert for MetaTrader 4
Moggy | 12 Jul 2014 at 08:19

how to make sure all the orders closed with no error?

OrderClose and OrderDelete maybe wrong when you close or delete orders

if some orders are not closed in for clause,they may not be close later,as the total profit not match your condition anymore

FYI

Share this article

Leave a comment