you can check the explination here https://zerodha.com/expert-advisors/code/bearish-shooting-star
bottom of rally or bottom of decline?