HEIKIN ASHI DOJI SCREENER

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #210875 quote
    Gover66
    Participant
    Junior

    Buongiorno, mi interessa ricercare candele Doji heikin ashi mensili.

    Ho trovato la screener di cui riporto il codice:

    //PRC_Doji Heikin Ashi | screener
    //10.01.2017
    //Sharing ProRealTime knowledge
    // — parameters
    DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick
    // —
    if barindex>1 then
    haclose=(open+close+low+high)/4
    haopen=(haopen[1]+haclose[1])/2
    xHigh= Max(haOpen, haClose)
    xLow= Min(haOpen, haClose)
    hahigh= Max(High,xHigh)
    halow= Min(Low,xLow)
    endif
    data=(abs(haopen haclose) <= (hahigh halow) * DojiSize/100)
    screener [data]
    lo screener restituisce però troppi risultati presumo perchè ricerca le doji su un tempo molto lungo.
    Vorrei perciò che tale ricerca si limitasse alle ultime 5 candele mensili.
    E’ possibile modificare il codice in tal senso ?
    Grazie, cordiali saluti
    Gianni
    #210894 quote
    robertogozzi
    Moderator
    Master

    La ricerca viene fatta solo sull’ultima candela (quella in corso).

    Questa versione l’ho modificata aggiungendo che il prezzo sia > 50 (dollari, euro, ecc… dipende dallo strumento) e che il Volume sia > 1.5 volte quello della candela precedente:

    DojiSize = 5 //x% body size compared to the complete range of the candlestick
    if barindex>1 then
       haclose=(open+close+low+high)/4
       haopen=(haopen[1]+haclose[1])/2
       xHigh= Max(haOpen, haClose)
       xLow= Min(haOpen, haClose)
       hahigh= Max(High,xHigh)
       halow= Min(Low,xLow)
    endif
    data  = (abs(haopen - haclose) <= (hahigh - halow) * DojiSize/100)
    data1 = close > 50
    data2 = volume > (volume[1] * 1.5)
    screener[data AND data1 AND data2]
    #210942 quote
    Gover66
    Participant
    Junior

    Grazie 1000 !

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

HEIKIN ASHI DOJI SCREENER


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
Gover66 @gover66 Participant
Summary

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

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 03/04/2023
Status: Active
Attachments: No files
Logo Logo
Loading...