Optimisation visuel rapidité renko

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #239970 quote
    Atemi19
    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ález
    Moderator
    Master

    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
    Atemi19
    Participant
    New

    merci ivan

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

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 Atemi19
1 year, 3 months ago.

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