The buyer/seller prevalence is a metric based on the side of trades during the selected period. The metric belongs to interval. The more trades with ‘buy’ side available, the more positive the buyer/seller prevalence is.
The algorithm is as follows:
get all trades for the selected period
group trades by side (“buy” and “sell”)
calculate the sum of trade amounts in base currency
apply the following logic where and are the sum of buy and sell trade amounts
Here you can find the chart of how the applied function looks like.