Download MetaTrader 5
To add comments, please log in or register
Examine the Top MetaTrader 5 signals. Choose the best one and subscribe to it!
ed1210
99
ed1210 2014.07.23 11:27 

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 

whroeder1
13602
whroeder1 2014.07.23 12:18  
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.
ed1210
99
ed1210 2014.07.24 12:25  

Thanks.

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

 

Ed 

qjol
3243
qjol 2014.07.24 13:03  

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

ed1210
99
ed1210 2014.07.24 20:00  
Still no answer to my second post…..
/
To add comments, please log in or register