TEND RL DE NICOLAS

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #237909 quote
    kats
    Participant
    Junior

    Bonjour

    J’utilise cet indicateur de Nicolas

    TreL – Linear Regression Trend

    je l’utilise sur du renko 2points et du renko 8 points.

    je le mets indépendamment sur les 2 et il fonctionne très bien sur chaque longueur de Renko fournissant un signal très intéressant.

    Ma demande:

    je souhaite installer 2 fois le même indicateur sur le renko 2

    le premier classique et le second qui représenterait l’indicateur du renko 8 sur mon  graphique renko2.

    Pour se faire le ratio  à appliquer est de 10 à savoir qu’il faut que ce même code affiche une valeur 10 fois supérieur.

    je n’y parviens pas malgré le changement de len ou lenght passant de 100 à 1000 , il doit y avoir autre chose a modifier dans le code pour obtenir le résultat souhaité.

    Est ce que le regretté Nicolas est toujours actif sur le site ou y-a-t-il quelqu’un susceptible de m’aider svp?

     

    je remets ci apres le code :

    // --- settings
    len = 100
    off= 0
    dev= 0.01 //Deviation (minval=0.01)
    // --- end of settings
     
    once length=100
    if barindex>len then
    c = close
    cp = c
    lreg = linearregression[len](close)[off]
    lregx = linearregression[len](close)[off+1]
    b = barindex
    s = lreg - lregx
    intr = lreg - b*s
    dS = 0.0
    for i=0 to len-1 do
    dS= dS + square(cp[i]-(s*(b-i)+intr))
    de = sqrt(dS/(len))
    up = (-de*dev) + c
    dn= (de*dev) + c
    next
     
    c5=(high+low)/2
    //
     
    factor = 0.001
     
    hb = 0.00
    hb = (hb[1])
    hl = 0.000
    hl = (hl[1])
     
    lb = 0.00
    lb = (lb[1])
    l1 = 0.000
    l1 = (l1[1])
     
    c2 = 0
    c2 = (c2[1]) + 1
     
    trend = 0
    trend = (trend[1])
    n = dn
    x = up
     
    if barindex=0 then
    c2 = 0
    lb = n
    hb = x
    l1 = c5
    hl = c5
    //hl
    if c2 = 1 then
    if x >= hb[1] then
    hb = x
    hl = c5
    trend = 1
    //trend
    else
    lb = n
    l1 = c5
    trend = -1
    //trend
    endif
    endif
    endif
     
    if c > 1 then
     
    if trend[1] > 0 then
    hl = max(hl[1], c5)
    if x >= hb[1] then
    hb = x
    //hb
    else
    if n < hb[1] - hb[1] * factor then
    lb = n
    l1 = c5
     
    trend = -1
    //trend
    endif
    endif
    else
    l1 = min(l1[1], c5 )
     
    if n <= lb[1] then
    lb = n
    //lb
    else
    if x > lb[1] + lb[1] * factor then
    hb = x
    hl = c5
     
    trend = 1
    //trend
    endif
    endif
    endif
    endif
     
    if trend = 1 then
    v = hb
    r=255
    g=255
    b=0
    
    //backgroundcolor (176,242,182)
    endif
    if trend = -1 then
    v = lb
    r=0
    g=0
    b=0
    
    //backgroundcolor (254,191,210)
    endif
    endif
    band = average[length](AverageTrueRange[1](close))*2
    
    return v coloured(r,g,b) style(line,3)//, v+band coloured(168,168,168), v-band coloured(168,168,168)
    #237910 quote
    kats
    Participant
    Junior

    merci d’avance

    cdlt

    #238116 quote
    kats
    Participant
    Junior

    Comme quoi la qualité d’un site de service dépend uniquement des responsables aux manettes…

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

TEND RL DE NICOLAS


Support Plateforme : Graphiques, Données & Courtiers

New Reply
Author
author-avatar
kats @kats Participant
Summary

This topic contains 2 replies,
has 1 voice, and was last updated by kats
1 year, 4 months ago.

Topic Details
Forum: Support Plateforme : Graphiques, Données & Courtiers
Language: French
Started: 09/21/2024
Status: Active
Attachments: No files
Logo Logo
Loading...