hi, if you like to know how many seconds of a bar have past look for an example here:
http://www.amibroker.org/userkb/2007/12/ rgds, Ed ----- Original Message ----- From: Peter Braun To: [email protected] Sent: Wednesday, July 16, 2008 11:09 AM Subject: [amibroker] Automatic reliable Selling on Close of Bar How can I sell reliable on close of bar (I'm using 5 minutes bars)? I've used this code, it tries to sell on last second of the 5 minute bar: Time = Now(4); NumSeconds = int(int(Time/100%100)*60+int(Time%100)); Newperiod = NumSeconds % TimeFrame >= in5Minute-1; But it failed yesterday. I suppose, it didn't execute on that last second for some reason. But I don't know another way. Thank you in advance Peter ------------------------------------------------------------------------------ Gesendet von Yahoo! Mail. Dem pfiffigeren Posteingang.
