Ronald - I tried adding a shift to the EMA, but only ended up with an error result from it "unexpected [ ". I have attached an image showing how the system is supposed to work in the first trade displayed. The second trade should never have occurred ...