Personally, I don't think risk management can turn a losing method into a winning method, like the old saying: Can't turn a pig's..... I was eager to see if @Buy1Sell2 could show us how instead of just preaching to us.
Actually I tried using a random number generator to generate stock prices and "traded" using "stop loss" and "trialing stop", no cigar. Not sure if the codes were error free though.

OK back to the drawing board. Maybe it will work this time. 
That's probably one of the main reasons why it's challenging and why it takes a long time to learn.