renvoi d’une valeur ancienne

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #207828 quote
    bobo
    Participant
    Average

    Bonjour à tous et à Nicolas, pourrai-je avoir de l’aide pour coder mon ancien indicateur. Je m’explique.

    Mon indicateur s’appelle “haut”

    Voiçi son code:

    a=high[1]
    c1=high<=high[1] and high[1]>=high[2]
    if (c1) then
    result= a[0]
    endif
    return result

    Mon indicateur=7.41 le 31/10/2011

    J’aimerai coder un indicateur qui me renvoi la valeur de ‘haut’ l’avant avant dernière fois qu’il a changé c’est à dire 6.97 le 20/10/2011.

    Merci par avance pour la réponse.

    AMC.png AMC.png
    #207831 quote
    JC_Bywan
    Moderator
    Master

    Bjr,

    Si seul l’accès à l’avant avant dernier “result” est le but, parmi les façons de faire on peut par exemple générer la variable avantavantdernier comme ceci:

    a=high[1]
    c1=high<=high[1] and high[1]>=high[2]
    if (c1) then
    avantavantdernier=avantdernier
    avantdernier=result
    result= a
    endif
    
    return result, avantavantdernier
    #207918 quote
    bobo
    Participant
    Average

    Merci beaucoup.

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

renvoi d’une valeur ancienne


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
bobo @bobo Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by bobo
3 years, 1 month ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/21/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...