visit
c0
or c1
.c0*c1
and click the “OK” button.We could clean this up a little as the number is really quite big. Change the calculation to
(c0*c1)/1000000
, make sure the type is set to number and update the title to say “Volume Weighted MC Millions”, now we have something we can actually use.Here’s one I made earlier:
Now instead of multiplying the values just divide them. Make sure you divide Market cap by Code Repo Points though as this time the order does matter.In the example I sorted by the new “RPMC Ratio” field in ascending order as lower numbers are better. I also added a couple of filters, “Market Cap > 100000000” and “RPMC Ratio > 0” just to filter out some junk.Here’s an example: .
We’ll then add up the points and sort the column in descending order.At the risk of not overly complicating this example we’ll only pick 3 data points, “Number Of Exchanges”, “Sharpe Ratio 30 Day” and “7 Day Change Against BTC”.Here’s the calculation. It may look complicated at first but there is only one thing you need to know and its repeated 6 times.
(
c0 == 0
? 0
: c0 < 5
? 1
: 2
)
+
(
c1 > 5
? 2
: c1 > -1
? 1
: 0
)
+
(
c2 > 0
? 0
: c2 > -2
? 1
: 2
)
Firstly, the
c0
, c1
and c2
variables are assigned automatically as in the previous example. For this calculation they are as follows:c0 = Exchanges
c1 = Sharpe Ratio
c2 = 7 Day Change
A note on the syntax (skip if you know what a ternary operator is)
In order to write the calculation we’ll use a JavaScript conditional operator called the . It works as follows:
condition
? expression if condition is true
: expression if condition is false
So if the number of exchanges, lets call that
c0
equals 4 and our expression was c0 < 3 ? 0 : 1
then the result of the calculation would be 1 because 4 is not smaller than 3.Because we require multiple conditions we will use a nested ternary operator for each calculation. It may look a little complicated but it should be no worse than an excel function (I know that’s not saying much).The Number of Exchanges metric is the total number of exchanges that a cryptocurrency is listed on, in this example it will be assigned the variable
c0
.c0 == 0 // if c0 equals 0
? 0 // then 0 points
: c0 < 5 // else if c0 is between 1 and 4
? 1 // then 1 point
: 2 // otherwise 2 points
So let's say over 5 gets 2 points, between 0 and 4 gets 1 point and under 0 gets 0 points.
Sharpe Ratio will be assigned the variable
c1
so our calculation is as follows.c1 > 5 // if c1 is greater than 5
? 2 // then 2 points
: c1 > -1 // else if c1 is greater than -1
? 1 // then 1 point
: 0 // otherwise 0 points
7 day change will be assigned the variable
c2
c2 > 0 // if c2 is greater than 0
? 0 // then 0 points
: c2 > -2 // else if c2 is greater than -2
? 1 // then 1 point
: 2 // otherwise 2 points