'Get Frequency of transaction in pine script

I need to build custom indicator in pine script. The formula is : Volume / Frequency of transaction. As we know we can get Volume in pine script. But for frequency, i don't think we can get from pine script. But i have external data series for that. Any suggestion for my case?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source