PureBytes Links
Trading Reference Links
|
Thanks Anthony - I tried first using that as well and did some simple
cut and pastes to come up with the following:
Buy = IIf(Open > Close,1,0);
lastdatetime = LastValue( DateTime() );
if( LastValue( Buy )
AND lastdatetime > StaticVarGet( "AlertFlag"+Name() ) )
{
// update static variable
StaticVarSet( "AlertFlag"+Name(), Lastdatetime );
// as many alertif statements as you wish
AlertIf( True,"A sample alert on "+FullName(), 1 );
}
I can't get anything at all to appear in the Alert Output window
(that I've left open.) There should be a bunch showing up.
Shouldn't "A sample alert on "+FullName() appear in Alert Output.
Best Regards,
Dean H.
--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx>
wrote:
>
> This was supplied by Tomasz some days ago...does it fit your
needs ?
>
> Hello,
>
> There was a missing brace in the sample code, corrected is:
>
> YourCondition = 1;//...
>
> lastdatetime = LastValue( DateTime() );
>
> if( LastValue( YourCondition )
> AND lastdatetime > StaticVarGet( "AlertFlag"+Name() ) )
> {
> // update static variable
> StaticVarSet( "AlertFlag"+Name(), Lastdatetime );
>
> // as many alertif statements as you wish
> AlertIf( True, "EMAIL ...", "Text", 0, 1 );
> AlertIf( True, "SOUND ...", "Text", 0, 1 );
> }
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: troll
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Friday, October 14, 2005 12:37 PM
> Subject: [amibroker] Alertif Question
>
>
> I've tried various versions of the code below. It seems like
either
> AlertIf line will work on its own but I can't find a way to get
the
> alerts to generate an audio alert as as well as the customized
text
> output at the same time.
>
>
> Short = Open < Close;
>
> /*AlertIf( barcomplete AND Short, "", "Short " + FullName()
+ "
> $ " + Close, 1 );*/
>
> AlertIf( Short, "SOUND C:\\Program
> Files\\Amibroker\\DMH\\Alerts\\Chimes.wav", "aa Audio alert", 2 );
>
> Both lines work fine but not together so perhaps you're
restricted to
> only one AlertIf function.
>
> As always any suggestions or pointers much appreciated.
>
>
> Thanks & Regards,
>
>
> Dean H.
>
>
>
>
>
>
>
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
>
>
>
>
> SPONSORED LINKS Investment management software Real estate
investment software Investment property software
> Software support Real estate investment analysis software
Investment software
>
>
> --------------------------------------------------------------------
----------
> YAHOO! GROUPS LINKS
>
> a.. Visit your group "amibroker" on the web.
>
> b.. To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service.
>
>
> --------------------------------------------------------------------
----------
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|