30 Minute hammer reversal

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #80448 quote
    Yas1311
    Participant
    New

    Hi guys please can you help setup a screener for the following.

    A 30 minute hammer candle which has gone from low and closed near high

    the candles low to high is  5% or more of the company price

    thank you!

    #80480 quote
    Nicolas
    Keymaster
    Legend

    This screener’s code should work as intended:

    body=close-open
    abody=abs(body)
    if range>0 then
    ratio=abody/range
    else
    ratio=0
    endif
    shadowtop=high-bodytop
    shadowbottom=bodybottom-low
    bodytop=max(open, close)
    bodybottom=min(open, close)
    longcandle= (ratio>0.6)
    Hammer=(longcandle[1] and low<low[1] and shadowbottom>2*abody and shadowtop<0.3*abody) and range/close>0.05
    
    screener[Hammer](range/close)

    5% is a big candlestick, it filters a lot the results.

    #81520 quote
    Yas1311
    Participant
    New

    thanks very much for your help!

    #81524 quote
    Yas1311
    Participant
    New

    Sorry just one more thing would you be able to add to the above code to find those stocks which are 20% or less away from 52 week highs.

     

    thanks in advance

    #81538 quote
    Nicolas
    Keymaster
    Legend

    Sure, try this new code, I added the weekly Close / 52 weeks HighestHigh ratio as the criteria:

    timeframe(weekly)
    wratio = close/Highest[52](high)[1]
    lessthan20 = wratio>=0.8
    
    timeframe(default)
    body=close-open
    abody=abs(body)
    if range>0 then
    ratio=abody/range
    else
    ratio=0
    endif
    shadowtop=high-bodytop
    shadowbottom=bodybottom-low
    bodytop=max(open, close)
    bodybottom=min(open, close)
    longcandle= (ratio>0.6)
    Hammer=(longcandle[1] and low<low[1] and shadowbottom>2*abody and shadowtop<0.3*abody) and range/close>0.05 and lessthan20
    
    screener[Hammer](wratio)
Viewing 5 posts - 1 through 5 (of 5 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

30 Minute hammer reversal


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Yas1311 @yas1311 Participant
Summary

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

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 09/14/2018
Status: Active
Attachments: No files
Logo Logo
Loading...