Indice d’un maximum (/Minimum)

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #253945 quote
    umrk
    Participant
    New

    Si je veux trouver le Min ou le Max de quelque chose sur une période (p ex la clôture) il me suffit de faire :

    Vmax=Highest[150] (Close)

     

    Parfait. Mais comment trouver l’indice du  jour où ce max a été atteint ? (= EQUIV Excel)

     

    Merci !

    #253949 quote
    Iván González
    Moderator
    Master

    tienes 2 opciones

    Vmax = highest[150](close)
    idx = highestbars[150](close)
    
    myHi=0
    
    for i=0 to 149 do
       if close[i]>myHi then
          myHi=close[i]
          myHix=barindex[i]
          myidx=i
       endif
    next
    
    print myidx as "Loop"
    print idx as "function"
    return
    
    umrk thanked this post
    #253952 quote
    umrk
    Participant
    New

    Merci !

    #253953 quote
    JS
    Participant
    Senior

    3 options 🙂

    Vmax=Highest[150] (Close)

    idx=BarsSince(Close=Vmax)

    umrk and Iván González thanked this post
    #253957 quote
    umrk
    Participant
    New

    Merci JS !

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

Indice d’un maximum (/Minimum)


Support Plateforme : Graphiques, Données & Courtiers

New Reply
Author
author-avatar
umrk @umrk Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by umrk
2 months, 2 weeks ago.

Topic Details
Forum: Support Plateforme : Graphiques, Données & Courtiers
Language: French
Started: 11/25/2025
Status: Active
Attachments: No files
Logo Logo
Loading...