Calcul du plus haut sur une plage donnée

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

    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
    turameturame
    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.
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

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 turameturame
4 years, 3 months ago.

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