Export File when Alert is Executed

 
flo.gruenwald:

Hello Guys,

I want to write a file, when my Alert is fired.

How do I do this?

Use the file functions
 

Yes I know,

But with my ex4 indicator firing the Alert, how do I get the Alert information when or what to write?

 
flo.gruenwald:

Yes I know,

But with my ex4 indicator firing the Alert, how do I get the Alert information when or what to write?

If the Alert coincides with a buffer having a value written to it you can read the buffer using iCustom() . . . other than that I don't think you can detect that the Alert has happened.
 

If the Indikator writes a arrow, can I put something like a watchdog to check and react on events like this?

How do you think can i use iCustom(). Sorry im very new to mt4...

Thanks!

 
flo.gruenwald:

If the Indikator writes a arrow, can I put something like a watchdog to check and react on events like this?

How do you think can i use iCustom(). Sorry im very new to mt4...

Thanks!

If the indicator sets an arrow it will either be an Object, which you can get the details of, or it will be as a result of a value written to an Indicator buffer which you can use iCustom() to get.

Detailed explanation of iCustom
Reason: