You need to read the examples in the manual. See the chapter below
--------------------
HTTP functions
--------------------
// send an email when a trade is entered
But is it possible to receive the email when is ready the pattern candle that I choose?