Narrow Range Candle

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #187369 quote
    dkotecha1dkotecha1
    Participant
    New

    Hi,

    I am new to prorealtime, I just wanted to ask if there is an indicator that will highlight narrow range candles.

    I would like to highlight NR4,7,21 candles. Any guidance would be appreciated.

    Thanks

    #187377 quote
    lashanta92lashanta92
    Participant
    New

    I’d never heard of that so I made it.

    if barindex >= 23 then
    i = 1
    while (range[1] < range[1+i]) and i <= 21
    i = i + 1
    wend
    if i = 4 then
    DRAWTEXT("4", barindex[1], high[1]*1.0002) coloured("pink",192)
    elsif i = 7 then
    DRAWTEXT("7", barindex[1], high[1]*1.0002) coloured("pink",192)
    elsif i = 21 then
    DRAWTEXT("21", barindex[1], high[1]*1.0002) coloured("pink",192)
    endif
    endif
    
    return
    
    #187390 quote
    lashanta92lashanta92
    Participant
    New

    Rewrote nonsense point and add inside bar

    i = 1
    while (range[1] < range[1+i])
    i = i + 1
    wend
    if i >= 4 and high[1] < high[2] and low[1] > low[2] then
    DRAWTEXT("□", barindex[1], high[1]*1.0002,dialog,standard,18) coloured("pink",192)
    endif
    if i >= 21 then
    DRAWTEXT("21", barindex[1], high[1]*1.0002) coloured("pink",192)
    elsif i >= 7 then
    DRAWTEXT("7", barindex[1], high[1]*1.0002) coloured("pink",192)
    elsif i >= 4 then
    DRAWTEXT("4", barindex[1], high[1]*1.0002) coloured("pink",192)
    endif
    
    return
    
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

Narrow Range Candle


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
dkotecha1 @dkotecha1 Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/02/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...