[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Generating Unqiue Alert IDs using datetime functions



PureBytes Links

Trading Reference Links

try this
AlertIF( Cover, "", writeval(datetime(),formatdatetime)+" "+name(), 4 );

-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


On 24/09/06, Padhu <ccie8340@xxxxxxxxx> wrote:
>
>  Hello,
>
> I would like to add a unique ID for every alert generated by using a
> combination of the datetime function and the symbol name.
>
> Alert_UniqueID = DateTimeToStr(*DateTime(*))+name();
> Example: 092320061040EURJPY   ( 09/23/2006 10:40AM Symbol EURJPY)
>
> But the above doesn't work. Appreciate if anyone can point me in the right
> direction. Thanks.
>
> Cheers,Padhu
>
> 
>