Stop out levels

 

Hy guys! I was looking for this EA for a very long time, I just don't seem to find it. Can you please tell me if there is one and I missed

The EA should do the following:

In case of multiple trades, to indicate at what value of the currency pair I trade (maybe more of them, not just one, all the same currency) I will loose x % of the account. Ex: If I have 3 trades of the same pair, opened at different leveles, let's say 1 lot at 1.4225, 0.5 lots at 1.4115 and 0.2 lots at 1.3900, and my position is BUY, at what level will I loose 2 percent of my account? I want to input the percentage manually. (For example, to visualize where would I loose 5, 10, 50 or 100% of the account - just for informative reasons, obviously). The level should be a line that varies as the exchange rates vary.

There are some variations on the net of what I need, but none works for more opened position. Do you have any idea?

 
Calculate the average open price, calculate the loss / pip -> now you have all you need to calculate the distance needed to loose x %-
 
tradepips:

Do you have any idea?

Start reading: Book and learn to code.
 
RaptorUK:
Start reading: Book and learn to code.

Can you be more specific which part would help me do a simple indicator?
 
tradepips:

Can you be more specific which part would help me do a simple indicator?

In your first post you said you wanted an EA . . .

If you know nothing of coding start here: https://book.mql4.com/basics/index

Otherwise start here: https://book.mql4.com/programm/index

Reason: