Yes, but the tick rate is only provided by a few brokers. Alternatively just count the ticks in your script.