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



Reply via email to