This script calculates the digit sum of a chosen source. Only possible thanks to MichelT String to Number Script.
Google Translation------------------------------------------------------------------------------------------------------------------------------------------ If the closing price is higher than the opening price, the volume is positive and reverse. If the closing price is smaller than the opening price, the volume is negative and their defined period It is an...
EXPERIMENTAL: Oscillator with sum'd volume across the majors with panel showing volume over period results.
This indicator shows a MOVING SUM of the QUOTE CURRENCY of the pair. I made this because I wanted to be able to see how the 24HR volume looked on 1-Minute charts (which is why the default period is 1440, as there are 1440 minutes in a day.)
Lines "Total Up Impulses" and "Total Down Impulses" are the sum of impulses in the last n periods (Length). line 1 => "Total Up Impulses": the sum of up impulses. line 2 => "Total Down Impulses": the sum of down impulses. When line 1 crosses up line 2, it indicates an uptrend is comming out. When line 1 crosses down line 2, it indicates a downtrend is comming out.
Here is a light piece of code, The Indicator Integrator. It sums up a function (like an integral for you calculus folks). Unlike the 'cum' function that does a million bars of look back you can change the look back period, like limits of integration. Built in is a difference of the close from an SMA. And there is an ROC. By changing what is summed up in the loop...