candela heikin ashi sovrapposta

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #182977 quote
    Stenozar
    Participant
    Master

    Buonasera,

    sarebbe possibile creare un indicatore che sovrapponga alle candele giapponesi le heikin ashi dello stesso time frame ed “in trasparenza”, così da permettere cioè di poter vedere sia il colore delle heikin ashi che quello della candela giapponese.

    Grazie,

    Stefano

    #182989 quote
    robertogozzi
    Moderator
    Master

    Eccolo, per variare la trasparenza modifica il quarto parametro del colore (adesso 50) in un valore tra 0 (invisibile) e 255 (colore pieno).

    // HA - definizione Heikin-Ashi
    //
    xOpen      = open
    xClose     = (open + close + high + low) / 4
    if barindex > 0 then
        xOpen  = (xOpen[1] + xClose[1]) / 2
    endif
    xLow       = min(low,min(xClose,xOpen))
    xHigh      = max(high,max(xClose,xOpen))
    If XClose > xOpen then
       DrawCandle(xOpen,xHigh,xLow,xClose) coloured(0,0,255,50) //Blù
    else
       DrawCandle(xOpen,xHigh,xLow,xClose) coloured(255,0,0,50) //Rosso
    Endif
    Return
    #183004 quote
    Stenozar
    Participant
    Master

    Grazie mille Roberto e buona giornata!

    Stefano

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

candela heikin ashi sovrapposta


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Stenozar @stenozar Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 12/08/2021
Status: Active
Attachments: No files
Logo Logo
Loading...