Somme des volumes supérieurs à la moyennes

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #234784 quote
    mcth01
    Participant
    New

    Bonjour ,

    Besoin d’aide pour cet indicateur:

    aV=Average[50](volume)
    vol=Volume
    n=15
    compteur=0
    if N> 0 and vol CROSSES OVER aV then
    compteur=volume
    ELSIF n>0 and vol crosses under av then
    compteur= compteur+0
    ELSIF N>0 and vol>= av then
    compteur= compteur +Volume
    ENDIF
    RETURN COMPTEUR

     

    But: faire un cumul des volumes supérieurs à la moyenne des volumes  de 50 jours. (en gros une somme)

    Merci par avance

    #234785 quote
    mcth01
    Participant
    New

    Si c’est possible avoir que les volumes positifs.

    #234808 quote
    Iván González
    Moderator
    Master

    Salut. Je ne sais pas si tu veux dire ceci :

    avgVol=Average[50](volume)
    
    green=close>open
    
    n=15
    
    cum=0
    bars=0
    for i=0 to n do
    if green[i]=1 and volume[i]>avgVol[i] then
    bars=bars+1
    cum=cum+volume[i]
    endif
    next
    
    return cum as "Positive Volume Cum. 15 bars"

    Cet indicateur évalue au cours des N dernières bougies combien de fois le volume a été supérieur à sa moyenne et la bougie était également haussière. Le résultat est le volume accumulé les jours positifs.

    mcth01 thanked this post
    #235034 quote
    mcth01
    Participant
    New

    Merci c’est parfait

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

Somme des volumes supérieurs à la moyennes


Support Plateforme : Graphiques, Données & Courtiers

New Reply
Author
author-avatar
mcth01 @mcth01 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by mcth01
1 year, 7 months ago.

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