expiration is alert

 

I want to add an expiration on my EA based on a alert of the indicator, how do i do that? 

How do i change a TRUE/FALSE or number value into a word value? 

I want to change extern bool Expiration=false;, or extern bool Expiration=60; into ……….. Expiration = 'an alert from my indicator' ;

Ed 

 
Ed1210: I want to add an expiration on my EA based on a alert of the indicator, how do i do that?
Can't be done, there is no way to read alerts.
You must learn what the alert criteria is in the indicator, and look for that (iCustom/objects) in the EA.
 

Thanks.

So besides True/False, or expiration in minutes, what other options can be used for expiration?

 

Ed 

 

there is a tricky way to read the alert using the experts log file (to be honest i think (IMHO) it's beyond your capabilities)

but of course using WHRoeder's way:

WHRoeder:

You must learn what the alert criteria is in the indicator, and look for that (iCustom/objects) in the EA.

is a lot better

 
Still no answer to my second post…..
Reason: