Décompte clôture barre courante

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #214506 quote
    MatricielMatriciel
    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
    NicolasNicolas
    Keymaster
    Legend

    Le décompte en quelle unité ?

    #214509 quote
    MatricielMatriciel
    Participant
    Master

    Le décompte en 1 minute.

    #214513 quote
    NicolasNicolas
    Keymaster
    Legend

    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
    MatricielMatriciel
    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
    MatricielMatriciel
    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
    #259304 quote
    RICOURICOU
    Participant
    Junior

    Bonjour MA, je recherchais la même chose et ton code est pas mal, sauf qu’il n’est pas très réactif à la seconde près, il y a un décalage dans l’affichage. Aurais tu une solution pour l’améliorer ?


Viewing 7 posts - 1 through 7 (of 7 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

Décompte clôture barre courante


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Matriciel @matriciel Participant
Summary

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

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