If you are talking about email alerts I have an include that does that. You can
put the functions near the top of your program and just call them when you want
to send an alert.
The attached code will also send an audible alert to your speakers if you have
a need to do that.
Barry
// plays an audible message when trade status conditions are met
// this should only play the message once per instance
function fSayOnce( text )
{
if( StaticVarGetText(VarPfx + "LastSaidText") != text )
{
Say( text );
StaticVarSetText(VarPfx + "LastSaidText", text );
if(DebugOn) _TRACE("#, FeedBkInc, SayOnce Text =" + text + "\n");
}
}
// sends an email alert if the parameter is set to send alerts
// this should only send one alert per instance
function fSendAlertOnce( text )
{
if( SendAlert AND StaticVarGetText(VarPfx + "LastAlertSent") != text )
{
AlertIf(True, "EMAIL", Date() + ", " + text, type = 0 );
StaticVarSetText(VarPfx + "LastAlertSent", text );
if(DebugOn) _TRACE("#, FeedBkInc, Alert Text =" + text + "\n");
}
}
--- In [email protected], Ram Nukala <objectsmi...@...> wrote:
>
> Hi,
> I downloaded eval version of the AmiBroker. The Help talks about Formula
> based alerts (AlertIF function) but it doesn't indicate where this code has
> to be placed and how to select against which symbols this operates ?
>
>
> Thanks
> Ram
>