Close@Profit – expert for MetaTrader 4

0
(0)

Close@Profit - expert for MetaTrader 4

Jan Kafka

Views:
940
Rating:

votes: 5

Files:

Description

Close@Profit 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 1

Last comments | Go to discussion (1)
Hongliang Liu
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

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.