It's a bit moot now, because as it turns out Accumulate Distribute is not fully supported by the IB API.
It's a real shame because it's a very powerful algorithm, but only the very basic functions are accessible through the API, none of the additional conditions which I need.
I hope that...