Optimisation visuel rapidité renko

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #239970 quote
    Atemi19Atemi19
    Participant
    New

    Bonjour, souvent j’ai un problème de latence car le temps que ça calcul que le prix baissé ou monte de x points ou ticks pour afficher la brique.

    Une des solutions que j’ai trouver est par exemple je choisis le nombre de points et lorsque le prix descend de ce nombre de points une droite est dessiné rouge quand c baissier vert quand c haussier. Est il possible de le faire sans l’inversion ?

    Cordialement.

    #239995 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Holà. voici un exemple de comment contrôler les niveaux en fonction de la quantité de mouvement.

    pt=50
    diff=pt*pipvalue
    
    once nextHighlevel=high
    once nextLowlevel=low
    
    if high>nextHighlevel then
    drawsegment(prevx,high,barindex,high)coloured("green")
    
    nextHighlevel=high+diff
    nextLowlevel=high-diff
    //drawsegment(barindex+5,nextLowlevel,barindex,nextLowlevel)coloured("red")style(dottedline)
    //drawsegment(barindex+5,nextHighlevel,barindex,nextHighlevel)coloured("green")style(dottedline)
    prevx=barindex
    endif
    
    if low<nextLowlevel then
    drawsegment(prevx,low,barindex,low)coloured("red")
    
    nextLowlevel=low-diff
    nextHighlevel=low+diff
    //drawsegment(barindex+5,nextLowlevel,barindex,nextLowlevel)coloured("red")style(dottedline)
    //drawsegment(barindex+5,nextHighlevel,barindex,nextHighlevel)coloured("green")style(dottedline)
    prevx=barindex
    endif
    
    if islastbarupdate then
    drawsegment(prevx,nextLowlevel,barindex,nextLowlevel)coloured("red")style(dottedline)
    drawsegment(prevx,nextHighlevel,barindex,nextHighlevel)coloured("green")style(dottedline)
    endif
    
    return 
    #240005 quote
    Atemi19Atemi19
    Participant
    New

    merci ivan

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

Optimisation visuel rapidité renko


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Atemi19 @atemi19 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Atemi19Atemi19
1 year, 10 months ago.

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