HEIKIN ASHI DOJI SCREENER

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #210875 quote
    Gover66Gover66
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    Gover66Gover66
    Participant
    Junior

    Grazie 1000 !

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

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 Gover66Gover66
3 years, 6 months ago.

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