Multiple HA Doji candles

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #188998 quote
    Marcel van Vliet
    Participant
    Veteran
    //PRC_Doji Heikin Ashi | screener
    //10.01.2017
    //Nicolas @ www.prorealcode.com
    //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 and barindex > average[50])
    
    screener [data]

    Hi, I was wondering how to adjust the HA Doji screener by @Nicolas into a screener which scans for multiple consecutive HA Dojo/spinning top candles in a row. Does anyone has a clue?

    #189003 quote
    robertogozzi
    Moderator
    Master

    There you go, you only need to replace 2 (in both palces, last line) with another value of your choice:

    //PRC_Doji Heikin Ashi | screener
    //10.01.2017
    //Nicolas @ www.prorealcode.com
    //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 and barindex > average[50])
     
    screener [(summation[2](data) = 2)]
    Marcel van Vliet thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Multiple HA Doji candles


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
4 years ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 02/28/2022
Status: Active
Attachments: No files
Logo Logo
Loading...