This script is based on the Moving averages.
When Blue candle is generated, please see the cross over by Red/Green moving averages.
Strategy Long:
Blue Candle+ Green cross over red - Long
Blue Candle + Red Cross over green - Short.
For confirmation, please use RSI14 or Stochastic momentum indicator over sold and over brought zones.