indicateur dave landry

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #173562 quote
    thebaronthebaron
    Participant
    Average

    Bonjour

    Le principe est un compteur:

    + bas > mm = 1

    + haut < mm= -1

    sinon = 0

    Merci pour votre aide

    #173566 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ne doublez pas les messages. Posez votre question une seule fois et dans un seul forum. Tous les messages doubles seront supprimés de toute façon, donc poster plusieurs fois la même question vous fera perdre votre propre temps et ne vous donnera pas de réponse plus rapidement.

    La double publication crée juste de la confusion dans les forums.

    #173567 quote
    thebaronthebaron
    Participant
    Average

    bonjour

    ce n’zest pas la meme fonction, j ai remi un post dave luandry indicateur car mon post precedant avait disparu,

    #173568 quote
    thebaronthebaron
    Participant
    Average

    pourquoi m’avoir supprimer mes 2 post ?

    #173576 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Désolé, je pensais que c'était un double post. Je l'ai restauré. Veuillez poster plus de détails. Si vous avez également des captures d'écran, veuillez les joindre.

    #173579 quote
    thebaronthebaron
    Participant
    Average

    Merci de vouloir me corriger

    / — settings
    MM = Average[P,TYPE](close)
    // — end of settings

    if low > MM then
    loc=1
    if high < MM then
    loc=-1
    else
    loc=0
    endif

    return loc ,

    #173581 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Je ne connais pas cet indicateur, mais votre code est correct. Il suffit de supprimer la virgule à la fin de la ligne 13 :

    / — settings
    MM = Average[P,TYPE](close)
    // — end of settings
    
    if low > MM then
       loc=1
    if high < MM then
       loc=-1
    else
       loc=0
    endif
    
    return loc

    bien sûr, vous devez également avoir déclaré les variables P et TYPE dans le fichier ITF.

    #173583 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    J’ai supprimé une erreur dans la séquence IF … ELSIF … ENDIF:

    // — settings
    MM = Average[P,TYPE](close)
    // — end of settings
     
    if low > MM then
       loc=1
    if high < MM then
       loc=-1
    else
       loc=0
    endif
     
    return loc
    #173586 quote
    thebaronthebaron
    Participant
    Average

    // — settings
    MM = Average[P,TYPE](close)
    loc=0
    // — end of settings

    if low > MM then
    loc=loc+1
    endif
    if high < MM then
    loc=loc-1
    else
    loc=0
    endif

    return loc

    j ai  ete obliger de rajouter endif apres loc+1 sinon ne me l’acceptait pas, les variables sont declarer. Mais ca ne fonctionne pas comme ca le devrait

    Le principe c ‘est un compteur de bar

    si + bas de la bar > a la mm =+1

    si = haut de la bar < a la mm =-1

    et remise a zero si aucune des 2 conditions respecter

    #173588 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Sur ma ligne 7, il vous suffit d'utiliser ELSIF au lieu de IF. Dans l'état actuel des choses, cela ne peut pas fonctionner, en raison du double IF.

    #173593 quote
    thebaronthebaron
    Participant
    Average

    merci  et j’ ai du supprimer loc=0 ds parametres pour que le compteur fonctionne

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

indicateur dave landry


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
thebaron @thebaron Participant
Summary

This topic contains 10 replies,
has 2 voices, and was last updated by thebaronthebaron
5 years, 2 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 07/13/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...