@heni,
Hammer pattern in a Candlestick chart can be detected based on the dataPoint y-values as explained in this article. Please take a look at this JSFiddle for an example on adding indexLabel when the hammer pattern is found in a dataPoint.
—-
Manoj Mohan
Team CanvasJS