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

[amibroker] How to express "after 10 seconds of event X" ?



PureBytes Links

Trading Reference Links

Hi

I want to know how to express the idea of "after 10 seconds of event 
X" in AFL. I know you can do it by using getperformancecounter(). But 
is there a more simple way of doing this ?

I want to do it with timenum() and now(4) as follows, but 
timenum() has limitation for this, as you can see 

10 seconds after 10:00:56 is 10:01:06 
but timenum() for 10:00:56 is 100056 and timenum() for 10:01:06 is 
100106,  100106-100056=50 , not 10.

thanks for any help / Huanyan
============================================================

if( event X )
   
   {

        timezero = LastValue(TimeNum());
   }
                
  
elapsedtime = Now(4)-timezero;

10secons_after_X= elapsedtime==10;

===========================================================


------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/