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

Re: [amibroker] Current time code



PureBytes Links

Trading Reference Links

Thank you for the code snippet...but..The alertif() already returns the
time the signal is generated....check the image attached.

I am using beta 4.28.1


Anthony



"slyde88 " wrote:

>  For All:
>
>   Here is a little code snipit to return the
> current time. It can be added to tha Alertif function
> to indicate the time the alert came in.
>
> EnableScript("jscript");
>
> <%
>
> Now=new Date();
> CTS=Now.toTimeString();
> AFL("CurTimeStr")=CTS.substring(0,5);
>
> %>
>
> note: CurTimeStr is a string.
>
> Alertif(Buy==1,"",("Buy "+ CurTimeStr),1,1,0);
>
>
>                          Cliff s
>
>
>                    Yahoo! Groups Sponsor
                        ADVERTISEMENT


>
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


Attachment: Description: ""