Announcement

Collapse
No announcement yet.

detrending OSC

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

  • detrending OSC

    This is a very simple detrending oscillator but offers great signals!
    I use it in TS 2000i but would like to see it in my eSignal charts, too! Here it goes: (Close - Average (Close, Length))*100. Took me 5 seconds to write it in Easy Language but I need your help to get it going in EFS. Many thanks!

  • #2
    var smaStudy = new MAStudy(20,0,"close",MAStudy.SIMPLE);
    var detrend = 0;

    function preMain() {
    setPriceStudy(false);
    }

    function main() {
    var sma = smaStudy.getValue(MAStudy.MA);
    var detrend = (close() - sma) * 100;
    return (detrend);
    }

    Comment


    • #3
      XYGEEK , thank you with this fast response. I am impressed with this community. Thanks again! Hermann

      Comment

      Working...
      X