OPEN-SOURCE SCRIPT

HG Scalpius H & SS Scan

4724
HG Scalpius H & SS Scan

This indicator highlights hammer candles and shooting star candles based on the below definitions:

Hammer = lower wick >= 2* real body and closes in top half of range

Shooting Star = upper wick >= 2*real body and closes in bottom half of range


hammer = (min(open,close)-low)>= (2*abs(open-close)) and close > (((high-low)/2)+low)
shootingStar = (high-max(open,close))>= (2*abs(open-close)) and close < (((high-low)/2)+low)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.