Based on the request.
viewtopic.php?f=27&t=65878
This strategy is really weird. I converted it as is... and it didn't open any positions in a year. I've made some changed to the algorithm which looks logical and it started to trade. Not sure whether it is correct or not.