It is calculated what long a candle body Average length of a body of a candle, for the last 30 candles is calculated If the candle red and a body of a candle is more average / 2 - to open long (and to close short) If long is open, a body of a candle is more average / 2, the candle green and a position is profitable - to close long If the candle green and a body of a candle is more average / 2 - to open short (and to close long) If it is open short, a body of a candle is more average / 2, the candle red and a position is profitable - to close short