The idea of this strategy is to get main direction from D1 chart and
to use the EMA13 on M15 to get better price. When new candle appears
the state is calculated. If last D1 close is higher than last two
highs state is 1, if it's lower than last two lows the state is -1. If
the state is changed the strategy closes opened positions and opens
new according to new state. On
every tick the state i checked - if 1 we go long, if -1 short, if 0
we
use the EMA13 to decide what to do - go to better price.