MetaTrader 4 – Experts

0
(0)
Views:
15968
Rating:



votes: 24

close5profit.mq4
(8.sixty nine KB)

Description

Close@Profit is an EA that shut orders after outlined revenue or loss.

You can outline if to shut solely trades on present image or to shut all orders on all symbols, to shut solely opened trades or additionally delete pending orders.

Based on Close at Profit concept from Matus German however together with Commissions, Swaps and modifications in UI.

Input variables

  • UseProfitToClose = true; - whether it is true the EA will shut trades when the revenue is bigger than outlined revenue to shut
  • ProfitToClose = one hundred; - the outlined revenue in account foreign money, when shut trades
  • UseLossToClose = false; - whether it is true the EA will shut trades when the loss is bigger than outlined loss to shut
  • LossToClose = one hundred; - the outlined loss in account foreign money, when shut trades
  • AllSymbols = true; - whether it is true the EA closes trades on all symbols, if false- solely on present image the place EA is hooked up
  • PendingOrders = true; - whether it is true the EA closes additionally pending orders, on all symbols or present image is determined by AllSymbols setting
  • MaxSlippage = 3; - maximal allowed slippage in pip
  • LegendColor = White; - shade of label textual content
  • VariablesColor = Gold; - colour of variables
  • FontSize = 8; - Font measurement

MetaTrader 4 - Experts

Source URL:https://www.mql5.com/en/code/11473

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?