I actually just did the same testing a few months ago. I did everything in Matlab. What will you be using?
As opposed to the method mentioned above, I simply estimated how may times per day I wanted to issue trades (n). Then divide the number of bars in a day (b) by this number, and you will...