retourner le plus bas depuis que mon indicateur=1

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #165962 quote
    bobo
    Participant
    Average

    Bonjour à tous,

    Soit un indicateur qui retourne zéro ou 1.

    Comment retourner le plus bas atteint depuis la dernière fois où mon indicateur était égal à 1 ?

    Merçi par avance pour la réponse.

    Cordialement.

    #166001 quote
    Nicolas
    Keymaster
    Master

    On enregistre le moment (le BARINDEX) où l’indicateur est passé à 1, puis on demande à rechercher le plus bas sur une période glissante avec l’instruction LOWEST:

    if indicateur = 1
     startbar = barindex
    endif 
    
    //plus bas dynamique 
    period = max(1, barindex-startbar) //calcul de la période glissante
    plusbas = lowest[period](low) //retourne le plus bas depuis événement
    Bodaris thanked this post
    #166003 quote
    bobo
    Participant
    Average

    Merçi encore Nicolas.

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

retourner le plus bas depuis que mon indicateur=1


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
bobo @bobo Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by bobo
4 years, 11 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 04/01/2021
Status: Active
Attachments: No files
Logo Logo
Loading...