William %R

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12526 quote
    Plscap
    Participant
    Veteran

    Bonjour à tous,

    Est ce que par hasard l’un d’entre vous connaitrais

    le code du William %R sur PRT?

     

    Merci à tous.

    #12541 quote
    Nicolas
    Keymaster
    Master

    Bonjour, il existe une instruction du langage pour récupérer la valeur du Williams % :
    http://www.prorealcode.com/documentation/williams/

    A moins que tu aies besoin de la formule?

    #12543 quote
    Plscap
    Participant
    Veteran

    Bonjour Nicolas,

    Je te remercie pour ta réponse,

    J’avais lu cette doc, et en effet j’aurai eu besoin de la formule/code sur PRT.

    Bien qu’il est déjà par défaut sur PRT, j’aurai souhaité voir à quoi ressemblait le code.

    #12552 quote
    Nicolas
    Keymaster
    Master

    Très bien, la formula est simple et ressemble beaucoup à un stochastique, comme pour beaucoup d’oscillateur borné on cherche le centre du prix et ainsi déterminer ses extrêmes souvent appelés zone de sur-achat et zone de sur-vente.

    Ci-joint le code et l’indicateur attaché.

    //PRC_WilliamsRpercent
    //01.09.2016
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    
    period = 14
    
    hh = highest[period](high)
    ll = lowest[period](low)
    
    Wp = ((hh-close)/(hh-ll))*-100
    
    return Wp as "Williams R percent", -20 as "-20 level", -80 as "-80 level"
    #12573 quote
    Plscap
    Participant
    Veteran

    Bonjour Nicolas,

    Un grand merci pour ton aide,

    c’est bien le code que je recherchais.

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

William %R


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Plscap @flodefacebook Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 08/31/2016
Status: Active
Attachments: No files
Logo Logo
Loading...