you can also easy build a variable in a if() question that will change after a event, easy
Just found this thread https://www.mql5.com/en/forum/174203
May be it will help.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I'm trying to modify an EA. The conditions to close the trade are various in this EA but i need help on 1 case ONLY.
How to dow to make a pause of 10mn when a trailingstop is reached, to avoid the EA to take again a new position immediately after ?
I don't want the EA to make a pause for all the stops but ONLY if the trailingstop is reached.
If anyone has an idea or a sample of code... thanks a lot.