Custom engulf indicator

 

hi

Please help me in generator this indicator.

This indicator's idea is price action and engulf method.

Signal rules

when one or more candle with the same direction pass through open of 2 or more opposite candles whithe the same colors we should open a position.

Candels with opposite colors undo the signals through conditional commands.

If price direction changed after signal issuance we should open a position in the opposite direction.

Indicator with alarm & pop up