où poster le code de mon indicateur personnel pour le partager ?

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #180030 quote
    pierre66
    Participant
    Senior

    Bonsoir Nicolas ,

    Voici le fichier, ma demande reste la même à savoir:

    1. en positif quand il y a un trendup ,avec  affichage positif à gauche  des +hauts des prix , et délimité par un segment.. (variation% à 2 chiffres après la virgule)
    2. en négatif quand il y a un trendown , donc affichage négatif à droite des +bas des prix et délimité par un segment..(variation % à 2 chiffres après la virgule ).
    3. Du coup l’affichage ne se fait plus sur le croisement des trends up et down .
    4. Merci de vous lire voici un exemple en fichier joint .Cordialement
    5. Pierre
    ARCELOR-VISUEL.jpg ARCELOR-VISUEL.jpg
    #180077 quote
    Nicolas
    Keymaster
    Master

    ah ok, il faut afficher la performance du plus haut ou plus bas atteint quand on change de tendance, c’est plus clair avec l’image !

    #180085 quote
    Nicolas
    Keymaster
    Master

    Ci-dessous le code en question avec les modifications sur les performances affichées. Félicitations Pierre pour ton travail, je te suit sur twitter, tu penses incorporer cela dans ton LTS-Evoluzione ?

    //"Little trend Box v5"
    //DAILY : variables entier par défaut
    // p1=1,2,3
    //p2=15,..20 // entier défaut
     
    //HEBDO:variables entier par défaut
    // p1 =2
    //p2= 15
    once lastpoint = 0
    offset = average[50,0](range) * 2
    hs= (high-low)
     
     
    hh= highest[p1](hs)
    ll= lowest[p1](hs)
     
    hi10=highest[p2](high)
    lo10=lowest[p2](low)
    median= ( hi10+lo10)/2
     
    if high>= hi10 and hs>= hh   then
    trendown=( lo10+median+close)/3
    endif
    if low<= lo10 and hs<=ll  then
    trendown=( hi10+median+close)/3
    endif
     
    if low<= lo10 and hs<=ll then
    trendup=( low+median+close)/3
     
    endif
     
    if high>= hi10 and hs >= hh  then
    trendup= ( high+median+close)/3
    endif
    trend = (trendup+trendown)/2
     
    if TRENDUP crosses over TRENDOWN then//>
    drawarrowup(barindex,TRENDOWN-10*PipSize) coloured(0,255,0)
    r=0
    g=255
    b=0
    ELSif TRENDUP crosses under TRENDOWN then//<
    drawarrowdown(barindex,TRENDUP+10*PipSize) coloured(255,0,0)
    r=255
    g=0
    b=0
    endif
    ////////////////
    
    
    if TRENDUP crosses over TRENDOWN  then//>
    ihh = high
    iclose=close
    BOTy = TRENDUP//low//close
    BOTx = barindex
    lastX = BOTx
    lastY = BOTy
    xx    = BOTy
    //diff  = round((xx - yy)*100 / yy,2)
    drawsegment(illbar,ill,illbar-10,ill) coloured(255,0,0)
    DrawText("#diff#%",illbar-12,ill,Dialog,Bold,16) coloured(255,0,0)
    ELSif TRENDUP crosses under TRENDOWN and (lastpoint=-1 or lastpoint=0) then//<
    ill = low
    iclose=close
    TOPy = trendown//high//close
    TOPx = barindex
    lastX = TOPx
    lastY = TOPy
    yy    = TOPy
    //diff  = round((yy - xx)*100 / xx,2)
    drawsegment(ihhbar,ihh,ihhbar-10,ihh) coloured(0,255,0)
    DrawText("#diff#%",ihhbar-12,ihh,Dialog,Bold,16) coloured(0,255,0)
    endif
    
    if trendup>trendown then
    ihh=max(ihh,high)
    diff=round((ihh-iclose)*100/iclose,2)
    if ihh<>ihh[1] then
    ihhbar=barindex
    endif
    else
    ill=min(ill,low)
    diff=round((iclose-ill)*100/iclose,2)
    if ill<>ill[1] then
    illbar=barindex
    endif
    endif
    ///////////////////
    drawcandle(TRENDUP,TRENDOWN, TRENDUP,TRENDOWN)coloured (r,g,b,50)
     
    
    
    RETURN trendup coloured (0,255,0)as "trendup ", trendown coloured (255,0,0)as " trendown", trend coloured (255,255,255)as "trend"
    
    PLermite thanked this post
    performances-trend-following.png performances-trend-following.png
    #180095 quote
    pierre66
    Participant
    Senior

    Bonjour Nicolas,

    Un grand merci à toi.

    Ca y est , tu m’as démasqué…On ne peut rien te cacher, seulement , tu sais je suis un autodidacte et je code comme je peux… ,

    j’ai un très grand respect pour toi et tout le travail que tu accomplis,  .. “tout à l’air si simple ..”

    moi je rame pour arriver à faire des petits pas..

    Je vais essayer de comprendre ce que tu as fait et l’intégrer au “LTS -Evoluzione” version TF et version 5 .

    j’aimerais pouvoir t’envoyer le code mais de façon “protégée” pour avancer davantage avec toi , mais je ne sais pas encore comment ,

    car le LTB-v5 est apparu sur le site sans protection. Tu as peut être une idée?

    Encore Merci ,

    Pierre

    PLermite thanked this post
    #180115 quote
    Nicolas
    Keymaster
    Master

    On peut me contacter via la page contact ou sur nicolas[at]prorealcode.com ! 😉

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

où poster le code de mon indicateur personnel pour le partager ?


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
pierre66 @pierre66 Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 06/30/2020
Status: Active
Attachments: 9 files
Logo Logo
Loading...