Décompte clôture barre courante

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #214506 quote
    Matriciel
    Participant
    Master

    Bonjour à tous,

    Existe-t-il un moyen d’afficher le décompte pour la clôture de la barre courante sur un indicateur personnalisé qui s’affiche en-dessous du prix ?

    Merci pour vos réponses; en vous souhaitant une bonne journée.

    #214507 quote
    Nicolas
    Keymaster
    Master

    Le décompte en quelle unité ?

    #214509 quote
    Matriciel
    Participant
    Master

    Le décompte en 1 minute.

    #214513 quote
    Nicolas
    Keymaster
    Master

    Donc il doit s’afficher en secondes. Le code ci-dessous trace la quantité de secondes restantes avant la fin de la bougie courante:

    tf=gettimeframe 
    
    counter=(opentimestamp+tf)-timestamp
    
    return counter
    #214541 quote
    Matriciel
    Participant
    Master

    Merci Nicolas, ça fonctionne.

    Peut-on l’avoir sans le tracé sur l’indicateur, juste avoir le décompte sous forme de “vignette” ?

    #214583 quote
    Matriciel
    Participant
    Master

    J’ai trouvé !

    Voici ce que j’ai fais :

    tf = gettimeframe
    counter = (opentimestamp+tf)-timestamp
    if counter then
    drawtext("#counter#",barindex,100,sansserif,standard,15) coloured(0,0,0)
    endif
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Décompte clôture barre courante


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Matriciel @matriciel Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 05/11/2023
Status: Active
Attachments: No files
Logo Logo
Loading...