Off Topic: Calculate Digital Roots of Close Prices in EasyLanguage

August 1st, 2009

I wanted to plot the digital roots of close prices in MultiCharts/EasyLanguage. For example, a close is 1.29. That is: 1+2+9 = 12, then 1+2 = 3. The result is 3.

It took me awhile to figure out how to implement the modulo operation properly in EasyLanguage, but I did it and I thought I’d share it in case some other maniac out there is looking to do the same thing.

Here, I assign it to a variable:

var0 = 1+MOD(((Close*100)-1),9) ;

Note: I multiply by 100 to get rid of the decimal.

Hat tip to Kardi Teknomo, PhD for his great Digital Root page and tutorials.

One Response to “Off Topic: Calculate Digital Roots of Close Prices in EasyLanguage”

  1. RMOHANX says:

    Two things occur.

    1) Kardi notes this formula doesn’t work
    for “large” numbers because of the implementation
    of MOD. There are work-arounds.

    2) Much more important, one is immediately drawn
    to the connection between these roots and the
    Enneagram. The ennegram is obviously
    interpretable as a machine for digital root
    dynamics. This page has an animation one might
    find provoking: http://www.cosmic-mindreach.com/

    Exercise left for the reader: Digital Roots
    and expanded enneagram in the vigesimal system.
    (i.e. the base-20 enneagram)

    Advanced Exercise: Digital Roots and Enneagram
    in sexagesimal. (“Hammurabi, white courtesy
    phone, paging Hammurabi…..”)

Leave a Reply

You must be logged in to post a comment.