Formula "UP/DOWN Volume"

Forums ProRealTime forum Italiano Supporto ProBuilder Formula "UP/DOWN Volume"

This topic contains 0 replies, has 1 voice, and was last updated by avatar cynarr 1 week, 5 days ago.

View all attachments
Viewing 1 post (of 1 total)
  • #75483

    Salve

    ho trovato questa formula “UP/DOWN Volume” in linguaggio Metastock in rete.

    Sum(If(C > Ref(C,-1),V,0),50) /
    Sum(If(C <Ref(C,-1),V,0),50);
    1;

    e ho provato a tradurla in linguaggio prorealtime, ma non ottengo il risultato giusto

    IF (Close>Close[1]) Then
    a1=volume
    ENDIF
    IF (Close<Close[1]) THEN
    a2=volume
    ENDIF
    x=summation[50](a1)
    y=summation[50](a2)
    k=(x/y)
    return k AS ” UP/DOWN Volume”

    Qualcuno sa dirmi per cortesia dov’è l’errore?

    giuliano

     

     

Viewing 1 post (of 1 total)

Create your free account now and post your request to benefit from the help of the community
Register or