Calcul du plus haut sur une plage donnée

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #194987 quote
    turame
    Participant
    Master

    Bonjour à tous,

    Je souhaiterais calculer le plus haut du RSI sur une plage antérieur (entre barindex-5 et barindex-10 par exemple).

    Quelqu’un peut-il me dire ce qui ne va pas avec mon code ? Merci

    indicateur=RSI[14](close)
    
    for i=5 to 10 do
    
    if indicateur[i]>indicateur[i-1] then
    plushaut=indicateur[i]
    endif
    
    next
    
    
    #194988 quote
    Nicolas
    Keymaster
    Master

    Plus simple, utiliser l’instruction HIGHEST sur 5 périodes, d’il y a 5 périodes avant la bougie actuelle:

    indicateur=RSI[14](close)
    
    plushautrsi = highest[5](indicateur)[5]
    #195001 quote
    turame
    Participant
    Master

    Parfait Nicolas, merci pour ton aide une fois de plus 😉

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

Calcul du plus haut sur une plage donnée


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
turame @turame Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 06/09/2022
Status: Active
Attachments: No files
Logo Logo
Loading...