I can show you how to convert one as an example. Let's take this line of code from the section of code you provided:
volumeSum = CompoundValue(1, volumeSum + volume, volume);
We can get all the details about how this function works here:
All it really does is to initialize the variable with a value at the bar number listed in the first parameter. The second parameter is the value for every bar after that. The third parameter is the value used to initialize at the bar number in the first parameter. Confused? You should be. But in plain English, CompoundValue() is merely the tool thinkScript uses to initialize a recursive variable. In practice, you will find it is rarely needed. You can create a recursive variable without it. And in 99.9% of cases it will work just fine. Experience tells you when that 0.1% comes into play.
But for those that work with more standardized computer language the EasyLanguage version will actually make things much more clear. All we do is create an if/then/else statement. First checking if the BarNumber is the first bar on the chart. Then we initialize the variable with a value of our choosing. In the else section of that statement we assign the value we want to use for every bar after BarNumber 1.
Here is is in EasyLanguage:
If BarNumber() == 1 Then Begin
volumeSum = volume;
volumeSum = volumeSum + volume;
Once you get used to the thinkScript method of initializing recursive variables you realize how efficient that structure is, compared to it's equivalent in other languages. Try writing that EasyLanguage form in a single line of code. It can be done but it's a real mess.