Aide code : croisement bande de Bollinger par Bougies

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #235992 quote
    alberto97400
    Participant
    New

    Bonjour,

    Suis à la recherche d’une programmation du croisement des bandes de bollinger & bougie journalière :

    Ligne du bas de la Bollinger : croisement de la bougie à la hausse,

    Ligne du haut de la Bollinger : croisement de la bougie à la baisse,

    Cf copie écran.

    Merci,

    Bien cordialement.

    #236001 quote
    Iván González
    Moderator
    Master

    Holà. Série aussi :

    bbup=BollingerUp[20](close) 
    bbdn=bollingerdown[20](close)
    
    if close crosses over bbdn THEN 
    drawarrowup(barindex,bbdn)coloured("green")
    elsif close crosses under bbup then
    drawarrowdown(barindex,bbup)coloured("red")
    endif
    
    return bbup as "bollinger Up", bbdn as "bollinger down"
    #236012 quote
    alberto97400
    Participant
    New

    Bonjour,

    Merci pour ce retour, j’ai un message bloquant ?

    Voir pj 2

    #236019 quote
    Alai-n
    Participant
    Veteran

    alberto97400 Vous essayez de l’exécuter sur ProScreener, ce ne sera pas possible écrit comme ça ! Ce code s’applique dans la partie Indicateur !!!

    #236020 quote
    Alai-n
    Participant
    Veteran

    alberto97400 cela devrait être mieux comme ça pour “Screener”

    bbup=BollingerUp[20](close)
    bbdn=bollingerdown[20](close)

    if close crosses over bbdn THEN
    Signal = 1
    //drawarrowup(barindex,bbdn)coloured(“green”)
    elsif close crosses under bbup then
    Signal = -1
    //drawarrowdown(barindex,bbup)coloured(“red”)
    endif

    Screener[close crosses over bbdn Or close crosses under bbup](Signal as “Signal”)

    #236065 quote
    alberto97400
    Participant
    New

    Merci Alai-n, je fais souvent cet erreur, je teste…

    Encore merci !

    #236069 quote
    alberto97400
    Participant
    New

    J’ai testé, ça marche, juste changé la période des BB à 150 comme sur mes graphiques, pour coller à mes paramètres journaliers…

    Merci.

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

Aide code : croisement bande de Bollinger par Bougies


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by alberto97400
1 year, 6 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 08/01/2024
Status: Active
Attachments: 2 files
Logo Logo
Loading...