Conversion of Ehlers Decycler Osc from Pine

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #164351 quote
    Yantra
    Participant
    Senior

    John F. Ehlers introduced Decycler Oscillator in Sep, 2015.

    Function

    In “Decyclers” in Sep, 2015, John Ehlers described a method for constructing an oscillator that could help traders detect trend reversals with almost no lag, an oscillator that signals trend reversals with almost zero lag via digital signal processing techniques. A high-pass filter is subtracted from the input data and the high-frequency components are removed via cancellation of terms. Lower-frequency components are filtered from the output, so they are not canceled from the original data. Thus, the decycler displays them with close to zero lag. The fast line has a period of 100 a K value of 1.2 and the slow line has a period of 125 and a K value of 1.

    This script demonstrates the timely response of the decycler oscillator to market action. It applies the idea of using a decycler oscillator pair with different parameters, as discussed in Ehlers’ article:
    1. Enter long when the fast line crosses over the slow line;
    2. Exit long when the fast line crosses under the slow line.

    Key Signal

    Fast_Val –> Ehlers Decycler Oscillator fast line
    Slow_Val –> Ehlers Decycler Oscillator slow line

    Ehlers-decycler-Osc.png Ehlers-decycler-Osc.png
    #164354 quote
    Yantra
    Participant
    Senior

    Herewith code which I unfortunately didn’t manage to upload with the above request.

    Ehlers-Decycler-Osc-Code.txt
    #164367 quote
    robertogozzi
    Moderator
    Master

    Usiung the search box I found this on this forum https://www.prorealcode.com/prorealtime-indicators/ehlers-simple-decycler/

    #164377 quote
    Yantra
    Participant
    Senior

    Thank you Roberto but I think that is a different indicator.

    It’s similar in name but is not this oscillator with two lines that cross. The bands on the indicator you mention never cross. And the oscillator here appears in a window below the price window.

    #164469 quote
    Nicolas
    Keymaster
    Master

    That indicator has been translated, find it here: John F. Ehlers Decycler Oscillator

    Yantra thanked this post
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Conversion of Ehlers Decycler Osc from Pine


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Yantra @rover220 Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Nicolas
4 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/16/2021
Status: Active
Attachments: 2 files
Logo Logo
Loading...