// Name: Reversal Candlestick Pattern Detector
// Condition:
// 1-up move: last n candles, 3/5 move higher; and/or the last is the highest in past n bars
// 2-down move: last n candles, 3/5 move lower; and/or the last is the lowest in past n bars
//
// Show Bullish reversal pattern in down move; Show Bearish reversal pattern in up move;
//
//Reversal candlestick patterns:
//1. Hammer/Shooting Star,
//2. Engulfing,
//3. Morning/Evening Star,
//4. Harami, --Also Harami could be used in continuation (Rally based Rally/Drop based Drop);
//5. Piercing/Dark Cloud cover,
//6. Hook Reversal
//7. Breakaway Gap, or Gap Crosses SMA8, SMA50. This is for un-filled Gap only. low[1]>high or high[1]<Low