Create an alarm to close the position

 

Hi

I want to make an alarm like this

My expert has 1 or more positions at the same time. When the indicator gives the exit signal, the positions are closed.

I want to give an alarm when the positions close

1- Close 1 position Eurusd +$20 Profit  

Comment 

Currency    

Position type   Number of positions   Totall profit
Profit EA Alarm  Eurusd  Sell  1 20

Or

1-Gbpusd position #1 -$50 

2- Gbpusd position #2  $50 

3- Gbpusd position #3 $150 

Comment  Currency     Position type   Number of positions   Totall profit
Profit EA Alarm  Gbpusd  Buy 3
150
 
GoldenDiamonds: I want to make … I want to give
You have only four choices:
  1. Search for it (CodeBase or Market). Do you expect us to do your research for you?

  2. Beg at:

  3. MT4: Learn to code it.
    MT5: Begin learning to code it.

    If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.

  4. or pay (Freelance) someone to code it. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2019)

We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help (2017)

 
GoldenDiamonds:

Hi

I want to make an alarm like this

My expert has 1 or more positions at the same time. When the indicator gives the exit signal, the positions are closed.

I want to give an alarm when the positions close

1- Close 1 position Eurusd +$20 Profit  

Comment 

Currency    

Position type   Number of positions   Totall profit
Profit EA Alarm  Eurusd  Sell  1 20

Or

1-Gbpusd position #1 -$50 

2- Gbpusd position #2  $50 

3- Gbpusd position #3 $150 

Comment  Currency     Position type   Number of positions   Totall profit
Profit EA Alarm  Gbpusd  Buy 3
150

Do you have an expert? It's easy if you have. When we do not know where the expert closes. You can write Alert under the orderclose action. If there is no Expert, is there a Magicnumber?

 
Mehmet Bastem #:

Do you have an expert? It's easy if you have. When we do not know where the expert closes. You can write Alert under the orderclose action. If there is no Expert, is there a Magicnumber?


Hi Mehmet Bastem 

Sorry for being late, I did not have access for a few days

Yes, I have an expert and it works well

BUY positions with Magic 1 And SELL positions with Magic 2

They work And there is a special function for closing positions

The main problem is that I want to calculate when the positions are closed

How many positions are closed?

What kind was it?

How much profit did he have?

Thank you for your guidance

 
William Roeder #:
You have only four choices:
  1. Search for it (CodeBase or Market). Do you expect us to do your research for you?

  2. Beg at:

  3. MT4: Learn to code it.
    MT5: Begin learning to code it.

    If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.

  4. or pay (Freelance) someone to code it. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2019)

We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help (2017)

Thank you ِDear William Roeder.
You do not need to have programming knowledge to have a profitable expert
You have to have the right solution and idea
In this group, countless friends helped me reach my goal
Although I read most of your posts and you are one of the prominent professors of this site.
Reason: