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

[amibroker] Current time code



PureBytes Links

Trading Reference Links

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


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/