Non riesco a creare una formula con candele Heikin Ashi

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #167711 quote
    DIABOLIK123
    Participant
    New

    per un indicatore o uno screener che mi indichi quando l’HEIKIN ASHI non ha miccia sopra (bearish) o sotto (bullish)

    #167715 quote
    robertogozzi
    Moderator
    Master

    Dai un titolo significativo al tuo argomento. Descrivi la tua domanda o l’oggetto nel titolo. Non utilizzare titoli privi di significato come “Aiuto per la codifica” oppure “NON RIESCO A CREARE UNA FORMULA”.

    L’ho cambiato io adesso.

    Grazie 🙂

    #167716 quote
    DIABOLIK123
    Participant
    New

    Grazie

    #167717 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    ONCE xOpen = open
    xClose     = (open + high + low + close) / 4
    IF BarIndex > 0 THEN
       xOpen   = (xOpen[1] + xClose[1]) / 2
    ENDIF
    xLow       = min(low, min(xClose,xOpen))
    xHigh      = max(high,max(xClose,xOpen))
    xRange     = xHigh - xLow
    Body       = abs(xClose - xOpen)
    UpperWick  = xHigh - max(xClose,xOpen)
    LowerWick  = min(xClose,xOpen) - xLow
    IF UpperWick = 0 THEN
       DrawText("★",BarIndex,xHigh + xRange/2) coloured(0,128,0,200)
    ENDIF
    IF LowerWick = 0 THEN
       DrawText("★",BarIndex,xLow  - xRange/2) coloured(255,0,0,200)
    ENDIF
    RETURN
    #167718 quote
    robertogozzi
    Moderator
    Master

    Puoi invertire i colori, se vuoi.

    Questo è lo screener:

    ONCE xOpen = open
    xClose     = (open + high + low + close) / 4
    IF BarIndex > 0 THEN
       xOpen   = (xOpen[1] + xClose[1]) / 2
    ENDIF
    xLow       = min(low, min(xClose,xOpen))
    xHigh      = max(high,max(xClose,xOpen))
    //xRange   = xHigh - xLow
    //Body     = abs(xClose - xOpen)
    UpperWick  = xHigh - max(xClose,xOpen)
    LowerWick  = min(xClose,xOpen) - xLow
    Signal = 0
    IF UpperWick = 0 THEN
       Signal = 2
    ENDIF
    IF LowerWick = 0 THEN
       Signal = 1
    ENDIF
    SCREENER[Signal](Signal AS "1=Bull,2=Bear")
    #167756 quote
    GUCCI ONE
    Participant
    New

    Grazie infinite! Leggendo il codice, mi rendo conto della mia ignoranza.

    #167763 quote
    robertogozzi
    Moderator
    Master

    Non preoccuparti, agli inizi tutti siamo stati ignoranti!

    Col tempo e la passione le cose ti appariranno più familiari.

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

Non riesco a creare una formula con candele Heikin Ashi


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by robertogozzi
4 years, 11 months ago.

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