Srceener Trend Enveloppes

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #150112 quote
    finplus
    Participant
    Master

    Bonjour,

    suite à ma demande de codage de cet indicateur, serait il possible d’en faire un screener qui détecterait les changements de direction de l’indicateur?

    merci.

    //////////////////////////////// Trend Envelopppes
    
    timePeriod=14
    Deviation=0.01
     
    price=customclose
     
    dsma = WeightedAverage[timePeriod](price)
    valuesLow = (1 - deviation / 100) * dsma
    valuesHigh = (1 + deviation / 100) * dsma
     
    inputs=price
     
    if (inputs > valuesHigh) then
    trend = 1
    elsif (inputs < valuesLow) then
    trend = -1
    endif
     
    if (trend > 0) then
    alpha1=0
    if ( valuesLow < valuesLow[1]) then
    valuesLow = valuesLow[1]
    endif
    if trend[1]>0 then
    outputs0 = valuesLow
    outputs1 = valueshigh
    alpha0 = 255
    else
    drawtext("long",barindex,low, dialog,bold,18) coloured(65,105,225)
    endif
    else
    alpha0=0
    if (valuesHigh > valuesHigh[1]) then
    valuesHigh = valuesHigh[1]
    endif
    if trend[1]<0 then
    outputs1 = valuesHigh
    outputs0 = valueslow
    alpha1 = 255
    else
    drawtext("short",barindex,high,dialog,bold,18) coloured(255,0,0)
    endif
    endif
     
    
     
    return outputs0 coloured(65,105,225,alpha0) style(line,4), outputs1 coloured(255,0,0,alpha1) style(line,4)
    #150162 quote
    finplus
    Participant
    Master

    Est-ce que ça pourrait ressembler à cela ? (je viens de le coder – ça a l’air de retourner les bonnes informations).

    merci.

     

    ////// Trend Enveloppes
    timePeriod=14
    Deviation=0.1
    
    price=customclose
    
    dsma = WeightedAverage[timePeriod](price)
    valuesLow = (1 - deviation / 100) * dsma
    valuesHigh = (1 + deviation / 100) * dsma
    
    inputs=price
    
    if (inputs > valuesHigh) then
    trend = 1
    elsif (inputs < valuesLow) then
    trend = -1
    endif
    
    screener [(trend >0 and trend[1] <0) or (trend < 0 and trend[1] > 0)]
    #150220 quote
    Nicolas
    Keymaster
    Master

    Sans avoir testé, à la lecture du code, le screener a l’air d’être correct, bravo.

    #152082 quote
    finplus
    Participant
    Master

    Bonjour,

    je reviens sur mon précédent screener. En pratique, pourriez vous le tester car j’ai l’impression qu’il ne renvoie pas les bonnes situations.

    Merci.

    #152113 quote
    finplus
    Participant
    Master

    En fait, je souhaiterais que les changements de tendance soient filtrés par la kama200 (autrement dit les long positions apparaissent uniquement lorsque la kama200 est haussière(par ex 3 kama 200 successives en hausse) et les short apparaissent uniquement lorsque la kama200 est baissière (par ex 3 kama successives en baisse).

    Le problème est que je ne sais pas après quelle expression du code il faut insérer ces filtres KAMA200.

    merci.

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

Srceener Trend Enveloppes


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
finplus @finplus Participant
Summary

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

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