Announcement

Collapse
No announcement yet.

Stochastic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stochastic

    Hi, can someone point me in the right direction??
    Ive searched through the BB archives and tried to edit the existing Stochastics formualae (builtin and Dinapoli) but can't seem to get a Stochastic (9,3,3) that caters for simple moving average and the (high-low)/2 instead of the Close.
    I understand that the Builtin Stochastic provides the SimpleMA version but there's no where that I can change the formula to use (High-Low)/2 instead of Close.
    The Dinapoli Stocastic I think uses the Exponential MA version and although Ive tried to put (High-Low)/2 instead of Close at the end of the programme it doesn't work.
    So, if anyone has a Simple MA version of the Stochastics formula, do they know how I can change the Close to be (high-Low)/2 ????

    Thanks

  • #2
    Hello hhooper,

    I believe all you need to do is change the following line (line 44 in \eSignal\Formulas\Library\StochasticK.efs):

    PHP Code:
            percentK = ((close ll) / (hh ll)) * 100
    to this:

    PHP Code:
            percentK = ((((high()-low()) / 2) - ll) / (hh ll)) * 100
    The same logic would also apply to the DiNapoli formula.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      Stochastic not working

      Hi Jason, thanks for your reply. I cut and pasted the new statement in the %K efs and also changed the default values of 14/1/3 to 9/3/3. I changed the 933 in the other 3 efs (ie %d and HH & LL, under the Library studies). I changed the builtinStoch.efs as well from 14/1/3 to 9,3,3.
      However, the lines still look too smoothed. More importantly, when I selected the Stochastic under Basic studies to put it on my chart it said 14/1/3 !!!
      I changed these parameters again under Edit sudy, but I'm wondering if I'm really getting the edited changes you told me to do!?
      Also, when I tried similar under the Dinapoli formula the stochastic does not run from 0-100 it runs from -8000 to -22000!
      I know this is something easily rectified but Im not sure what to do. Can you help?? By the way just to put this in perspective I'm trying to replicate some Stochastics that the trader "Buffy" uses under her MOF/Sling web site at www.dacharts.com. She uses Ensign software to produce the Simple moving average Stochastics. I'm comparing screen shots for $INDU.
      Many thanks

      Comment


      • #4
        Hello hhooper,

        The Stochastics study under "Basic Studies" is a built-in study. The EFS formulas you are editing do not affect the built-in study. To see the effects of your editing, run \Formulas\Library\StochasticK.efs and StochasticD.efs.

        In the Dinapoli formula, if you plug in some numbers and calculate a few data points manually, you'll see that the output you're getting is logical based on the inputs. Not sure what you are expecting to see, but the math works out according to the change you requested.

        I didn't see any specific instructions on the MOF / Sling web site. If you can point me to a more specific link, I'll take a look at it.
        Jason K.
        Project Manager
        eSignal - an Interactive Data company

        EFS KnowledgeBase
        JavaScript for EFS Video Series
        EFS Beginner Tutorial Series
        EFS Glossary
        Custom EFS Development Policy

        New User Orientation

        Comment

        Working...
        X