plus gros volume haussier sur une periode de 10 jours

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #250533 quote
    mcth01mcth01
    Participant
    New

    Bonjour,

    J’aurai besoin d’aide je voudrais faire un indicateur pour avoir le plus gros volume haussier sur une periode de 10 jours, ce volume doit être supérieur au volume baissier sur cette même période.

    Ci-dessous voici ce que je suis parvenu à faire:

    maxDownVol = 0 // Volume maximal des jours baissiers des 10 derniers jours
    
    // Recherche du volume maximal des jours baissiers
    FOR i = 1 TO 10 DO
    IF Close[i] > Close[i+1] and Volume[i] > maxDownVol then
    maxDownVol = Volume[i]
    ENDIF
    NEXT
    
    isPoc = (Volume > maxDownVol) AND (Close> Close[1])
    poc= isPoc AND NOT isPoc[1]
    // Affichage du signal
    RETURN poc

     

    merci par avance

    #250540 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Bonjour. Cela peut se faire avec une boucle, mais il me vient une autre façon de le faire.

    
    maxvol=highest[10]((close>open)*volume)
    minvol=highest[10]((close<=open)*volume)
    
    if maxvol>minvol then
       backgroundcolor("green",30)
    endif
    
    RETURN volume style(histogram), maxvol coloured("blue"), minvol coloured("red")
    
    mcth01 thanked this post
    #250631 quote
    mcth01mcth01
    Participant
    New

    C’est tout bon merci beaucoup

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

plus gros volume haussier sur une periode de 10 jours


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
mcth01 @mcth01 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by mcth01mcth01
1 year ago.

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