Hello,
So, I have tweaked and exposed the values so you guys can play around with them to fit with whatever pair you are trading with. Right now the current values are for EURUSD. I am still testing it, but it does seem to work well in the 1 Hour and 4 Hour time frames.
I have also added a Stop Loss percentage and Take Profit percentage. They work only if a new single is not given first.
Cheers