| 
 You may want to browse the UKB (see link below), especially the real-time topics in the real-time AFL programming category. It looks like you want to work from the systems clock ( use the Now() ). 
  
best regards, 
herman 
  
For tips on developing Real-Time Auto-Trading systems visit: 
http://www.amibroker.org/userkb/ 
  
Thursday, December 27, 2007, 10:21:11 AM, you wrote: 
  
> Hi, 
> I want to write system in Ami 4.9 and I have one problem. I want to 
> know, when bar is completed. I found on: 
> http://www.amibroker.com/guide/h_alerts.html that bar is completed when   
  
> barcomplete = BarIndex() < LastValue(BarIndex()); 
  
> But I think that is not in 100% true:-( I working on 1-Hours bar, data 
> to generate BUY and SELL I have from DDE.  
> When I have signals (tick) on: 
> 9:01:34 
> 9:02:45 
> .. 
> 9:55:23 
> 9:59:45 
  
> than I have last bar and this bar is not completed. This bar generated 
> from 9:00:00 to 9:59:55 but completed is only when I have signal after 
> 10:00:00. Not on 10:00.00, only on first signal (tick) after 10:00:00. 
> For example when I have signal on 
> 10:00:46 
> then bar 9:00:00 - 9:59:55 is completed! 
  
  
> Can I know that bar is completed on the end this bar on 10:00:00, not 
> on next signal after 10:00:00 ? Can I check in different way that bar 
> is completed and not wait for first signal on next bar ?  
  
  
> Regards 
  
  
  
  
  
> 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 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/ 
>   
__._,_.___
  
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 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 
  
     
    
 
      
   
__,_._,___
 |