Here is the original conversion that I did for BigMikeBot, the one I posted previously had a Donchain Channel used as a stoploss that I was using in a modified version for testing.
This version also requires a little modification whan adding a Darvas indicator that it requires.