Export File when Alert is Executed

To add comments, please log in or register
Simon Gniadkowski
17279
Simon Gniadkowski  
flo.gruenwald:

Hello Guys,

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

How do I do this?

Use the file functions
Florian Grünwald
27
Florian Grünwald  

Yes I know,

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

Simon Gniadkowski
17279
Simon Gniadkowski  
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.
Florian Grünwald
27
Florian Grünwald  

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!

Simon Gniadkowski
17279
Simon Gniadkowski  
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
To add comments, please log in or register