Page 1 of 1

Customising Indicator Email alerts

PostPosted: Tue Jul 02, 2019 4:47 am
by 7510109079
Question to anyone out there:

How do we add the Instrument and timeframe to the email header of the alert that gets sent out

e.g. change this first one to the second one:
2019-07-02 08 47 08.jpg


Can anybody summarise the standard edits to a typical lua file that Apprentice has coded?

thx

Re: Customising Indicator Email alerts

PostPosted: Wed Jul 10, 2019 3:30 pm
by Apprentice
You will have something like this.
local Subject="Two Average Cross Alert" .. "(" .. source:instrument() ..", ".. source:barSize() ..")" ;
local Email_Text="Some Text";
terminal:alertEmail(Email, Subject, Email_Text);

Re: Customising Indicator Email alerts

PostPosted: Thu Jul 11, 2019 9:16 am
by 7510109079
thx Apprentice. Will try as you suggest

Re: Customising Indicator Email alerts

PostPosted: Fri Aug 16, 2019 4:01 am
by 7510109079
OK i tried but could not get the currency pair (source:instrument??) to appear in the subject header alongside the filename (profile:id??)

Can you please help, thanks

Re: Customising Indicator Email alerts

PostPosted: Mon Sep 02, 2019 5:12 am
by Apprentice
2 MA Cross Alert 2pip.lua
(17.33 KiB) Downloaded 628 times

Try this version.

Re: Customising Indicator Email alerts

PostPosted: Mon Sep 02, 2019 7:07 am
by 7510109079
excellent many thx Apprentice :D