looks for a crossover of 5 periods EMA applied to close price over 7
periods EMA applied to close price. One other filter that I have added
to filter out noise is 34 EMA applied to close price. When the price
is trading above 34 EMA and the 5 period EMA crosses the 7 period EMA
from below to upside, a buy is placed at the market on the closing of
the candle. if the number of open positions is 0. And if the price is
trading belo…