calcolo ombra della candela

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #228397 quote
    okeusokeus
    Participant
    Senior

    Buongiorno, mi serve calcolare l’ombra di una candela per poterla confrontare con il valore massimo della stessa, quindi il valore deve essere neutro ( non positivo e non negativo) per calcolare la percentuale dell’ombra rispetto alla valore totale della candela. grazie

    #228405 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ecco il calcolo separato delle ombre Superiore e Inferiore, con la loro somma e la percentuale, arrotondata a 2 cifre decimali, rispetto al range:

    OmbraSup = high - max(open,close)
    OmbraInf = min(open,close) - low
    Ombre    = OmbraSup + OmbraInf
    PerCent  = round(Ombre * 100 / range,2)
    #228411 quote
    okeusokeus
    Participant
    Senior

    grazie mille, per sicurezza ti posto l’immagine di come ho pensato l’indicare per vedere se non riuscito a spiegarmi bene

    candele-prova.png candele-prova.png
    #228415 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Si, il calcolo va bene, se non t’interessa una delle ombre puoi toglierla dai calcoli.

    #228426 quote
    okeusokeus
    Participant
    Senior

    fatto, gli uso in due modi a seconda del trend. grazie,  se i risultati saranno positivi posterò le indicazioni

Viewing 5 posts - 1 through 5 (of 5 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

calcolo ombra della candela


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
okeus @okeus Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by okeusokeus
2 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 02/19/2024
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...