Experts: CloseProfit v2

 

CloseProfit v2:

Closing positions and removing pending orders when reaching a specified profit or loss.

Author: Vladimir Karputov

 

Need EA!!!

There is a possibility (for trading with multiple orders, including lots) to add closing by equity.

Add two parameters - equity profit and equity stop, in the form of specific values in the deposit currency.

 
Kuper_01:

Needed counsellor.

There is a possibility (for trading with multiple orders, including lots) to add closing by equity.

Add two parameters - equity profit and equity stop, in the form of specific values in the currency of the deposit?

And it only counts the loss on the balance?

Or what you mean is not clear.

 

I agree with the comment of user Kuper_01.

If you could make the EA close orders by a certain % of profit or loss from equity, it would be worthless!

If you have a lot of positions open and you close manually or another EA closes profitable orders leaving unprofitable ones in the market from time to time, then the amount of balance will grow, but the amount of equity will be different. This EA closes by balance, and it turns out in this case that the balance has gained the necessary amount to close, but equity is still in drawdown.It would be more correct to close by equity, because equity is the amount of the deposit in real time at the moment.Can you still make this function? Looking in the internet for MT5 EA that would close by equity and as against the wall head.For MT4 there are ready, but I need it for MT5.

 
Znatok2604:

I agree with the comment of user Kuper_01.

If you could make the EA close orders at a certain % of profit or loss from equity, it would be worthless!

If you have a lot of positions open and you close manually or another EA closes profitable orders leaving unprofitable ones in the market from time to time, then the amount of balance will grow, but the amount of equity will be different. This EA closes by balance, and it turns out in this case that the balance has gained the necessary amount to close, but equity is still in drawdown.It would be more correct to close by equity, because equity is the amount of the deposit in real time at the moment.Can you still make this function? Looking in the internet for MT5 EA that would close by equity and as against the wall head.For MT4 there are ready, but I need it for MT5.

Is this code suitable?

Trailing Equity

Working principle

Works with graphical objects OBJ_LABEL.

The Expert Advisor does not open positions itself - the Expert Advisor only tracks the Equity of the trading account and performs Trailing Equity. Works for all symbols and all Magic number's.

It has only three parameters:

  • Trailingstart, in % - percentage of profit on Equity for trailing start
  • Rollback for all closing, in % - percentage ofrollback on Equity for closing all positions
  • Magic number - unique identifier of the Trailing Equity Expert Advisor
 
Super! Exactly what I was looking for! Thank you very much!)
 
Good day, can you make CloseProfit v2 - Expert Advisor for MetaTrader 5 calculate profit not by the last transaction but by the nearest opposite price from the stack? When a certain profit is reached, the programme closes trades, but taking into account the spread on the instrument (MICEX exchange), the closing of positions results in a minus!
 
art6463:
Good day, can you make CloseProfit v2 - Expert Advisor for MetaTrader 5 calculate profit not by the last transaction but by the nearest opposite price from the stack? When a certain profit is reached, the programme closes trades, but taking into account the spread on the instrument (MICEX exchange), I get a minus when closing positions!

I don't have an account on the stock exchange, so I can't help you.

 
what software do you use to make an animated screen like this?
 
i tried it and it worked nicely. Thank you. will update in case of any issues. so far so good.Nice
 

Works perfectly with the magic number utilized. TY


However,

This closes trades slower than a script. 


Mb