Hammer

Category: Indicators By: lolo Created: October 12, 2015, 8:07 PM
October 12, 2015, 8:07 PM
Indicators
0 Comments

This indicator allows detection of candlesticks of the type “Hammer”/”Black hanging man” (=1) and “Inverted hammer”/”White gravestone” (=-1) on charts.

REM Detection of Inverted hammer / White gravestone
IF close>open and low=open and (high-close)>=3*(close-open) THEN
     a=-1
     
ELSIF close>open and high=close and (open-low)>=3*(close-open) THEN
     
     REM Detection of Hammer / Black hanging man
     a=1
     
ELSE
     
     REM No detection
     a=0
     
ENDIF

RETURN a

Download
Filename: Hammer.itf
Downloads: 192
lolo New
Code artist, my biography is a blank page waiting to be scripted. Imagine a bio so awesome it hasn't been coded yet.
Author’s Profile

Comments

Logo Logo
Loading...