Question about writing indicator values
-
I remember having read somewhere (I can't refind the thread) that there is a way to write all values of my indicators every time a trade is open. I see an interesting block called "Send e-mail". I see I can specify up to 10 data rows. Can I use it to send me an email with all values registered every time a trade is open?
However, I would prefer reading it at the "Experts" or "Log" tabs at my MT4 platform. How could I implement that?
Thank you very much in advance.
-
There are few blocks that do that, such as Comment, Alert, Phone Notifications. All of them have multiple rows of data, but then you can read that data in multiple rows as well. There is a block "Log message", which uses Print() to print information in the log, but this information is one row. If you add \r\n (new row special symbols) in the text, everything would still be printed as one row text and it's hard to read anyway. That's why there are no rows of data in this block, I just didn't liked the way that the log looks like.
Maybe you can try "Write to file", I think it will do better job than printing all kinds of stuff in the logs along with all the other junk there.
-
Interesting. This raises a few more questions.
- I Took a look at the "Log Message" block, but I can't see how I can specify which indicators values should be printed. Only one space text is available.
- How will rows shown if I use the "Write to file" block?
- If I understand correctly, both of the previous blocks should be put at the "On Trade" tab, right? Will that be enough to print/send the required info every trade is open or should they be connected to any previous block?
-
I tried this, but no messages are sent.
https://fxdreema.com/shared/ILflvUL5c
I checked my MT4 platform can send emails. Could you please tell me what am I missing?
-
Could someone please help?

-

-
Ok. I didn't remember that rule. Now I modified it and this is how it is designed:
https://fxdreema.com/shared/pj1q5YuBd
It works perfectly except for one single detail. Two of the data rows required (rows 3 and 4) are not recorded. Emails are correctly sent and data from rows 1 and 2 is always correct, but the other two are missing.
Any hint why is this happening? -
By the way, thank you very much for your help!

-
label in these rows must be filled, you have label in row 1 and 2 ok, but label in row 3 and 4 is not filled, and when it is empty, it is not sent ...

-
I guessed it should be for a silly reason. Fixed and fully operational. Thank you very much again.
