retourner le plus bas depuis que mon indicateur=1

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

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

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 bobobobo
5 years, 5 months ago.

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