Just to make you aware that it will change the SL for all open orders of the currency pair you are running it on, so if you have an hourly trade and an M1 trade you may not want to use it!!! It is a very basic EA so there is room for improvement.

Also, if you want to use Grant's method of trailing then you could run it on the M1 chart until you are BE, then change the chart to M5 so it trails M5 Aims, then change it to M1 when you see an M5 BDC etc!

I have included the source in case you want to tweak it, but I would test it as my version is slightly different to this!