The blue line is the middle of the price channel.
If there are 2 red candles in a row and a body of the last candle more than a half of an average body of a candle and a candle was closed over the line - to open long-position
If there are 2 green candles in a row and a body of the last candle more than a half of an average body of a candle and a candle was closed under lines - to open short-position
If the candle green - to close long-position
If the candle red - to close short-position
If there are 2 red candles in a row and a body of the last candle more than a half of an average body of a candle and a candle was closed over the line - to open long-position
If there are 2 green candles in a row and a body of the last candle more than a half of an average body of a candle and a candle was closed under lines - to open short-position
If the candle green - to close long-position
If the candle red - to close short-position