I have a strategy that counts a certain occurrence, say the number of bar of at least 8 ticks or more. It's easy for me to code this strategy. Then, I'll run it in playback mode for a month or so, counting up all of the occurrences. What's not clear to me is how to get this number, upon conclusion of the program? That is, I'm doing all of my action within OnBarUpdate. When I've hit the last of my trading data, and my strategy is done running, at that point I then want to print the final value of the number of occurrences I've seen over the entire run.
Your thoughts? Thanks,
Comment