BB20 Multicolore

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #108929 quote
    supertiti
    Participant
    Master

    Bonjour à tous,

    Il y a 3 semaines Anthon a remonté sur ce site un code de suivi de tendance largement “inspiré” pour ne pas dire aspiré du travail de Julien Flot , je vous conseille de suivre ses vidéos (Julien) … c’est un bon !

    J’ai eu l’idée d’adapter des bandes de Bollinger avec le suivi de tendance , par défaut j’ai mis 20/2 chacun paramétrera à sa convenance.

    Je viens de poster le code dans les indicateurs de PRC. ( en attente d’approbation )

    // BB20 MULTICOLORE  30/09/2019
    
    MM20=average[20](close)
    MM50=average[50](close)
    MM100=average[100](close)
    MM200=average[200](close)
    BollSup =Average[p](close)+dev*std[p](close)
    BollInf = Average[p](close)-dev*std[p](close)
    
    //rouge (baissier prix sous moyenne mobile 200
    c1= (close<MM200)
    if c1 then
    Indicateur = close//Indicateur=1
    r=250
    g=0
    b=0
    ENDIF
    //orange( rebond technique)
    c2= c1 and(MM20<close)
    if c2 then
    Indicateur=close //=1
    r=255
    g=160
    b=0
    ENDIF
    //jaune (phase1 nouveau cycle)
    c3= c1 and(MM50<close)and(mm50<mm200)and(close<mm200)
    if c3 then
    Indicateur=close //=1
    r=800
    g=250
    b=0
    ENDIF
    //vert fluo ( phase 2 nouveau cycle)
    c4= (MM200<close)and(MM50<close)and(MM50<MM200)
    if c4 then
    Indicateur=close //=1
    r=0
    g=300
    b=0
    ENDIF
    //vert foncé ( au dessus de tte moyenne mobile, cycle mur)
    C5= (MM200<MM50)and(MM50<close)and(MM20<close)
    if c5 then
    Indicateur=close //=1
    r=0
    g=150
    b=0
    ENDIF
    //bleu (retournement de tendance)
    c6= (MM100<MM200) and(MM50<MM200)and (close<MM200)and(MM100<close)and(MM50<MM100)
    if c6 then
    Indicateur=close //=1
    r=0
    g=0
    b=300
    ENDIF
    //bleu (retournement de tendance 2 )
    c6bis= (MM100<MM200) and(MM50<MM200)and (close<MM200)and(MM50<close)and(MM100<MM50)
    if c6bis then
    Indicateur=close //=1
    r=0
    g=0
    b=300
    ENDIF
    //gris (phase 5 affaiblissement ou retournement à la baisse, neutre)
    c7= (MM200<close) and(close<MM100)and (MM200<MM100)and(MM200<MM50)
    if c7 then
    Indicateur=close //=1
    r=150
    g=150
    b=150
    ENDIF
    //bleu bouteille (consolidation)
    c8=(MM200<MM50)and(MM200<close)and(MM100<close)and((close<MM50)or(close<MM20))
    if c8 then
    Indicateur=close //=1
    r=0
    g=250
    b=200
    ENDIF
    max1=Bollsup
    min1=Bollinf
    DRAWCANDLE(max1, min1, max1, min1)coloured(R,G,B,x)
    
    RETURN MM20 style(line) as "MM20" , Bollsup as "Bollsup",Bollinf as "Bollinf", indicateur
    
    // Variables :
    // p = 20
    // dev = 2
    // x = 125
    

    J’aimerai cependant lui rajouter un bout de code mais je n’arrive pas à mes fins, aussi je sollicite une bonne âme

    voilà le bout de code que j’aimerai faire apparaître sur les BB

    BollSup =Average[p](close)+dev*std[p](close)
    BollInf = Average[p](close)-dev*std[p](close)
    //jaune (phase1 nouveau cycle)
    c3= c1 and(MM50<close)and(mm50<mm200)and(close<mm200)
    if c3 then
    Indicateur=close //=1
    r=800
    g=250
    b=0
    ENDIF
    max1=Bollsup
    min1=Bollinf
    DRAWCANDLE(max1, min1, max1, min1)coloured(R,G,B,250)
    
    

    Alors à vos crayons ! bonne journée à tous

    BB20-Multicolore.jpg BB20-Multicolore.jpg
    #109539 quote
    supertiti
    Participant
    Master

    Bonjour à tous ,

    Alors ici personne n’aurait d’idée pour ajouter le bout de code “yellow candle ” pour affûter le code ?

    J’y crois pas !

    Allez un petit effort …

    #109593 quote
    Nicolas
    Keymaster
    Master

    Je pense que la correction ci-dessous doit coller:

    L’erreur devait sans doute venir du fait que tu voulais colorier en rouge 800 (il n’y a que 255 niveaux de rouges possibles).

    // BB20 MULTICOLORE  30/09/2019
    
    p = 20
    dev = 2
    x = 125
    
    MM20=average[20](close)
    MM50=average[50](close)
    MM100=average[100](close)
    MM200=average[200](close)
    BollSup =Average[p](close)+dev*std[p](close)
    BollInf = Average[p](close)-dev*std[p](close)
    
    
    
    //rouge (baissier prix sous moyenne mobile 200
    c1= (close<MM200)
    if c1 then
    Indicateur = close//Indicateur=1
    r=250
    g=0
    b=0
    ENDIF
    //orange( rebond technique)
    c2= c1 and(MM20<close)
    if c2 then
    Indicateur=close //=1
    r=255
    g=160
    b=0
    ENDIF
    //jaune (phase1 nouveau cycle)
    c3= c1 and(MM50<close)and(mm50<mm200)and(close<mm200)
    if c3 then
    Indicateur=close //=1
    r=800
    g=250
    b=0
    ENDIF
    //vert fluo ( phase 2 nouveau cycle)
    c4= (MM200<close)and(MM50<close)and(MM50<MM200)
    if c4 then
    Indicateur=close //=1
    r=0
    g=300
    b=0
    ENDIF
    //vert foncé ( au dessus de tte moyenne mobile, cycle mur)
    C5= (MM200<MM50)and(MM50<close)and(MM20<close)
    if c5 then
    Indicateur=close //=1
    r=0
    g=150
    b=0
    ENDIF
    //bleu (retournement de tendance)
    c6= (MM100<MM200) and(MM50<MM200)and (close<MM200)and(MM100<close)and(MM50<MM100)
    if c6 then
    Indicateur=close //=1
    r=0
    g=0
    b=300
    ENDIF
    //bleu (retournement de tendance 2 )
    c6bis= (MM100<MM200) and(MM50<MM200)and (close<MM200)and(MM50<close)and(MM100<MM50)
    if c6bis then
    Indicateur=close //=1
    r=0
    g=0
    b=300
    ENDIF
    //gris (phase 5 affaiblissement ou retournement à la baisse, neutre)
    c7= (MM200<close) and(close<MM100)and (MM200<MM100)and(MM200<MM50)
    if c7 then
    Indicateur=close //=1
    r=150
    g=150
    b=150
    ENDIF
    //bleu bouteille (consolidation)
    c8=(MM200<MM50)and(MM200<close)and(MM100<close)and((close<MM50)or(close<MM20))
    if c8 then
    Indicateur=close //=1
    r=0
    g=250
    b=200
    ENDIF
    //jaune (phase1 nouveau cycle)
    c9= c1 and(MM50<close)and(mm50<mm200)and(close<mm200)
    if c9 then
    Indicateur=close //=1
    r=255
    g=255
    b=0
    ENDIF
    
    
    max1=Bollsup
    min1=Bollinf
    DRAWCANDLE(max1, min1, max1, min1)coloured(R,G,B,x)
    
    RETURN MM20 style(line) as "MM20" , Bollsup as "Bollsup",Bollinf as "Bollinf", indicateur
    
    
    #109626 quote
    supertiti
    Participant
    Master

    Merci Nicolas , effectivement 800 c’est too much , une étourderie de plus au compteur

    Bonne journée

    #109732 quote
    JC_Bywan
    Moderator
    Master

    Il y a quelques 300 qui trainent aussi pour g et b…

    #109760 quote
    Nicolas
    Keymaster
    Master

    Bien vu, il reste aussi un 800 à la ligne 36!

    #109812 quote
    supertiti
    Participant
    Master

    Bonjour à tous,

    En préalable vous aurez noté que “Anthon” la personne qui a apporté ce code sur cette plateforme a disparu de la surface de la terre !!! donc difficile de lui demander quelques renseignements , sa chaine youtube indiquée dans la rubrique library

    n’existe plus ??!!

    J’ai modifié les codes 300 et 800 par des codes valides soient :

    vert fluo = 0 255 72

    bleu clair = 0 245 255

    bleu roy = 0 204 203

    le code modifié :

    // BB20 MULTICOLORE BIS  10/10/2019
    
    // SBA V1  SUPER BOLLINGER ANTHON
    
    MM20=average[20](close)
    MM50=average[50](close)
    MM100=average[100](close)
    MM200=average[200](close)
    // p = 20
    // dev = 2
    BollSup =Average[p](close)+dev*std[p](close)
    BollInf = Average[p](close)-dev*std[p](close)
    //rouge (baissier prix sous moyenne mobile 200
    c1= (close<MM200)
    if c1 then
    Indicateur = close//Indicateur=1
    r=250 // rouge
    g=0
    b=0
    ENDIF
    //orange( rebond technique)
    c2= c1 and(MM20<close)
    if c2 then
    Indicateur=close //=1
    r=255
    g=160
    b=0
    ENDIF
    //jaune (phase1 nouveau cycle) ===> les histos sont ROSE
    c3= c1 and(MM50<close)and(mm50<mm200)and(close<mm200)
    if c3 then
    Indicateur=close //=1
    r= 255 // 800       // 255,0,247
    g= 0 // 250
    b= 247 // 0
    ENDIF
    //vert fluo ( phase 2 nouveau cycle)
    c4= (MM200<close)and(MM50<close)and(MM50<MM200)
    if c4 then
    Indicateur=close //=1
    r= 0 // vert fluo // 0
    g= 255 // 300
    b= 72 // 0
    ENDIF
    //vert foncé ( au dessus de tte moyenne mobile, cycle mur)
    C5= (MM200<MM50)and(MM50<close)and(MM20<close)
    if c5 then
    Indicateur=close //=1
    r=0
    g=150
    b=0
    ENDIF
    //bleu (retournement de tendance)
    c6= (MM100<MM200) and(MM50<MM200)and (close<MM200)and(MM100<close)and(MM50<MM100)
    if c6 then
    Indicateur=close //=1
    r= 0 // bleu clair //  0
    g= 245 // 0
    b= 255 // 300
    ENDIF
    //bleu (retournement de tendance 2 )
    c6bis= (MM100<MM200) and(MM50<MM200)and (close<MM200)and(MM50<close)and(MM100<MM50)
    if c6bis then
    Indicateur=close //=1
    r= 0 // bleu roy //0
    g= 204 // 0
    b= 203 // 300
    ENDIF
    //gris (phase 5 affaiblissement ou retournement à la baisse, neutre)
    c7= (MM200<close) and(close<MM100)and (MM200<MM100)and(MM200<MM50)
    if c7 then
    Indicateur=close //=1
    r=150
    g=150
    b=150
    ENDIF
    //bleu bouteille (consolidation)
    c8=(MM200<MM50)and(MM200<close)and(MM100<close)and((close<MM50)or(close<MM20))
    if c8 then
    Indicateur=close //=1
    r=0
    g=250
    b=200
    ENDIF
    max1=Bollsup
    min1=Bollinf
    DRAWCANDLE(max1, min1, max1, min1)coloured(R,G,B,x)
    
    RETURN MM20 style(line) as "MM20" , Bollsup as "Bollsup",Bollinf as "Bollinf", indicateur
    
    // Variables :
    // p = 20
    // dev = 2
    // x = 125
    

    Bons trades à tous…

    #115601 quote
    anthon
    Participant
    Junior

    Pour les couleurs je ne savais pas que la graduation s’arrete a 255, j’ai tapais au pif des chiffres jusqu’à ce que cela fasse la couleur souhaitais ne générant aucun problème dans le code . A présent je le sais, merci à vous .

    superboll-Copie2.jpeg superboll-Copie2.jpeg
    #115612 quote
    supertiti
    Participant
    Master

    Bonjour Anthon

    Content de te voir à nouveau sur Prorealcode.

    J’utilise quelques uns de tes codes journellement avec un certain succès, une fois apprivoisés ce sont de très bons indicateurs !!

    Où est passé ta chaine youtube ? j’aime bien tes vidéos décalées.

    Bonnes fêtes à tous …

    #115621 quote
    anthon
    Participant
    Junior

    Bonjour supertiti. J’ai supprimé la chaîne YouTube en effet c était plutôt pour rigoler. Et c’est beaucoup mieux prorealcode. Excellente fête egalement

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

BB20 Multicolore


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
supertiti @supertiti Participant
Summary

This topic contains 9 replies,
has 4 voices, and was last updated by anthon
6 years, 2 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 09/30/2019
Status: Active
Attachments: 2 files
Logo Logo
Loading...