Buyers & Sellers

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #254925 quote
    ARLEQUIN49
    Participant
    Veteran

    Hello and best Wisches to all.

    Does anyone know how to modify the data to display buyers and sellers volumes as percentages?

    Bonjour à tous et meilleurs vœux. Quelqu’un saurait-il comment modifier les données pour afficher les volumes d’acheteurs et de vendeurs en pourcentages ?

     

    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    // Buyers & Sellers
    //
    //https://www.forexfactory.com/thread/213497-buyers-sellers-display
    //
    Buyers    = (close low)
    Sellers   = (high   close)
    //
    BuyersPC  = Buyers  / range
    SellersPC = Sellers / range
    //
    VolBuyers  = Volume * BuyersPC
    VolSellers = Volume * SellersPC
    return VolBuyers AS “BUY”,VolSellers AS “SELL”
    #254927 quote
    JC_Bywan
    Moderator
    Master

    Hi,

    les variables buyersPC et sellersPC semblent déjà être un pourcentage, tu peux les utiliser dans ta ligne “return” plutôt que volbuyers and volsellers. Si tu veux exprimer par exemple 31% dans un format “30” plutôt que “0.31”, tu peux aussi les multiplier par 100. Donc selon ton choix, soit “return buyersPC, sellersPC”, soit “return buyersPC*100, sellersPC*100”.

    JS and Iván González thanked this post
    #254928 quote
    JS
    Participant
    Senior
    Buyers=(Close-Low)
    Sellers=(High-Close)
    
    BuyersPC=Buyers/Range
    SellersPC=Sellers/Range
    
    VolBuyers=BuyersPC*Volume
    VolSellers=SellersPC*Volume
    
    TotVol=VolBuyers+VolSellers
    
    BuyersVolPct=(BuyersPC*Volume)/TotVol
    SellersVolPct=(SellersPC*Volume)/TotVol
    
    Return BuyersVolPct*100 AS "BUY%" Coloured("Green"),SellersVolPct*100 AS "SELL%" Coloured("Red")
    
    JC_Bywan, robertogozzi and Iván González thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Buyers & Sellers


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
ARLEQUIN49 @arlequin49 Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by JS
1 month ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/02/2026
Status: Active
Attachments: 1 files
Logo Logo
Loading...