Announcement

Collapse
No announcement yet.

StochMom Index

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

  • StochMom Index

    Can someone help translate this to efs:

    its vary basic.. i dont want the old one posted while back:

    # thinkorswim, inc. (c) 2008
    #

    declare lower;

    input over_bought = 45.0;
    input over_sold = -45.0;
    input percentDLength = 3;
    input percentKLength = 5;

    def min_low = lowest(low, percentKLength);
    def max_high = highest(high, percentKLength);
    def rel_diff = close - (max_high + min_low)/2;
    def diff = max_high - min_low;


    def avgrel = expaverage(expaverage(rel_diff, percentDLength), percentDLength);
    def avgdiff = expaverage(expaverage(diff, percentDLength), percentDLength);

    plot SMI = avgrel/(avgdiff/2)*100;


    plot AvgSMI = expaverage(smi, percentDLength);


    plot overbought = over_bought;


    plot oversold = over_sold;


    thanks!

  • #2
    Hi budfoxx,

    Test the attached efs. I coded it to practice passing series from efsInternal functions not because I am an expert at this. So it would be good if you test it against a known plot that is correct.

    If you are able to do that I would appreciate it if you would let me know what you find since I have no way of knowing if it is plotting the correct curve.

    Just as a note, you might find that this plot is very similar (not equal) to a stochastics 5,3,3 plot.

    wayne
    Attached Files
    Last edited by waynecd; 03-19-2009, 10:42 PM.

    Comment


    • #3
      thanks wayne.. looks good so far.

      but how can i edit the indicator.

      can you set it up so i can edit the values and color when i do edit studies on the chart?

      thanks for your help.

      Comment


      • #4
        Hi budfoxx,

        see attached.

        wayne
        Attached Files

        Comment

        Working...
        X