Three line breakouts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #155917 quote
    BoutDePain
    Participant
    Average
    // Change this
    // 1 = bullish breakouts
    // 0 = bearish breakouts
    // 2 = all breakouts
    once ScreenerBehavior=1
    
    // Trend=0 mean that the current block is red
    // Trend=1 mean that the current block is green
    once Trend=1
    once Line1High=close
    once Line2High=close
    once Line3High=close
    once Line1Low=close
    once Line2Low=close
    once Line3Low=close
    
    // On each candle the breakout are put to false
    Breakout=0
    
    if (close > CurrentLimitTop and trend = 1) then
    Line3Low=Line2Low
    Line3High=Line2High
    Line2Low=Line1Low
    Line2High=Line1High
    Line1Low=Line1High
    Line1High=close
    elsif (close < CurrentLimitBottom and trend = 0) then
    Line3Low=Line2Low
    Line3High=Line2High
    Line2Low=Line1Low
    Line2High=Line1High
    Line1High=Line2Low
    Line1Low=close
    elsif (trend=1 and (close < CurrentLimitBottom)) then
    Line3Low=Line2Low
    Line3High=Line2High
    Line2Low=Line1Low
    Line2High=Line1High
    Line1Low=close
    Line1High=Line2Low
    trend=0
    if (ScreenerBehavior = 0 or ScreenerBehavior = 2) then
    Breakout = 1
    endif
    elsif (trend=0 and (close > CurrentLimitTop)) then
    Line3Low=Line2Low
    Line3High=Line2High
    Line2Low=Line1Low
    Line2High=Line1High
    Line1High=close
    Line1Low=Line2High
    trend=1
    if (ScreenerBehavior = 1 or ScreenerBehavior = 2) then
    Breakout = 1
    endif
    endif
    
    if (Line1Low < Line2Low and Line1Low < Line3Low) then
    CurrentLimitBottom=Line1Low
    elsif (Line2Low < Line1Low and Line2Low < Line3Low) then
    CurrentLimitBottom=Line2Low
    else
    CurrentLimitBottom=Line3Low
    endif
    
    if (Line1High > Line2High and Line1High > Line3High) then
    CurrentLimitTop=Line1High
    elsif (Line2High > Line1High and Line2High > Line3High) then
    CurrentLimitTop=Line2High
    else
    CurrentLimitTop=Line3High
    endif
    
    screener[Breakout]
    

    Bonjour ce screener est supposé detecter les cassures de 3 Lines Break

    #155918 quote
    BoutDePain
    Participant
    Average

    J’ai un souci avec ce screener : parfois il me ramène des valeurs qui n’ont rien à voir. Si je met le même code dans un indicateur et que je visualise toutes les variables, il ne devrait pas remonter les valeurs concernées mais pourtant elles remontent quand même.

    Quand je modifie le screener pour voir les variables elles n’ont rien a voir avec les valeurs qui sont calculées dans l’indicateur. Pourtant le code est le même. Je suis donc perplexe quelle explication avez vous ?

    #156148 quote
    Nicolas
    Keymaster
    Master

    Puisque le calcul commence au tout début de l’historique, peut être qu’un décalage se crée entre celui affiché et celui disponible dans ProScreener ? Essayer avec un graphique de max 254 unités.

    #156168 quote
    BoutDePain
    Participant
    Average

    Même problème en limitant a 254, par exemple en données hebdo aujourd’hui j’ai Wendel qui remonte pour le screener (sur données Euronext PEA) avec une borne franchie à 99.44 (le cours est a 99.95) alors que la limite calculée est de 102.70 normalement. Donc via un indicateurs les limites calculées sont bonnes même en limitant à 254 unités, dans le screener la valeur calculée je correspond a rien que je puisse comprendre et est a 99.44 au lieu de 102.70.

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

Three line breakouts


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
BoutDePain @boutdepain Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by BoutDePain
5 years, 2 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 01/02/2021
Status: Active
Attachments: No files
Logo Logo
Loading...