Can any one provide TRADESCRIPT code for detecting PIN BAR's (Bullish and Bearish)?

check the shooting star code from below link

​https://zerodha.com/expert-advisors/code/bearish-shooting-star