I had the same problem of Rascacio. The problem is not the EA and I give you one guess as who is to blame. It is the CRIMINAL broker (surprise surprise) who has minimum pip requirement between the current price and SL and TP. On alpari demo some of them are as high as 30 to 40 pips. Therefore if the BOT wants to put a SL of say 15 pips then error 130 invalid stops occure. I suggest you try a different broker (forex.com, ibfx, fxdd, etc).
Kind Regards