Donchian Daytrading Screener

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48932 quote
    Marcel van VlietMarcel van Vliet
    Participant
    Veteran

    Hi, I have tried to create a screener which detect the first body of a candle above or below the Donchian(8) channel on the H1 timeframe.

    This is what if have so far. The screener came up with 45 hits but does not seems to regonize the parameters.

    Anybody any idea how to fix this (simple) screener?

    // Donchian Daytrading Screener
    //datum 11/10/2017 versie 1.0
    
    ind=Donchian[8]
    body=close-open
    
    C1=body>Donchian[8]
    C2=body<Donchian[8]
    
    SCREENER (C1 or C2)
    #48957 quote
    NicolasNicolas
    Keymaster
    Legend

    “Donchian” is not a ProScreener instruction, you have to build yourself the upper and lower Donchian channel lines. Comparing your “body” variable (which is a difference of 2 prices in points) with the Donchian channels in price value, lead to nothing 🙂

    ..and SCREENER conditions must be in brackets, not in parenthesis.

    First below or first above is not possible, because if you are above you are the new Donchian upper line and vice-versa if you are below, so we are comparing with the previous period of each of the channel line.

    //donchian channels 8 periods
    hh = highest[8](high)
    ll = lowest[8](low)
    
    //first above?
    above = open>hh[1] and close>hh[1] and open[1]<hh[2] and close[1]<hh[2]
    
    //first below?
    below = open<ll[1] and close<ll[1] and open[1]>ll[2] and close[1]>ll[2]
    
    
    screener[above or below]
    Marcel van Vliet thanked this post
    first-below-donchian-channel.png first-below-donchian-channel.png first-above-donchian-channel.png first-above-donchian-channel.png
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Donchian Daytrading Screener


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
8 years, 11 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 10/10/2017
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...